TECHNOLOGY

KV compression: separate prefix length, decode length and stored bytes

In this article
THE QUICK TAKE

A matched-bit comparison can hide different token budgets and metadata; ClueKV adapts token retention rather than demonstrating adaptive bit allocation.

Compression changes more than a bit label

A useful KV-cache comparison separates prompt length from generated length, and numerical precision from token selection. MiniKV, RotateKV and ClueKV illustrate why: they alter different parts of the cache policy. Their results motivate a controlled comparison, but they do not establish that any low-bit setting preserves every long-context reasoning task. The FP8 cache quality guide explains why weight precision and cache precision must also remain separately identified.

If an experiment changes context length, eviction policy and representation together, a quality difference cannot be attributed solely to quantization. Likewise, identical nominal bits do not imply equal resident bytes when methods retain different tokens or metadata.

MiniKV separates selected context from generated state

The MiniKV full paper combines 2-bit representation with persistent context selection. It chooses important prompt tokens at prefill, retains them through generation and buffers newly generated states in FP16 before periodic compression. Scale and zero-point tensors also occupy space. Thus the prompt budget and the growing generated cache contribute differently to memory.

Its main LongBench setup uses a 4096-token prompt limit, taking the beginning and end of longer prompts, and task-specific generation limits no greater than 512 tokens. Those conditions should accompany its accuracy result; they are not evidence for indefinitely long decode trajectories. Holding the prompt fixed while extending generation tests a different accumulation pattern from extending the prompt with a short answer.

RotateKV’s rotation and metadata belong in the result

The RotateKV methodology uses outlier-aware rotation, grouped-head rotation before RoPE and protection for attention sinks. Its evaluated asymmetric per-token quantization uses groups of 128 values, with FP8 scales and INT8 zero-points. These details distinguish its nominal 2-bit cache from a uniform representation with different groups or retained high-precision states.

Calibration material and index transformations are consequently part of the artifact, not optional reporting decoration. Retrieval performance, reasoning accuracy and next-token loss answer different questions. A method that preserves a particular retrieval example can still change a generated explanation or a chain of intermediate decisions.

ClueKV prioritizes tokens rather than assigning bit widths

The ClueKV paper contrasts context-conditioned probabilities with a context-free reference to identify potential reasoning clues. It compares their distribution with head attention, reweights token importance and selects a cache subset. Its adaptation concerns evidence retention; it is not a demonstrated mixed-bit allocation scheme across layers and heads.

This distinction corrects a misleading interpretation of adaptive compression. Combining clue-based selection with numerical quantization would require a separately evaluated implementation. It cannot inherit the accuracy of each component independently. The paper discusses future cross-layer allocation and dynamic clue maintenance separately from its current mechanism.

Compare actual bytes across independent length axes

A proposed diagnostic should vary prefix length and decode length independently while preserving model weights, prompts, formatting and generation settings. Compare uniform precision with adaptive selection at matched measured cache storage, including scales, indices, residual buffers and retained full-precision states. Add held-out reasoning cases whose supporting facts are dispersed, alongside direct retrieval and likelihood-based checks.

Keep a fixed reference continuation for numerical comparisons, and separately measure free-running task success because diverging generated tokens change subsequent inputs. Record prefill and decode latency independently, with peak workspace memory alongside persistent cache bytes. The inference benchmark method helps preserve that boundary. This is an evaluation design suggested by the papers, not a new measured result or a claim that their published experiments already cover every combination.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles