TL;DR
SkipKV is a training-free key-value (KV) cache compression framework designed for Large Reasoning Models (LRMs) that operates at the sentence level rather than the token level. By combining semantic-aware sentence eviction with adaptive activation steering, it prevents models from "overthinking," reduces memory footprints by up to 6.7×, and significantly accelerates inference throughput without sacrificing reasoning accuracy.
What Problem Does This Paper Address?
Large Reasoning Models (LRMs) like DeepSeek-R1 achieve remarkable performance by generating verbose, step-by-step Chain-of-Thought (CoT) reasoning paths. However, this verbosity causes a massive explosion in the Key-Value (KV) cache, creating severe memory bottlenecks and slowing down decoding throughput during inference.
While prior works have attempted to mitigate this via token-level KV cache eviction (dropping less important tokens based on attention scores), the authors identify two critical flaws when applying these methods to LRMs:
- The Overthinking Loop: Token-level eviction is semantic-unaware. It often drops crucial numbers or fragments words, which breaks the model's contextual coherence. This confuses the LRM, forcing it to repeatedly re-validate its steps, which paradoxically increases the final generation length.
- Multi-Batch Fragility: In real-world multi-batch deployments, variable prompt lengths require padding tokens. Under a fixed KV budget, these useless padding tokens steal memory from valid tokens, causing severe accuracy degradation.
Methods
SkipKV addresses these issues through a hierarchical approach that spans storage eviction, generation control, and batch scheduling:
- Sentence-Level Storage Skipping: Instead of evicting isolated tokens, SkipKV groups tokens into sentences using punctuation delimiters. It leverages the model's last-layer hidden states to compute a Pairwise Sentence Similarity (PSS) score. Sentences flagged with high semantic redundancy are permanently evicted from the cache as a whole, preserving the local semantic structure of the remaining reasoning steps.
- Adaptive KV Steering (Generation Skipping): To stop redundant thoughts before they are even written, SkipKV injects a pre-computed "steering vector" into the model's hidden activations. This vector biases the model toward concise, "execution-style" tokens rather than repetitive "non-execution" thoughts (e.g., meta-commentary like "Wait, let me double-check..."). Crucially, the steering strength dynamically increases if the model starts accumulating too many non-execution thoughts.
- Batch Grouping: To fix the multi-batch padding issue, SkipKV sorts incoming requests by their prefill token length before grouping them into batches. This minimizes intra-batch length variance, dramatically reducing padding overhead and reclaiming effective KV cache budget for valid tokens.
Datasets
The authors evaluated SkipKV across several demanding mathematical reasoning and code generation benchmarks using models like DeepSeek-R1-Distill-Qwen (7B/14B) and DeepSeek-R1-Distill-Llama-8B:
- MATH-500 (Olympiad-level math problems)
- AIME-24 (American Invitational Mathematics Examination)
- GSM8K (Grade school math word problems)
- LiveCodeBench (Holistic code generation benchmark)
Key Insights and Ideas
- Coherence Over Granularity: Coarse-grained (sentence-level) cache eviction outperforms fine-grained (token-level) eviction for reasoning tasks. Fragmenting mathematical expressions or logical clauses does more harm to an LRM's internal state than dropping an entire redundant sentence.
- The Anatomy of a Failed Response: By analyzing successful vs. failed reasoning traces, the authors discovered that incorrect answers are highly correlated with a massive spike in repetitive sentences and non-execution thoughts.
- Steering Must Be Dynamic: Static activation steering can overly suppress the model's natural reasoning flow. By making the steering strength adaptive to a running counter of non-execution thoughts, SkipKV acts as a gentle guardrail that only pushes back when the model begins to spiral into overthinking.
Key Results
- Higher Accuracy under Tight Budgets: On the challenging AIME-24 benchmark with R1-Qwen-14B, SkipKV achieved up to 26.7% higher accuracy than state-of-the-art token eviction methods at a similar compression budget. It matched FullKV accuracy while using 6.7× less KV memory (2.8 GB vs 18.5 GB).
- Shorter Generations: SkipKV consistently produced up to 1.6× shorter generation lengths compared to other eviction methods, successfully mitigating the cache-eviction-induced overthinking loop.
- Throughput Gains: In end-to-end system evaluations on GSM8K, SkipKV delivered up to a 9.6× throughput speedup over the FullKV baseline and outperformed the closest eviction baseline (R-KV) by up to 1.7× due to its shorter sequence lengths.
Limitations and Future Work
The authors note that their batch grouping strategy relies heavily on request length characteristics. In production environments with highly variable, extreme long-context scenarios or unpredictable streaming arrivals, residual padding overhead could still limit efficiency gains. The development of dynamic, continuous grouping strategies that adapt on the fly is left as an open direction for future research.
Summary updated