Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
41 tokens/sec
GPT-4o
59 tokens/sec
Gemini 2.5 Pro Pro
41 tokens/sec
o3 Pro
7 tokens/sec
GPT-4.1 Pro
50 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

Recurrent Context Compression: Efficiently Expanding the Context Window of LLM (2406.06110v1)

Published 10 Jun 2024 in cs.CL and cs.AI

Abstract: To extend the context length of Transformer-based 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/RCC_Transformer

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (8)
  1. Chensen Huang (3 papers)
  2. Guibo Zhu (18 papers)
  3. Xuepeng Wang (14 papers)
  4. Yifei Luo (15 papers)
  5. Guojing Ge (5 papers)
  6. Haoran Chen (52 papers)
  7. Dong Yi (12 papers)
  8. Jinqiao Wang (76 papers)
Citations (1)
Github Logo Streamline Icon: https://streamlinehq.com
Youtube Logo Streamline Icon: https://streamlinehq.com