Compression that fits the stack: joint vector quantization, KV-cache compaction for stock kernels and cheaper stochastic rounding
Three papers posted on 2026-10-27 tackle compression where it meets existing systems: weight quantization that keeps codewords small, compacted KV caches that unmodified serving kernels can read, and stochastic rounding that does not stall low-precision training on random number generation. Each accepts a constraint from the surrounding hardware or software and recovers accuracy within it.
Choosing codewords and their scale together
CoS-VQ: Coordinated Shared-Scale Vector Quantization for Large Language Models targets low-bit weight quantization. Existing vector quantization methods often improve accuracy by increasing the effective coding dimension, which can complicate independent lookup and local codeword updates. CoS-VQ keeps low-dimensional codewords and instead jointly optimizes the hard indices and their shared scale across positions.
The difficulty is scale-induced coupling: the optimal scale depends on the entire combination of codewords and in turn changes which candidates rank best at each position, so pointwise updates can stall even after the scale is re-optimized. CoS-VQ collects candidates at multiple probe scales and constructs a tangent separable upper bound on the residual-aware quadratic objective. That reduces candidate comparisons to lower envelopes of lines over positive scales and identifies finitely many representative intervals for joint index and scale updates, without exhaustively enumerating codeword combinations. On a 27-billion-parameter model, CoS-VQ outperforms the QTIP and LLVQ methods on the evaluated language modeling, coding and reasoning benchmarks, and ablations from the same initialization show larger gains from joint updates than from scale-only refinement. The code is public.
A compacted KV cache that standard kernels can read
Folding Attention Biases into Keys Makes Compacted KV Caches Run on Standard Kernels starts from Attention Matching, a compaction method that keeps some keys per head, refits their values and adds a bias to each kept key's logit. FlashAttention and vLLM's paged caches have no input for that bias. The authors fold the bias into the keys along one closed-form direction per head, fitted on context queries, which gives a plain cache with Attention Matching's size and head dimension that uses the model's own query path. The output error is bounded by how far each query's projection on that direction is from 1.
With equal per-head budgets, unmodified vLLM serves folded caches through a KV connector, matching Hugging Face's answers on all 51 questions in a test on one model and its greedy output on 180 of 200 LongBench samples on a larger one. With equal budgets on QuALITY across four models and LongHealth across three, the fold is within noise of Attention Matching's accuracy in 13 of 14 settings and has lower KL divergence to the full cache than simply dropping the bias in all 12 settings where both ran. Under the per-head budgets published for Attention Matching, tested on three models, it is within noise of Attention Matching in 9 of 10 settings but no longer beats dropping the bias on KL divergence.
Stochastic rounding without a random number per element
Efficient Quantization Training with Stochastic Rounding via Structured Subspace Randomness addresses a hardware bottleneck in low-precision training. Stochastic rounding keeps quantized gradients unbiased and stops small updates from rounding to zero, but the standard form draws an independent random threshold for every gradient element. Accelerators generate random numbers on vector units whose throughput lags far behind their matrix units, so one threshold per element saturates the vector unit and can make INT8 training with stochastic rounding slower than BF16 training.
Sharing thresholds across tensor elements removes that cost but forces those elements to round in the same direction, shifting their rounding errors by a common offset. The authors find that the offset degrades training mainly through the activation gradient, which carries it backward into earlier layers that cannot cancel it with their own local rounding errors, so it must be removed at the layer where it originates. Structured Subspace Stochastic Rounding (S3R) quantizes each upstream gradient once for both the activation-gradient and weight-gradient matrix multiplications and shares a single threshold per token across the hidden dimension; its error correction, S3R-EC, subtracts the structured mean rounding error from both gradients and leaves the optimizer unchanged. In LLM pre-training experiments, uncorrected threshold sharing degrades convergence while S3R-EC matches the validation loss of independent stochastic rounding, and it accelerates full INT8 training steps of dense LLMs on TPU v5p by 1.24x to 1.32x over BF16 and by 1.11x over independent stochastic rounding.
Reading the three together
All three treat compatibility as a design input. CoS-VQ keeps codewords low-dimensional so lookups stay simple and wins accuracy back through joint search. The key fold keeps the cache format that FlashAttention and vLLM already read and pays with a bounded approximation error. S3R-EC keeps per-element random number generation off the vector units and pays with a correction term. In each case the accuracy cost is modest under the conditions tested, and the gain is that the method runs on hardware and software already in production.
What to do now
For teams quantizing, serving or training LLMs, the papers suggest three checks:
- Try joint index-scale search: Before raising codeword dimensionality to gain accuracy, compare against joint optimization of indices and shared scale at the same dimension.
- Check kernel compatibility early: If a KV compaction method needs a per-key bias, test whether folding it into the keys keeps accuracy within noise under the per-head budgets you actually use, since the fold's advantage over dropping the bias narrowed under the published budgets.
- Profile random number generation: In low-precision training, measure vector-unit load from stochastic rounding before assuming INT8 will beat BF16, and correct shared-threshold offsets at the layer where they arise.
Limits
CoS-VQ's comparison is reported on a single 27-billion-parameter model. The fold's evidence covers long-context question answering on up to four models, with a bounded but nonzero error and a weaker result under the published budgets. S3R-EC's speedups are measured on one accelerator type for dense models. Other architectures, other accelerators and production serving traffic are outside what the abstracts report.
Sources
- CoS-VQ: Coordinated Shared-Scale Vector Quantization for Large Language Models · arXiv · 2026-10-27
- Folding Attention Biases into Keys Makes Compacted KV Caches Run on Standard Kernels · arXiv · 2026-10-27
- Efficient Quantization Training with Stochastic Rounding via Structured Subspace Randomness · arXiv · 2026-10-27