synodic-ai™ ML SYSTEMS
ML Systems Desk · Inference Memory

Three ways to shrink the KV cache, and why memory, speed and quality are separate claims

Three systems papers posted on 2026-11-16 attack the key-value cache that dominates memory in long-context and high-concurrency serving: one quantizes only a speculative-decoding draft model's cache, one stores the cache as trellis codes that decode straight into low-precision hardware formats, and one keeps keys in a compressed space that rotary attention can use directly. Read side by side, they show that saving bytes, saving time and keeping accuracy are three different results, and that each paper delivers a different subset.

Quantize the draft, keep the target exact

Speculative decoding runs a small draft model that proposes tokens and a large target model that verifies them, which means serving two KV caches. The first paper compresses only the draft's cache and leaves the target's cache and verifier in BF16, so the target's correction rule, and with it the output, is unchanged; compression can only lower how many draft tokens are accepted. The design question is how to split bits between keys and values. With a naive quantizer that uses one scale per token, keys looked far more sensitive: at the same average budget, 8-bit keys with 4-bit values beat 4-bit keys with 8-bit values by 10.87 percentage points of acceptance. Switching keys to 32-token groups quantized per channel, with values quantized per token, erased that advantage to minus 0.25 points, and a controlled test that changed only the key quantizer moved the gap from 28.70 points to minus 0.33. The authors conclude that the apparent extra sensitivity of keys depends on quantizer geometry, such as letting channel-specific key outliers set a whole vector's scale, and is not necessarily intrinsic to attention, while noting they did not measure outliers directly.

With 4-bit keys and values in that layout and the 128 most recent keys kept in BF16, draft cache memory fell 66.20% and combined target-plus-draft KV memory 23.95% across six target and draft pairs of 360 million to 8 billion parameters, while mean acceptance moved from 57.93% to 57.14%. At 32K context a packed draft cache took 260.2 MiB per sequence instead of 896.0 MiB. The paper is direct about what this does not yet buy: its end-to-end prototype ran 18% to 33% slower than BF16 speculative decoding, peak GPU memory did not fall because the cache is packed only after a BF16 prefill, and its batched verifier did not yet reproduce target-only outputs reliably, so the timings are preliminary.

Trellis codes that decode into microscaling formats

The second paper targets the extreme low-bit regime. Vector quantizers for the KV cache get accuracy from large codebooks, but hardware limits codebook size, and most methods reconstruct the cache into higher-precision floating point before attention. MiSTiQ borrows trellis-coded quantization from weight compression, where a long vector is stored as a path through a finite-state trellis rather than as an index into an explicit codebook, and replaces the exact Viterbi encoder with approximate beam search to limit encoding overhead. Its hash functions map each trellis state directly to values in a microscaling (MX) element format, low-precision elements sharing a block scale, using the distribution of Gaussian values after block normalization, and for finer scale formats it searches trellis paths and block scales jointly. Decoding needs no search, only state recovery and the mapping.

Dropped into an existing normalization and rotation pipeline in place of its codebook quantizer and tested on two 8-billion-parameter models, MiSTiQ had the lowest perplexity and highest math-reasoning accuracy among the compared quantizers at about 1.25 effective bits per element in all three block-scale formats tested. The margin over the baselines is largest at the lowest budgets, and so is the distance from the uncompressed cache: at about 1.25 bits, math accuracy was 43% to 59% of the BF16 cache's, against roughly a third of it or less for the next-best compared quantizer. The authors also find, for their quantizer, that giving keys more bits improves accuracy at a fixed budget. The main paper reports accuracy, not serving throughput or latency.

Latent keys that rotary attention can use directly

The third paper attacks time rather than bytes. Low-rank KV compression stores compact latent states, but because rotary position embedding (RoPE) rotates each coordinate pair at its own frequency, compressed keys usually have to be reconstructed to full dimension before scoring, at every decode step and over the whole history. The authors prove that, under mild assumptions, a static linear latent map stays exactly compatible with pretrained RoPE if and only if it never mixes different rotary frequencies and mixes same-frequency copies across heads only through complex-linear maps. Grouped-query and multi-head attention supply those same-frequency copies, which is where compression can happen.

GaugeRoPE keeps a low-rank carrier inside each frequency block for the rotary part of the key and adds a position-independent residual code for the remaining key and value content, both fitted offline with frozen weights and both scored without reconstructing historical keys. The complex coefficients matter: at the same rank, a real-coefficient carrier produced repetitive text and scored zero on a four-task retrieval subset, while the complex carrier scored 78.00 to 84.75. On a 7-billion-parameter grouped-query model, the 8-bit carrier with a 4-bit residual reached 5.85 times compression with a 13-task long-context benchmark score of 85.56 against 90.84 uncompressed. The quality cost is clearer on a 16-task long-document suite: 35.73 against 42.59 uncompressed, below two low-rank baselines (37.88 and 37.61) and below a 2-bit quantization baseline (41.77) at similar compression, though keeping the 128 most recent tokens uncompressed raised it to 38.63.

What to ask of a KV compression claim

Each paper is careful about its own scope, and together they show why a single compression ratio says little. The draft-cache paper saves memory without changing outputs but is not yet faster. MiSTiQ pushes accuracy at extreme budgets but reports no speed. GaugeRoPE is fast because it skips reconstruction, but its speed and its compression ratio come from different configurations, and its long-document quality trails the baselines it was compared with. The two quantization papers also illustrate that conventional wisdom about keys needing more bits is conditional on the quantizer layout.

Sources