mlsanityData to 7 Oct 2026

Training Transformers for KV Cache Compressibility

arXiv 2605.05971 ↗First posted 7 May 2026cs.LGcited by 6

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

  1. 2025KVzip: Query-Agnostic KV Cache Compression with Context Reconstruction29 May
  2. 2024Lexico: Extreme KV Cache Compression via Sparse Coding over Universal Dictionaries12 Dec
  3. 2024DuoAttention: Efficient Long-Context LLM Inference with Retrieval and Streaming Heads14 Oct
  4. 2024Quest: Query-Aware Sparsity for Efficient Long-Context LLM Inference16 Jun

Other references · 38

  1. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
  2. 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
  3. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
  4. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
  5. 2020Longformer: The Long-Document Transformercited by 3,362
  6. 2016Pointer Sentinel Mixture Modelscited by 2,992
  7. 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,818
  8. 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,424
  9. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
  10. 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,114
  11. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
  12. 2020Big Bird: Transformers for Longer Sequencescited by 1,673
26 more
  1. 2020Rethinking Attention with Performerscited by 1,584
  2. 2017Deep Setscited by 1,394
  3. 2024The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scalecited by 1,104
  4. 2019Compressive Transformers for Long-Range Sequence Modellingcited by 699
  5. 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 483
  6. 2018A Discourse-Aware Attention Model for Abstractive Summarization of Long Documentscited by 477
  7. 2023LongLLMLingua: Accelerating and Enhancing LLMs in Long Context Scenarios via Prompt Compressioncited by 443
  8. 2025Towards Reasoning Era: A Survey of Long Chain-of-Thought for Reasoning Large Language Modelscited by 381
  9. 2023Learning to Compress Prompts with Gist Tokenscited by 379
  10. 2024LongBench v2: Towards Deeper Understanding and Reasoning on Realistic Long-context Multitaskscited by 367
  11. 2023FinanceBench: A New Benchmark for Financial Question Answeringcited by 261
  12. 2023Using an LLM to Help With Code Understandingcited by 222
  13. 2023Compressing Context to Enhance Inference Efficiency of Large Language Modelscited by 185
  14. 2023Representational Strengths and Limitations of Transformerscited by 132
  15. 2024Transformers are Multi-State RNNscited by 120
  16. 2025Lifelong Learning of Large Language Model based Agents: A Roadmapcited by 78
  17. 2025Cartridges: Lightweight and general-purpose long context representations via self-studycited by 74
  18. 2025Dynamic Chunking for End-to-End Hierarchical Sequence Modelingcited by 65
  19. 2026Doc-to-LoRA: Learning to Instantly Internalize Contextscited by 36
  20. 2026Fast KV Compaction via Attention Matchingcited by 28
  21. 2024Generative Adapter: Contextualizing Language Models in Parameters with A Single Forward Passcited by 26
  22. 2024When Can Transformers Count to n?cited by 22
  23. 2026SHINE: A Scalable In-Context Hypernetwork for Mapping Context to LoRA in a Single Passcited by 22
  24. 2024LARM: Large Auto-Regressive Model for Long-Horizon Embodied Intelligencecited by 10
  25. 2022Can Foundation Models Help Us Achieve Perfect Secrecy?cited by 9
  26. 2017Delta-net: Real-time Network Verification Using Atomscited by 4

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 6.

6 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025KV-CAR: KV Cache Compression using Autoencoders and KV Reuse in Large Language Models
  2. 2024KV Cache Compression, But What Must We Give in Return? A Comprehensive Benchmark of Long Context Capable Approaches
  3. 2026A JoLT for the KV cache: Near-Lossless KV Cache Compression via Joint Rank-bit Allocation
  4. 2024KV-Compress: Paged KV-Cache Compression with Variable Compression Rates per Attention Head
  5. 2024CSKV: Training-Efficient Channel Shrinking for KV Cache in Long-Context Scenarios
  6. 2025KV-Distill: Nearly Lossless Learnable Context Compression for LLMs
  7. 2026End-to-End Context Compression at Scale
  8. 2026Behavior-Preserving KV Cache Compression