NeurIPS 2026QuestionsPapersAreasAboutMarkdown

ResKV: Residual-based Channel-wise Unstructured Pruning for KV Cache Compression

Yue Chen, Jinze Li, Dajiang Liu

NeurIPS page · OpenReview · Open on the map

Category: Efficient LLM Inference & Training › KV Cache Quantization Compression · Type: new method · Keywords: KV cache compression, channel-wise pruning, residual vectors, LLM inference efficiency, model compression

Areas: Memory › Model Memory Optimization › KV Cache Optimization; Long Context › Long-context mechanisms › KV cache eviction

Summary

ResKV introduces a residual-driven channel-wise pruning framework that clusters similar KV vectors, computes residuals, and applies pruning and quantization only to these residuals, achieving large memory savings and speedups while preserving model performance.

Explained to a 5-year-old

When a big computer talks a lot, it needs to remember what it said before. That memory is called the KV cache, and it can take up a lot of space. The new idea groups similar memories together and only keeps the small differences. By keeping only the differences, the computer uses less space and runs faster. This helps the computer remember things well while using less memory.

Explained to a 5-year-old, longer

Big computers that talk a lot need to remember everything they have said. They store this memory in something called the KV cache. When the computer talks for a long time, this memory can become very big. Having a big memory makes the computer slower and uses more electricity. Scientists noticed that many memories are similar to each other. They wanted to make the memory smaller without losing the important parts. So they came up with a new idea: first, they group similar memories together. Then they find the small differences between each group and the average memory. Only those small differences are kept, and the rest is thrown away. Because the differences are tiny, the computer can still guess the original memory well. This makes the memory much smaller, so the computer can work faster. It also uses less electricity, which is good for the environment.

For a technical reader

ResKV is a compression technique for the KV cache used in large language model inference. It first clusters similar KV vectors by cosine similarity and computes residual vectors relative to each cluster centroid. Only the residuals are pruned and quantized, while the centroids are retained, allowing accurate reconstruction during inference. This design yields substantial memory savings and speedups without sacrificing model accuracy.

Problem

Long-context LLM inference suffers from high memory usage due to the KV cache, and existing channel-wise pruning methods achieve limited compression because they ignore inherent similarities among KV vectors.

Method

The approach clusters similar KV vectors using cosine similarity, computes residual vectors by subtracting each cluster's centroid from the original features, and then applies channel-wise unstructured pruning and per-token quantization exclusively to these residual components. During inference, the retained residuals are combined with their centroids to reconstruct dense KV representations.

Results

The approach reduces peak memory consumption by 45.6% and improves inference throughput by 4.27× compared to dense FlashAttention, while maintaining competitive performance. Under the same sparsity constraints, it achieves up to 2.26 points higher accuracy and 2.63× faster end-to-end throughput than existing channel-wise KV pruning methods.

Contributions

The paper introduces a residual-driven channel-wise pruning framework that leverages KV vector similarity, clusters vectors, computes residuals, and applies pruning and quantization only to residuals, enabling high compression efficiency with minimal accuracy loss and providing a reconstruction scheme for dense KV recovery.

Practical relevance

The approach enables more efficient long-context LLM inference on existing hardware, reducing memory pressure and improving speed for real-world deployments.

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