思维即压缩:你的推理模型其实是一个上下文压缩器
Thinking as Compression: Your Reasoning Model is Secretly a Context Compressor
AI总结:
本文提出思维即压缩(TaC)范式,利用推理模型自身的思维痕迹作为压缩上下文,并通过奖励驱动优化(TaC-C)实现可控压缩,在长上下文QA任务上显著优于现有方法。
摘要:
上下文压缩旨在缩短长上下文输入,同时最小化信息损失,以加速LLM推理。现有方法虽有前景,但通常依赖复杂的压缩模块或针对压缩的训练,忽视了LLM的内在能力。相比之下,本文揭示推理模型本身可以通过组织任务相关信息自然地压缩长上下文。因此,我们提出思维即压缩(TaC),一种将思维本身视为压缩上下文的新压缩范式。无需专用压缩器,TaC直接提示推理模型生成思维痕迹作为缩短的上下文,已优于大多数代表性压缩方法。进一步,鉴于原始思维输出可能难以控制预算和存在捷径行为,我们引入带约束的思维即压缩(TaC-C),利用简单的奖励驱动优化框架,激发内在思维成为紧凑且可控的压缩上下文。在四个长上下文QA基准上的实验表明,TaC-C一致优于现有基线。在4倍和8倍压缩比下,它在平均F1上分别超过最强竞争对手17.4%和23.4%,在平均精确匹配分数(EM)上分别超过15.7%和21.7%。
英文摘要:
Context compression aims to shorten long context inputs with minimal information loss for LLM inference acceleration. While existing methods have shown promise, they typically rely on complex compression modules or compression-specific training, leaving the intrinsic capabilities of LLMs underexplored. In contrast, this work reveals that a thinking model itself can naturally compress long contexts by organizing task-relevant information. We thus derive Thinking as Compression (TaC), a new compression paradigm that treats thinking itself as compressed context. Without relying on specific dedicated compressor, TaC directly prompts the thinking model to generate thinking traces as the shortened context, already outperforming most representative compression methods. Further, given that raw thinking output may struggle with budget control and shortcut behaviors, we introduce Thinking as Compression Constrained (TaC-C), leveraging a simple reward-driven optimization framework to elicit intrinsic thinking as compact and controllable compressed context. Experiments across four long-context QA benchmarks demonstrate that TaC-C consistently outperforms existing baselines. At 4x and 8x compression ratios, it surpasses the strongest competitor by 17.4% and 23.4% in average F1, and by 15.7% and 21.7% in average Exact Match Score (EM), respectively.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。