Which Heads Matter for Reasoning? RL-Guided KV Cache Compression
On the map: LLM reasoning → Test-time compute and efficient thinking
Abstract (arXiv)
Reasoning large language models exhibit complex reasoning behaviors via extended chain-of-thought generation that are highly fragile to information loss during decoding, creating critical challenges for KV cache compression. Existing token-dropping methods directly disrupt reasoning chains by removing intermediate steps, while head-reallocation methods, designed for retrieval tasks, fail to preserve the heads essential for generative reasoning. However, no existing method can identify which attention heads genuinely maintain reasoning consistency and control generation termination. To address this, we propose RLKV, which uses reinforcement learning as a probe to discover which heads contribute to reasoning quality by directly optimizing their cache usage against actual generation outcomes. This discovery naturally leads to an efficient compression strategy: we allocate full KV cache to reasoning-critical heads while aggressively compressing others with constant-size KV cache. Experiments reveal that a fraction of heads proves essential for reasoning, enabling 20--60% cache reduction with near-lossless performance across diverse tasks and models, and up to 2.06x end-to-end speedup at 60% reduction.
Key facts. Cited by 10 papers in the map (data through 14 Oct 2026). Placed in Test-time compute and efficient thinking, one of 17 directions in LLM reasoning. Builds on 55 of its 71 references that are in the map. First posted on arXiv 9 Oct 2025.
Builds on
55 of 71 references.
Closest ancestors · 4
Same direction, newest first
- 2025R-KV: Redundancy-aware KV Cache Compression for Reasoning Models30 May
- 2025Learn to Reason Efficiently with Adaptive Length-based Reward Shaping21 May
- 2025ThinkPrune: Pruning Long Chain-of-Thought of LLMs via Reinforcement Learning2 Apr
- 2024Not All Heads Matter: A Head-Level KV Cache Compression Method with Integrated Retrieval and Reasoning25 Oct
Other references · 51
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
- 2025Qwen3 Technical Reportcited by 8,820
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,718
- 2023Let's Verify Step by Stepcited by 3,789
- 2021Program Synthesis with Large Language Modelscited by 3,637
- 2020Longformer: The Long-Document Transformercited by 3,413
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
- 2024MMLU-Pro: A More Robust and Challenging Multi-Task Language Understanding Benchmarkcited by 1,848
- 2019Generating Long Sequences with Sparse Transformerscited by 1,546
38 more
- 2016Neural Architecture Search with Reinforcement Learningcited by 1,499
- 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,346
- 2025Kimi k1.5: Scaling Reinforcement Learning with LLMscited by 1,210
- 2023SGLang: Efficient Execution of Structured Language Model Programscited by 1,141
- 2024DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Modelcited by 1,135
- 2017Learning Transferable Architectures for Scalable Image Recognitioncited by 1,101
- 2024Qwen2.5-Math Technical Report: Toward Mathematical Expert Model via Self-Improvementcited by 1,090
- 2024SnapKV: LLM Knows What You are Looking for Before Generationcited by 880
- 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Modelscited by 832
- 2023LLM-Pruner: On the Structural Pruning of Large Language Modelscited by 650
- 2024KIVI: A Tuning-Free Asymmetric 2bit Quantization for KV Cachecited by 637
- 2024KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache Quantizationcited by 591
- 2024Quest: Query-Aware Sparsity for Efficient Long-Context LLM Inferencecited by 501
- 2025Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attentioncited by 407
- 2024Parallelizing Linear Transformers with the Delta Rule over Sequence Lengthcited by 396
- 2018AMC: AutoML for Model Compression and Acceleration on Mobile Devicescited by 378
- 2024DuoAttention: Efficient Long-Context LLM Inference with Retrieval and Streaming Headscited by 288
- 2025Gated Attention for Large Language Models: Non-linearity, Sparsity, and Attention-Sink-Freecited by 283
- 2025AReaL: A Large-Scale Asynchronous Reinforcement Learning System for Language Reasoningcited by 250
- 2024Retrieval Head Mechanistically Explains Long-Context Factualitycited by 232
- 2025MoBA: Mixture of Block Attention for Long-Context LLMscited by 198
- 2024PyramidInfer: Pyramid KV Cache Compression for High-throughput LLM Inferencecited by 147
- 2024SeerAttention: Learning Intrinsic Sparse Attention in Your LLMscited by 124
- 2024Insight-V: Exploring Long-Chain Visual Reasoning with Multimodal Large Language Modelscited by 116
- 2024RazorAttention: Efficient KV Cache Compression Through Retrieval Headscited by 100
- 2025KVzip: Query-Agnostic KV Cache Compression with Context Reconstructioncited by 95
- 2025EfficientVLA: Training-Free Acceleration and Compression for Vision-Language-Action Modelscited by 93
- 2025WebExplorer: Explore and Evolve for Training Long-Horizon Web Agentscited by 92
- 2024WKVQuant: Quantizing Weight and Key/Value Cache for Large Language Models Gains Morecited by 69
- 2025CAKE: Cascading and Adaptive KV Cache Eviction with Layer Preferencescited by 58
- 2025HoliTom: Holistic Token Merging for Fast Video Large Language Modelscited by 58
- 2025LongReason: A Synthetic Long-Context Reasoning Benchmark via Context Expansioncited by 50
- 2025RotateKV: Accurate and Robust 2-Bit KV Cache Quantization for LLMs via Outlier-Aware Adaptive Rotationscited by 46
- 2024SKVQ: Sliding-window Key and Value Cache Quantization for Large Language Modelscited by 44
- 2024AutoDroid-V2: Boosting SLM-based GUI Agents via Code Generationcited by 34
- 2025OBS-Diff: Accurate Pruning For Diffusion Models in One-Shotcited by 19
- 2025Plug-and-Play 1.x-Bit KV Cache Quantization for Video Large Language Modelscited by 13
- 2025Cache Me If You Can: How Many KVs Do You Need for Effective Long-Context LMs?cited by 10
50 most cited of 51 All 51 (JSON)
Built on by
Citing papers per year: 2025: 1; 2026: 9.
10 papers.
- 2026Fast KVzip: Efficient and Accurate LLM Inference with Gated KV Evictioncited by 16
- 2025Active Perception Agent for Omnimodal Audio-Video Understandingcited by 13
- 2026EarlyTom: Early Token Compression Completes Fast Video Understandingcited by 4
- 2026How Much Cache Does Reasoning Need? Depth-Cache Tradeoffs in KV-Compressed Transformerscited by 3
- 2026CompilerKV: Risk-Adaptive KV Compression via Offline Experience Compilationcited by 2
- 2026dMoE: dLLMs with Learnable Block Expertscited by 2
- 2026HARD-KV: Head-Adaptive Regularization for Decoding-time KV Compressioncited by 2
- 2026Dynamic Thinking-Token Selection for Efficient Reasoning in Large Reasoning Modelscited by 1
- 2026EchoPress: Query-Agnostic KV Cache Pruning via Virtual Context Reconstructioncited by 1
- 2026Spend Bytes on Breadth: Precision-Count Trade-offs for Decode-Time KV Compression in Long Chain-of-Thought Reasoningcited by 0
- 2026Spend Bytes on Breadth: Precision-Count Trade-offs for Decode-Time KV Compression in Long Chain-of-Thought Reasoning5 Oct 2026
- 2026EchoPress: Query-Agnostic KV Cache Pruning via Virtual Context Reconstruction30 Sep 2026
- 2026HARD-KV: Head-Adaptive Regularization for Decoding-time KV Compression27 Jun 2026
- 2026dMoE: dLLMs with Learnable Block Experts29 May 2026
- 2026EarlyTom: Early Token Compression Completes Fast Video Understanding28 May 2026
- 2026How Much Cache Does Reasoning Need? Depth-Cache Tradeoffs in KV-Compressed Transformers20 Apr 2026
- 2026CompilerKV: Risk-Adaptive KV Compression via Offline Experience Compilation9 Feb 2026
- 2026Dynamic Thinking-Token Selection for Efficient Reasoning in Large Reasoning Models26 Jan 2026
- 2026Fast KVzip: Efficient and Accurate LLM Inference with Gated KV Eviction25 Jan 2026
- 2025Active Perception Agent for Omnimodal Audio-Video Understanding29 Dec 2025
Similar, not cited
Close in wording, no citation either way
- 2025Breadcrumbs Reasoning: Memory-Efficient Reasoning with Compression Beacons
- 2025Hold Onto That Thought: Assessing KV Cache Compression On Reasoning
- 2026Fewer Tokens, Smaller Cache: Reward-Coordinated Efficient Reasoning
- 2026Random Attention: Rethinking KV Cache Eviction for Efficient Reasoning
- 2026Training Large Reasoning Models Efficiently via Progressive Thought Encoding
- 2026BeaconKV: Key-Value Cache Compression Guided by Beacon Queries for Efficient Large Reasoning Model Inference
- 2026CASK: Core-Aware Selective KV Compression for Reasoning Traces
- 2026ReasonAlloc: Hierarchical Decoding-Time KV Cache Budget Allocation for Reasoning Models