AdaKVQ: Adaptive Mixed-Precision KV Cache Quantization For Efficient Reasoning Models
Tao Zhang, Yun Dai, Ziqian Zeng
NeurIPS page · OpenReview · Open on the map
Category: Efficient LLM Inference & Training › KV Cache Quantization Compression · Type: new method · Keywords: adaptive quantization, KV cache optimization, attention distance, large reasoning models, efficient inference
Areas: LLM Reasoning › Efficient Reasoning › KV Cache Compression; Long Context › Long-context mechanisms › KV cache eviction
Summary
AdaKVQ is an adaptive mixed-precision quantization framework that dynamically allocates bit-widths per layer based on attention distance to preserve reasoning performance while reducing KV cache memory.
Explained to a 5-year-old
Big computer programs that think step-by-step need to remember a lot of information while they work. To save memory, the remembered information can be stored using fewer bits, but if we always use the same few bits it makes the thinking less accurate. The new idea looks at how far apart the remembered pieces are in each part of the program and changes the number of bits accordingly. This way the program can remember important long-range connections accurately while using less memory overall. It helps the program think just as well as before but uses much less space.
Explained to a 5-year-old, longer
Large language models are computer programs that can think through problems step by step. While they think, they keep a record of what they have seen, called a key-value cache, to help them remember. This record grows quickly and uses a lot of memory, which can be a problem on smaller devices. One way to save memory is to store the numbers in the record using fewer bits, a technique called quantization. However, if we always use the same few bits everywhere, the model can make more mistakes and take longer to finish. Researchers noticed that some parts of the model only need to remember nearby information, while other parts need to recall things that are far apart. They measured how far apart the remembered items are on average, which they called the Average Attention Distance. Based on this measurement, they found that shallow layers have local patterns, while deep layers have many long-range connections. The new method changes the number of bits used for each layer depending on how much long-range memory that layer needs. Layers that need precise long-range recall keep more bits, while layers that only need local recall use fewer bits. This adaptive mixed-precision approach keeps the model’s accuracy high while cutting down the memory it uses. As a result, the model can run faster and on devices with less memory without losing its ability to reason.
For a technical reader
AdaKVQ dynamically quantizes the key-value cache by assigning different bit-widths to each transformer layer based on measured attention distance. It leverages Average Attention Distance to identify layers with strong locality versus those requiring long-range retrieval, allocating higher precision where needed. This per-layer adaptation preserves reasoning accuracy while significantly reducing memory consumption and inference latency. The framework is evaluated on Llama-3.1 and Qwen2.5 across complex reasoning benchmarks, showing consistent gains over static quantization baselines. Engineers can integrate AdaKVQ into existing inference pipelines to achieve efficient, high-performance deployment of large reasoning models.
Problem
Large reasoning models require growing key-value caches that cause memory bottlenecks, and static low-bit quantization degrades accuracy and lengthens generation, limiting efficiency gains.
Method
The approach uses Average Attention Distance to measure retrieval locality, observes that shallow layers have local patterns while deep layers have long-range dependencies, and then allocates mixed bit-widths per layer according to these dynamic demands.
Results
The approach consistently outperforms baselines and reaches performance on par with full-precision models on the reasoning benchmarks.
Contributions
It introduces a dynamic, layer-wise mixed-precision quantization scheme guided by attention distance, and provides empirical evidence that this adaptation preserves reasoning accuracy while reducing memory usage.
Practical relevance
By reducing KV cache memory, AdaKVQ enables more efficient deployment of large reasoning models on resource-constrained hardware.
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