LCIRC:一种用于高效长形式上下文和查询依赖建模的循环压缩方法
LCIRC: A Recurrent Compression Approach for Efficient Long-form Context and Query Dependent Modeling in LLMs
AI总结:
提出LCIRC方法,通过循环压缩和查询依赖建模,无需重训练即可高效处理超长上下文,显著提升LLM的扩展上下文管理能力。
摘要:
尽管大型语言模型(LLMs)在生成连贯且上下文丰富的输出方面表现出色,但其高效处理长形式上下文的能力受到固定长度位置嵌入的限制。此外,处理长序列的计算成本呈二次方增长,使得扩展上下文长度变得具有挑战性。为应对这些挑战,我们提出了长形式上下文注入与循环压缩(LCIRC),该方法通过循环压缩实现高效处理超出模型长度限制的长形式序列,而无需重新训练整个模型。我们进一步引入了查询依赖上下文建模,该建模选择性地压缩与查询相关的信息,确保模型保留最相关的内容。我们的实证结果表明,查询依赖LCIRC(QD-LCIRC)显著提升了LLM管理扩展上下文的能力,使其非常适合需要全面上下文理解和查询相关性的任务。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。