TECHNOLOGY

KV-cache eviction: instruction following and leakage limits

In this article
THE QUICK TAKE

Offline eviction findings motivate per-instruction tests; they do not prove that every low-bit cache loses the same instructions.

Compressing an attention cache can preserve an acceptable average score while selectively weakening an important instruction. A model that still follows a formatting rule may already ignore a separate restriction. Instruction-level evaluation is therefore necessary when reducing the memory occupied by a reusable system prompt.

Distinguish eviction from numerical quantization

The Pitfalls of KV Cache Compression studies several eviction policies on Llama3 8B and Qwen2.5 14B. Eviction removes cached entries; quantization changes the precision used to represent retained entries. Both reduce memory, but they do not remove information in the same way.

The reported experiments focus on offline compression of known prompt prefixes. Their findings cannot automatically be extended to every online eviction policy, every low-bit cache format or a combined weight-and-cache quantization configuration. Those are separate hypotheses requiring controlled comparisons.

Score each instruction rather than only the prompt

The study uses a modified IFEval collection and compares single-instruction with multi-instruction prompts. Different instruction classes degrade differently as more entries are removed. A mean score can therefore conceal a large change in one requirement behind relative stability in another.

For a serving evaluation, preserve the original instruction boundaries and score their outcomes individually. Include language requirements, output constraints and task-relevant restrictions. Compare each with the uncompressed reference instead of interpreting an initially difficult instruction as evidence of a compression-specific failure.

Interpret leakage measurements carefully

The system-prompt case study separates a directive from a defence against revealing instructions. Only the system prompt is compressed. Directive following and similarity between generated text and protected instructions are measured separately; leakage uses ROUGE-L recall.

A low similarity score is not a general proof of privacy or reliable restriction following. Under sufficiently aggressive compression, the model may lose the content it would otherwise reveal. The article’s important point is the nonuniform failure pattern, not a universal leak probability for every application.

Treat order and retention as experimental variables

Changing the order of the directive and defence changes the observed behaviour. The paper also proposes instruction-aware fair eviction, intended to distribute retention more evenly. An improvement in the tested setup is not a guarantee that all instructions survive every compression ratio.

The pinned author README documents fair-eviction variants and options for retained tokens and instruction spans. These are implementation interfaces, not evidence that automatic span detection will always identify an application’s complete policy. The reviewed documentation was not installed or executed.

Evaluate a combined serving configuration explicitly

If weight quantization, KV quantization and eviction are combined, test their individual and joint effects against the same reference. Keep request text, templates, decoding rules and task scoring fixed. Record actual cache memory as well as instruction-specific outcomes, since equal nominal compression labels need not imply equal memory use.

This is a proposed deployment evaluation informed by the paper, not a new measurement of Retrivium’s service. A useful acceptance rule preserves essential task behaviour within declared limits; aggregate benchmark quality alone cannot establish that every important instruction remains effective.

Related: FP8 KV-cache quality checks and KV-cache memory accounting.

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