LCIRC: A Recurrent Compression Approach for Efficient Long-form Context and Query Dependent Modeling in LLMs

Sumin An, Junyoung Sung, Wonpyo Park, Chanjun Park, Paul Hongsuck Seo
2/10/2025
cs.CL

No official code found. Best implementation: ssuminan/LCIRC (7 stars, Apache-2.0, last commit 2025-03-05).

Abstract

While large language models (LLMs) excel in generating coherent and contextually rich outputs, their capacity to efficiently handle long-form contexts is limited by fixed-length position embeddings. Additionally, the computational cost of processing long sequences increases quadratically, making it challenging to extend context length. To address these challenges, we propose Long-form Context Injection with Recurrent Compression (LCIRC), a method that enables the efficient processing long-form sequences beyond the model's length limit through recurrent compression without retraining the entire model. We further introduce query dependent context modeling, which selectively compresses query-relevant information, ensuring that the model retains the most pertinent content. Our empirical results demonstrate that Query Dependent LCIRC (QD-LCIRC) significantly improves LLM's ability to manage extended contexts, making it well-suited for tasks that require both comprehensive context understanding and query relevance.

View on arXivView PDF

Code Implementations(1)

ssuminan/LCIRCCommunity62%
Apache-2.0

Official Implementation of NAACL 2025 paper "LCIRC: A Recurrent Compression Approach for Efficient Long-form Context and Query Dependent Modeling in LLMs"

70PythonMar 4, 20251 years agoApache-2.0

Cite this paper

@article{an2025lcirc,
  title  = {LCIRC: A Recurrent Compression Approach for Efficient Long-form Context and Query Dependent Modeling in LLMs},
  author = {Sumin An and Junyoung Sung and Wonpyo Park and Chanjun Park and Paul Hongsuck Seo},
  year   = {2025},
  eprint = {2502.06139},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.06139v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.06139.svg)](https://codeofpaper.com/paper/2502.06139)

Discussion