Reformulating KV Cache Eviction Problem for Long-Context LLM Inference
Tho Mai, Joo-Young Kim
NeurIPS page · OpenReview · Open on the map
Category: Efficient LLM Inference & Training › KV Cache Optimization · Type: new method · Keywords: KV cache eviction, long-context LLM inference, attention weight, value representation, inter-head interaction
Areas: Memory › Model Memory Optimization › KV Cache Optimization; Long Context › Long-context mechanisms › KV cache eviction
Summary
LaProx reformulates KV Cache eviction as an output-aware matrix multiplication approximation, enabling global token importance scoring and maintaining model performance with only 5% of the KV cache.
Explained to a 5-year-old
Big computer programs called language models remember a lot of words when they talk. When they talk for a long time, they need to remember everything they said before. This memory is stored in a special place called the KV cache. The KV cache can become very big, which makes the computer use a lot of memory. To save memory, some words are chosen to be forgotten and removed from the cache.
Explained to a 5-year-old, longer
Language models are computer programs that can talk and write like people. When they talk for a long time, they need to remember everything they said before. This memory is stored in a special place called the KV cache. The KV cache can become very big, which makes the computer use a lot of memory. To save memory, some words are chosen to be forgotten and removed from the cache. The old way of choosing which words to forget only looked at one small part of the program. This meant some important words could be accidentally forgotten. The new idea looks at how the whole program uses the words together. It checks the connections between different parts of the program to see which words matter most. By looking at these connections, it can tell which words are truly useful for the model. Then it keeps only those important words and forgets the rest. This way, the model still works well even though the cache is much smaller.
For a technical reader
Large language models store attention keys and values in a KV cache to enable long-range context during generation. Existing eviction policies decide which cache entries to discard based on per-head attention weights, ignoring how those keys interact with downstream projection and value states. The paper reframes eviction as a layer-wise matrix multiplication approximation problem, capturing the multiplicative effect of attention maps on projected values and inter-head dependencies. This yields a unified importance scoring mechanism that can be applied across the whole model, allowing global token selection instead of head-wise decisions. Experiments on multiple long-context benchmarks show the new strategy retains performance with only 5 % of the cache and cuts accuracy loss by up to 2× compared to prior baselines.
Problem
Adapting large language models for long contexts requires storing growing Key-Value caches, leading to high memory and runtime overhead. Existing eviction methods rely on local attention weights and ignore value representations and inter-head interactions, limiting their effectiveness.
Method
The approach reformulates cache eviction as an output-aware, layer-wise matrix multiplication approximation, modeling the interaction between attention maps and projected value states to compute token importance scores that account for inter-head dependencies. Based on these scores, a unified eviction strategy selects tokens globally rather than per head. The resulting method maintains performance while drastically reducing cache size.
Results
The approach retains performance using only 5% of the KV cache and reduces accuracy loss by up to 2× under extreme compression compared to prior baselines, with minimal overhead.
Contributions
A reformulation of KV Cache eviction as an output-aware matrix multiplication problem that captures inter-head dependencies, a unified global token importance scoring scheme, and empirical evidence of substantial cache compression with minimal performance loss across many benchmarks.
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