mlsanityData to 7 Oct 2026

Recurrent Context Compression: Efficiently Expanding the Context Window of LLM

arXiv 2406.06110 ↗First posted 10 Jun 2024cs.CL cs.AIcited by 7

On the map: Efficient LLM inference and serving → Prompt and context compression

Abstract (arXiv)

To extend the context length of Transformer-based large language models (LLMs) and improve comprehension capabilities, we often face limitations due to computational resources and bounded memory storage capacity. This work introduces a method called Recurrent Context Compression (RCC), designed to efficiently expand the context window length of LLMs within constrained storage space. We also investigate the issue of poor model responses when both instructions and context are compressed in downstream tasks, and propose an instruction reconstruction method to mitigate this problem. We validated the effectiveness of our approach on multiple tasks, achieving a compression rate of up to 32x on text reconstruction tasks with a BLEU4 score close to 0.95, and nearly 100% accuracy on a passkey retrieval task with a sequence length of 1M. Finally, our method demonstrated competitive performance in long-text question-answering tasks compared to non-compressed methods, while significantly saving storage resources in long-text inference tasks. Our code, models, and demo are available at https://github.com/WUHU-G/RCCTransformer

Key facts. Cited by 7 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 22 of its 32 references that are in the map. First posted on arXiv 10 Jun 2024.

Builds on

22 of 32 references.

Closest ancestors · 3

Same direction, newest first

  1. 2023Context Compression for Auto-regressive Transformers with Sentinel Tokens12 Oct
  2. 2023LongLLMLingua: Accelerating and Enhancing LLMs in Long Context Scenarios via Prompt Compression10 Oct
  3. 2022Prompt Compression and Contrastive Conditioning for Controllability and Toxicity Reduction in Language Models6 Oct

Other references · 19

  1. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  2. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
  3. 2020Longformer: The Long-Document Transformercited by 3,362
  4. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
  5. 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
  6. 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,734
  7. 2019Generating Long Sequences with Sparse Transformerscited by 1,523
  8. 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
  9. 2023RWKV: Reinventing RNNs for the Transformer Eracited by 814
  10. 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 721
  11. 2019Compressive Transformers for Long-Range Sequence Modellingcited by 699
  12. 2023Ring Attention with Blockwise Transformers for Near-Infinite Contextcited by 448
7 more
  1. 2023Learning to Compress Prompts with Gist Tokenscited by 379
  2. 2023Adapting Language Models to Compress Contextscited by 350
  3. 2024World Model on Million-Length Video And Language With Blockwise RingAttentioncited by 196
  4. 2024Leave No Context Behind: Efficient Infinite Context Transformers with Infini-attentioncited by 194
  5. 2023Focused Transformer: Contrastive Training for Context Scalingcited by 133
  6. 2021TSDAE: Using Transformer-based Sequential Denoising Auto-Encoder for Unsupervised Sentence Embedding Learningcited by 116
  7. 2023Nugget: Neural Agglomerative Embeddings of Textcited by 19

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 2; 2025: 3; 2026: 2.

7 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024Enhancing and Accelerating Large Language Models via Instruction-Aware Contextual Compression
  2. 2026Compressing Long Context into Answer-Aligned Memory Embeddings for LLM Inference
  3. 2024Prompt Compression with Context-Aware Sentence Encoding for Fast and Improved LLM Inference
  4. 2025Sentence-Anchored Gist Compression for Long-Context LLMs
  5. 2025KV-Distill: Nearly Lossless Learnable Context Compression for LLMs
  6. 2024In-Context Former: Lightning-fast Compressing Context for Large Language Model
  7. 2024KV Cache Compression, But What Must We Give in Return? A Comprehensive Benchmark of Long Context Capable Approaches
  8. 2025Compress, Gather, and Recompute: REFORMing Long-Context Processing in Transformers