NeurIPS 2026QuestionsPapersAreasAboutMarkdown

KV Cache Compression via Attention Output Distortion Minimization

Yi Wang, Yixuan Cao, Qiang Ding, Zelin Gao, Ping Luo

NeurIPS page · OpenReview · Open on the map

Category: Efficient LLM Inference & Training › KV Cache Quantization Compression · Type: new method · Keywords: KV cache compression, attention output distortion, per-token bit allocation, memory-efficient inference, large language models

Areas: Long Context › Long-context mechanisms › KV cache eviction

Summary

KV Cache Compression via Attention Output Distortion Minimization proposes a per-token bit-width allocation based on a sensitivity-based risk score and quantization error to compress KV caches while preserving model accuracy.

Explained to a 5-year-old

Big computers that think need to remember a lot of information while answering questions. To save space, they can make the memory smaller, but they don't want the answers to get worse. The paper figures out which pieces of memory are most important by looking at how changing them affects the answer. It then decides how much to shrink each piece, keeping the important ones bigger and the less important ones smaller. This helps the computer remember more without using as much memory, so it can work better on long questions.

Explained to a 5-year-old, longer

When a computer program learns to talk, it stores a lot of information in its memory, like a big notebook. This notebook can get very big when the program has to answer long questions. To fit the notebook on a device with little space, the program can make the notes smaller. But making everything smaller can make the answers wrong, just like squishing a drawing too much. The researchers looked at which notes are most important by seeing how changing a note changes the answer. They found a way to split the importance of each note into two parts: how sensitive the answer is to that note, and how much error comes from making the note smaller. Using a special math trick, they can decide how much each note should be shrunk without hurting the answer too much. Some notes get to stay big because they are crucial, while others can be made tiny because they matter less. This way, the program can keep its memory usage low while still remembering the most useful information. It works especially well for questions where the answer is spread across many different notes. The method also saves energy because the device doesn't need to store as much data. Overall, it helps big language models answer long questions quickly and accurately on smaller devices.

For a technical reader

The paper tackles the problem of reducing memory usage during inference for large language models that handle long sequences. It models compression as an optimization that minimizes distortion in the attention outputs while respecting a global bit-width budget. By performing a first-order perturbation analysis, the authors derive a per-token risk score that quantifies how much each key/value entry influences the output. They then allocate bits to each token based on this score and a quantization error term, solving the allocation efficiently with Lagrangian relaxation. Experiments on LongBench and RULER show the approach achieves the same accuracy as uniform 4-bit quantization with half the bits, and outperforms baselines at very low bit rates.

Problem

Efficient long-context inference requires compressing the KV cache under memory constraints without degrading model outputs, which is challenging because it is difficult to estimate each token's contribution to attention output distortion.

Method

The approach formulates KV cache compression as a constrained optimization that minimizes attention-output distortion, decomposes each token's compression cost into a sensitivity-based risk score and a bit-width-dependent quantization error, and solves the allocation via Lagrangian relaxation to obtain independent per-token decisions.

Results

The approach achieves comparable accuracy to uniform 4-bit quantization while using an average of 2 bits per entry (2× memory reduction), and at 1 bit it retains substantially higher accuracy than uniform quantization and token eviction baselines.

Contributions

It introduces a token-specific risk score and a closed-form distortion decomposition that enable optimal per-token bit-width allocation, and it demonstrates superior performance on retrieval-sensitive long-context tasks.

Practical relevance

Enables deployment of large language models with long contexts on memory-constrained hardware while preserving output quality.

Research questions this paper is counted under

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction