Fast KVzip: Efficient and Accurate LLM Inference with Gated KV Eviction
Jang-Hyun Kim, Dongyoon Han, Sangdoo Yun
NeurIPS page · OpenReview · Open on the map
Category: Efficient LLM Inference & Training › KV Cache Optimization · Type: new method · Keywords: KV cache compression, LLM inference efficiency, gating mechanism, sink-attention, forward-pass training, memory reduction
Areas: LLM Reasoning › Efficient Reasoning › KV Cache Compression; Memory › Model Memory Optimization › KV Cache Optimization; Long Context › Long-context mechanisms › KV cache eviction
Summary
Fast KVzip introduces a gating-based KV cache eviction method that achieves high compression ratios with negligible computational cost, maintaining near-lossless LLM performance while evicting up to 70% of the KV cache.
Explained to a 5-year-old
Large language models need to remember many things while they talk. This memory is stored in a special place called a cache. The cache can get big and use a lot of computer memory. The paper creates a simple way to decide which memories are most important and keep only those. It uses a tiny helper that looks at the memories and picks the useful ones, helping the model use less memory while still talking well.
Explained to a 5-year-old, longer
When a big computer program called a language model talks, it needs to remember many things it has seen before. It stores these memories in a place called a cache, like a short-term memory. If the cache holds too many memories, it takes up a lot of space in the computer's memory. The paper comes up with a friendly way to look at those memories and pick out the most useful ones. It adds a tiny extra part that watches the memories and decides which ones are important. This extra part is trained using only simple forward passes, so it doesn’t need a lot of computing power. By keeping only the key memories, the model can work with much less memory. The method works for many different language models and many different kinds of tasks. It helps the model understand long texts, write code, and solve math problems just as well as before. The result is that the model can run faster and on cheaper hardware while still giving good answers. This makes it easier for many people to use powerful language models without needing huge computer farms. Overall, the idea is a simple, low-cost trick that makes memory usage much more efficient.
For a technical reader
Fast KVzip introduces a lightweight gating mechanism that selects critical key-value pairs in the LLM’s cache, allowing aggressive eviction while preserving performance. The gating modules are trained using only forward passes, eliminating the need for costly backpropagation and making the approach cheap to deploy. By integrating seamlessly into both prefill and decoding phases, the method reduces KV cache memory by up to 70% without noticeable accuracy loss. Experiments on Qwen2.5-1M, Qwen3, and Gemma3 show consistent gains across long-context, code, and math tasks. This makes LLM inference more efficient and affordable for production systems that have limited memory or want lower hardware costs.
Problem
Efficient key-value cache management for large language models often involves a trade-off between compression and performance degradation, requiring methods that can reduce cache size without significantly harming model accuracy.
Method
The approach uses lightweight sink-attention gating modules to identify critical KV pairs and retain them, integrating into both prefill and decoding stages. It trains the gates using forward passes only, avoiding backpropagation, and employs a task-agnostic reconstruction objective to achieve strong generalization.
Results
The approach maintains near-lossless performance while evicting up to 70% of the KV cache, with consistent results across long-context understanding, code comprehension, and mathematical reasoning tasks.
Contributions
It introduces a gating-based KV cache eviction method that achieves high compression ratios with negligible computational cost, uses forward-pass training to avoid backpropagation, and demonstrates strong task generalization across multiple model families and tasks.
Practical relevance
It enables more efficient and cost-effective deployment of LLMs by drastically reducing KV cache memory usage without sacrificing performance.
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