Regularize or Localize: When Training-Time KV-Cache Geometry Pays Under Quantization

Machine Learning

Summary

The authors investigate how a method called SigReg, designed to reduce collapse in language model training, affects the internal representations and their geometry related to key-value (kv) cache quantization. They find that applying SigReg to hidden states reduces geometric bias with minimal impact on model performance but does not change kv cache geometry. However, directly regularizing the kv cache during training greatly improves its geometry and leads to much better quantization results under simple 3-bit settings. More complex quantization schemes diminish this advantage. This work is the first to evaluate a training-time distributional regularization targeting kv cache geometry in language models.

Authors

Libo Sun, Po-Wei Harn, Zewei Zhang, Peixiong He, Xiao Qin

Abstract

We study whether \sigreg -- LeJEPA's anti-collapse objective -- can reshape representations during standard autoregressive language-model pretraining, and when the resulting geometry helps \kv-cache quantization. We train 110M-parameter models on 10B FineWeb tokens and report three findings. \textbf{(1)} At $λ{=}0.01$, \sigreg reduces hidden-state pairwise-cosine anisotropy by $38\%$ across three paired seeds. Perplexity increases by less than $0.35\%$ in every pair, with no consistent zero-shot loss. \textbf{(2)} This change does not propagate from hidden states to the \kv cache. Applying \sigreg directly to K and V during continued training, however, reduces mean cache anisotropy by $94\%$ across four checkpoints. A matched continuation without the \kv term leaves cache geometry nearly unchanged, and the frozen-trunk retrofits we tested do not reproduce the effect. \textbf{(3)} Under untransformed symmetric group-free quantization, direct \kv regularization is the only training condition that prefers per-channel scaling in all three seeds, and under that same 3-bit per-channel scheme the baseline incurs $4.3$--$7.9\times$ the directly regularized model's \dnll. Under the full simulated KIVI-style configuration (mixed arrangement, zero-points, grouped scales), however, all models reach near-parity, including when storage overhead is approximately matched. In this 110M regime, the training intervention helps when quantizer scales are coarse; the advantage vanishes under the tested combination of token-local grouping, mixed \kv scaling, and zero-points. To our knowledge this is the first training-time \emph{distributional} regularization of standard \kv-cache geometry evaluated against post-hoc cache quantization.