QwenLong-CPRS:迈向具有动态上下文优化的∞-LLMs
QwenLong-CPRS: Towards $\infty$-LLMs with Dynamic Context Optimization
AI总结:
QwenLong-CPRS是一种基于动态上下文优化的长上下文压缩框架,通过自然语言引导、双向推理层、令牌评论和窗口并行推理,在多个基准上实现高效压缩并显著提升LLM性能。
摘要:
本技术报告介绍了QwenLong-CPRS,一个专为显式长上下文优化设计的上下文压缩框架,旨在解决预填充阶段高昂的计算开销以及大型语言模型(LLMs)在长序列处理过程中的“迷失在中间”性能退化问题。通过一种新颖的动态上下文优化机制实现,QwenLong-CPRS能够基于自然语言指令进行多粒度上下文压缩,同时实现效率提升和性能改进。QwenLong-CPRS源自Qwen架构系列,引入了四项关键创新:(1)自然语言引导的动态优化,(2)用于增强边界感知的双向推理层,(3)带有语言建模头的令牌评论机制,以及(4)窗口并行推理。在五个基准(4K-2M词上下文)上的全面评估证明了QwenLong-CPRS的三重有效性:(1)在准确性和效率上始终优于RAG和稀疏注意力等其他上下文管理方法。(2)与所有旗舰LLM(包括GPT-4o、Gemini2.0-pro、Claude3.7-sonnet、DeepSeek-v3和Qwen2.5-max)的架构无关集成,实现了21.59倍的上下文压缩以及平均19.15分的性能提升;(3)与Qwen2.5-32B-Instruct部署时,QwenLong-CPRS在Ruler-128K和InfiniteBench上分别超越领先的专有LLM 4.85分和10.88分,确立了新的SOTA性能。
英文摘要:
This technical report presents QwenLong-CPRS, a context compression framework designed for explicit long-context optimization, addressing prohibitive computation overhead during the prefill stage and the "lost in the middle" performance degradation of large language models (LLMs) during long sequence processing. Implemented through a novel dynamic context optimization mechanism, QwenLong-CPRS enables multi-granularity context compression guided by natural language instructions, achieving both efficiency gains and improved performance. Evolved from the Qwen architecture series, QwenLong-CPRS introduces four key innovations: (1) Natural language-guided dynamic optimization, (2) Bidirectional reasoning layers for enhanced boundary awareness, (3) Token critic mechanisms with language modeling heads, and (4) Window-parallel inference. Comprehensive evaluations across five benchmarks (4K-2M word contexts) demonstrate QwenLong-CPRS's threefold effectiveness: (1) Consistent superiority over other context management methods like RAG and sparse attention in both accuracy and efficiency. (2) Architecture-agnostic integration with all flagship LLMs, including GPT-4o, Gemini2.0-pro, Claude3.7-sonnet, DeepSeek-v3, and Qwen2.5-max, achieves 21.59$\times$ context compression alongside 19.15-point average performance gains; (3) Deployed with Qwen2.5-32B-Instruct, QwenLong-CPRS surpasses leading proprietary LLMs by 4.85 and 10.88 points on Ruler-128K and InfiniteBench, establishing new SOTA performance.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。