End-to-End Context Compression at Scale
On the map: Efficient LLM inference and serving → Prompt and context compression
Abstract (arXiv)
Long-context language model inference is bottlenecked by memory, as the KV cache grows with context length. Recent techniques to compress the KV cache fall short: they either degrade model quality substantially or require considerable time and compute to compress a single long prompt. Furthermore, many methods require the input to fit within the target model's context window, and are generally incompatible with modern production inference engines. Encoder-decoder compressors, which map a long token sequence to a shorter sequence of latent embeddings consumed by a decoder, are an appealing alternative in principle. However, existing approaches are not competitive with KV cache compression on the accuracy-efficiency frontier. In this work, we revisit encoder-decoder compression and close this gap. We first perform an architecture search, pre-training many variants from scratch to determine how best to design and train encoder-decoder compressors. Guided by our findings, we continually pre-train a family of 0.6B-encoder, 4B-decoder models on over 350B tokens each, at compression ratios of 1:4, 1:8, and 1:16. We introduce Latent Context Language Models (LCLMs), a family of compressors that improve the Pareto frontier across general-task performance, compression speed, and peak memory usage. We demonstrate that LCLMs serve as efficient backbones for long-horizon agents, letting the agent skim through a compressed long context and adaptively expand relevant segments on demand.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Placed in Prompt and context compression, one of 12 directions in Efficient LLM inference and serving. Builds on 76 of its 86 references that are in the map. First posted on arXiv 8 Jun 2026.
Builds on
76 of 86 references.
Closest ancestors · 7
Same direction, newest first
- 2025Cartridges: Lightweight and general-purpose long context representations via self-study6 Jun
- 2025GMSA: Enhancing Context Compression via Group Merging and Layer Semantic Alignment18 May
- 2024500xCompressor: Generalized Prompt Compression for Large Language Models6 Aug
- 2024xRAG: Extreme Context Compression for Retrieval-augmented Generation with One Token22 May
- 2024LLoCO: Learning Long Contexts Offline11 Apr
- 2023LongLLMLingua: Accelerating and Enhancing LLMs in Long Context Scenarios via Prompt Compression10 Oct
- 2023In-context Autoencoder for Context Compression in a Large Language Model13 Jul
Other references · 69
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2025Qwen3 Technical Reportcited by 8,195
- 2023Visual Instruction Tuningcited by 7,792
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,686
- 2016Gaussian Error Linear Units (GELUs)cited by 3,431
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
38 more
- 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,895
- 2021Efficiently Modeling Long Sequences with Structured State Spacescited by 2,424
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
- 2019Root Mean Square Layer Normalizationcited by 1,425
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
- 2019PubMedQA: A Dataset for Biomedical Research Question Answeringcited by 1,271
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,270
- 2025gpt-oss-120b & gpt-oss-20b Model Cardcited by 1,258
- 2025Qwen3 Embedding: Advancing Text Embedding and Reranking Through Foundation Modelscited by 1,175
- 2023SGLang: Efficient Execution of Structured Language Model Programscited by 1,107
- 2024DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Modelcited by 1,093
- 2026DeepSeek-V4: Towards Highly Efficient Million-Token Context Intelligencecited by 877
- 2024SnapKV: LLM Knows What You are Looking for Before Generationcited by 848
- 2024Cambrian-1: A Fully Open, Vision-Centric Exploration of Multimodal LLMscited by 822
- 2019Compressive Transformers for Long-Range Sequence Modellingcited by 699
- 2023An Empirical Study of Catastrophic Forgetting in Large Language Models During Continual Fine-tuningcited by 622
- 2024WildChat: 1M ChatGPT Interaction Logs in the Wildcited by 598
- 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 584
- 2024KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache Quantizationcited by 571
- 2023MemoryBank: Enhancing Large Language Models with Long-Term Memorycited by 539
- 2023LMSYS-Chat-1M: A Large-Scale Real-World LLM Conversation Datasetcited by 449
- 2021Conditional Positional Encodings for Vision Transformerscited by 402
- 2023Learning to Compress Prompts with Gist Tokenscited by 379
- 2023Adapting Language Models to Compress Contextscited by 350
- 2023RepoBench: Benchmarking Repository-Level Code Auto-Completion Systemscited by 346
- 2023LLMLingua: Compressing Prompts for Accelerated Inference of Large Language Modelscited by 279
- 2023Compressing Context to Enhance Inference Efficiency of Large Language Modelscited by 185
- 2024Flex Attention: A Programming Model for Generating Optimized Attention Kernelscited by 180
- 2023OctoPack: Instruction Tuning Code Large Language Modelscited by 178
- 2024RedPajama: an Open Dataset for Training Large Language Modelscited by 178
- 2025Kimi Linear: An Expressive, Efficient Attention Architecturecited by 169
- 2024How to Train Long-Context Language Models (Effectively)cited by 141
- 2023SCM: Enhancing Large Language Model with Self-Controlled Memory Frameworkcited by 98
- 2024Revisiting Catastrophic Forgetting in Large Language Model Tuningcited by 93
- 2025KVzip: Query-Agnostic KV Cache Compression with Context Reconstructioncited by 89
- 2025SWE-Fixer: Training Open-Source LLMs for Effective and Efficient GitHub Issue Resolutioncited by 87
- 2025Nemotron 3 Nano: Open, Efficient Mixture-of-Experts Hybrid Mamba-Transformer Model for Agentic Reasoningcited by 85
50 most cited of 69 All 69 (JSON)
Built on by
Citing papers per year: 2026: 4.
4 papers.
- 2026Compress What You See, Not What You Say: Anchored Context Distillation for Latent-Observation Software Engineering Agentscited by 0
- 2026The Optimization Landscape of Learning Compacted Context Modelscited by 0
- 2026Lossy Compressive Text Autoencoderscited by 0
- 2026REMORY: Learning Residual Memory for Context Compactioncited by 0
- 2026REMORY: Learning Residual Memory for Context Compaction8 Oct 2026
- 2026Lossy Compressive Text Autoencoders7 Oct 2026
- 2026The Optimization Landscape of Learning Compacted Context Models5 Oct 2026
- 2026Compress What You See, Not What You Say: Anchored Context Distillation for Latent-Observation Software Engineering Agents25 Sep 2026
Similar, not cited
Close in wording, no citation either way
- 2025KVCompose: Efficient Structured KV Cache Compression with Composite Tokens
- 2026PuzzleKV: Page-Wise Low-Rank Decomposition for KV Cache Compression
- 2024KV Cache Compression, But What Must We Give in Return? A Comprehensive Benchmark of Long Context Capable Approaches
- 2026Compressing Long Context into Answer-Aligned Memory Embeddings for LLM Inference
- 2026Training Transformers for KV Cache Compressibility
- 2026A JoLT for the KV cache: Near-Lossless KV Cache Compression via Joint Rank-bit Allocation
- 2025RocketKV: Accelerating Long-Context LLM Inference via Two-Stage KV Cache Compression
- 2025KV Pareto: Systems-Level Optimization of KV Cache and Model Compression for Long Context Inference