Training Transformers for KV Cache Compressibility
On the map: Efficient LLM inference and serving → KV cache optimization
Abstract (arXiv)
Long-context language modeling is increasingly constrained by the Key-Value (KV) cache, whose memory and decode-time access costs scale linearly with the prefix length. This bottleneck has motivated a range of context-compression methods, from token-level summarization to recent optimization-based KV compression methods. These post-hoc methods operate on the KV cache of a fixed pretrained model, so their effectiveness is fundamentally limited by how well the model's internal representations can be compressed. In this work, we formalize the notion of KV compressibility and show that it is a property of the learned representations, rather than of the context alone. We prove that almost any sequence-to-vector function admits both highly compressible and inherently non-compressible transformer implementations, highlighting the need to guide transformers toward compressible representations during training. Motivated by this, we propose KV-Compression Aware Training (KV-CAT), a continued pretraining procedure that incentivizes the emergence of compressible representations. We introduce a train-time KV sparsification policy that masks KV slots during training. This forces the model to use fewer KV slots and encourages it to learn representations amenable to post-hoc compression. Empirically, we show that KV-CAT improves the quality-budget tradeoff of downstream compression methods across retrieval, long-context question answering, and perplexity-based evaluation of compressed-prefix continuation.
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Placed in KV cache optimization, one of 12 directions in Efficient LLM inference and serving. Builds on 42 of its 58 references that are in the map. First posted on arXiv 7 May 2026.
Builds on
42 of 58 references.
Closest ancestors · 4
Same direction, newest first
- 2025KVzip: Query-Agnostic KV Cache Compression with Context Reconstruction29 May
- 2024Lexico: Extreme KV Cache Compression via Sparse Coding over Universal Dictionaries12 Dec
- 2024DuoAttention: Efficient Long-Context LLM Inference with Retrieval and Streaming Heads14 Oct
- 2024Quest: Query-Aware Sparsity for Efficient Long-Context LLM Inference16 Jun
Other references · 38
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2016Pointer Sentinel Mixture Modelscited by 2,992
- 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,818
- 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,424
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
- 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,114
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
- 2020Big Bird: Transformers for Longer Sequencescited by 1,673
26 more
- 2020Rethinking Attention with Performerscited by 1,584
- 2017Deep Setscited by 1,394
- 2024The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scalecited by 1,104
- 2019Compressive Transformers for Long-Range Sequence Modellingcited by 699
- 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 483
- 2018A Discourse-Aware Attention Model for Abstractive Summarization of Long Documentscited by 477
- 2023LongLLMLingua: Accelerating and Enhancing LLMs in Long Context Scenarios via Prompt Compressioncited by 443
- 2025Towards Reasoning Era: A Survey of Long Chain-of-Thought for Reasoning Large Language Modelscited by 381
- 2023Learning to Compress Prompts with Gist Tokenscited by 379
- 2024LongBench v2: Towards Deeper Understanding and Reasoning on Realistic Long-context Multitaskscited by 367
- 2023FinanceBench: A New Benchmark for Financial Question Answeringcited by 261
- 2023Using an LLM to Help With Code Understandingcited by 222
- 2023Compressing Context to Enhance Inference Efficiency of Large Language Modelscited by 185
- 2023Representational Strengths and Limitations of Transformerscited by 132
- 2024Transformers are Multi-State RNNscited by 120
- 2025Lifelong Learning of Large Language Model based Agents: A Roadmapcited by 78
- 2025Cartridges: Lightweight and general-purpose long context representations via self-studycited by 74
- 2025Dynamic Chunking for End-to-End Hierarchical Sequence Modelingcited by 65
- 2026Doc-to-LoRA: Learning to Instantly Internalize Contextscited by 36
- 2026Fast KV Compaction via Attention Matchingcited by 28
- 2024Generative Adapter: Contextualizing Language Models in Parameters with A Single Forward Passcited by 26
- 2024When Can Transformers Count to n?cited by 22
- 2026SHINE: A Scalable In-Context Hypernetwork for Mapping Context to LoRA in a Single Passcited by 22
- 2024LARM: Large Auto-Regressive Model for Long-Horizon Embodied Intelligencecited by 10
- 2022Can Foundation Models Help Us Achieve Perfect Secrecy?cited by 9
- 2017Delta-net: Real-time Network Verification Using Atomscited by 4
Built on by
Citing papers per year: 2026: 6.
6 papers.
- 2026KVDiagnosis: A Diagnostic Benchmark for KV-Cache Compression in Long-Context Language Modelscited by 1
- 2026Cartridges++: KV Cache Compression without Off-Context Derailmentcited by 1
- 2026FreqDepthKV: Frequency-Guided Depth Sharing for Robust KV Cache Compression in Long-Context LLM Inferencecited by 0
- 2026DepthWeave-KV: Token-Adaptive Cross-Layer Residual Factorization for Long-Context KV Cache Compressioncited by 0
- 2026Regularize or Localize: When Training-Time KV-Cache Geometry Pays Under Quantizationcited by 0
- 2026VestigeKV: The NoPE-MLA KV Cache Carries Its Own Sparse-Attention Signal in a Vestigial Branchcited by 0
- 2026Cartridges++: KV Cache Compression without Off-Context Derailment28 Sep 2026
- 2026VestigeKV: The NoPE-MLA KV Cache Carries Its Own Sparse-Attention Signal in a Vestigial Branch3 Sep 2026
- 2026KVDiagnosis: A Diagnostic Benchmark for KV-Cache Compression in Long-Context Language Models10 Aug 2026
- 2026Regularize or Localize: When Training-Time KV-Cache Geometry Pays Under Quantization19 Jul 2026
- 2026DepthWeave-KV: Token-Adaptive Cross-Layer Residual Factorization for Long-Context KV Cache Compression7 Jul 2026
- 2026FreqDepthKV: Frequency-Guided Depth Sharing for Robust KV Cache Compression in Long-Context LLM Inference7 Jul 2026
Similar, not cited
Close in wording, no citation either way
- 2025KV-CAR: KV Cache Compression using Autoencoders and KV Reuse in Large Language Models
- 2024KV Cache Compression, But What Must We Give in Return? A Comprehensive Benchmark of Long Context Capable Approaches
- 2026A JoLT for the KV cache: Near-Lossless KV Cache Compression via Joint Rank-bit Allocation
- 2024KV-Compress: Paged KV-Cache Compression with Variable Compression Rates per Attention Head
- 2024CSKV: Training-Efficient Channel Shrinking for KV Cache in Long-Context Scenarios
- 2025KV-Distill: Nearly Lossless Learnable Context Compression for LLMs
- 2026End-to-End Context Compression at Scale
- 2026Behavior-Preserving KV Cache Compression