arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.28069cs.AI
收藏

ZipRL: 自适应多轮上下文压缩与事后响应回放

ZipRL: Adaptive Multi-Turn Context Compression with Hindsight Response Replay

Meituan(美团);Institute of Software, Chinese Academy of Sciences(中国科学院软件研究所)

Zhexin Hu, Li Wang, Xiaohan Wang, Jiajun Chai, Xiaojun Guo, Wei Lin, Guojun Yin

AI总结:

提出ZipRL框架,通过多粒度压缩机制和事后响应回放技术,在可验证奖励强化学习中实现自适应上下文压缩,平衡信息保留与token效率,在多个智能体任务中显著优于现有方法。

摘要:

自适应上下文压缩对于将大型语言模型扩展到复杂的多轮智能体任务至关重要。然而,基于规则的压缩方法可能会丢弃任务关键细节,而强化学习方法通常难以在长时工作流固有的稀疏奖励下平衡信息保留和token效率。为弥补这一差距,我们提出ZipRL,一种针对可验证奖励强化学习的新型自适应压缩框架。ZipRL具有多粒度压缩机制,用于主动、非均匀的信息缩减,并配合事后响应回放(HRR),一种旨在在RLVR优化期间密集化训练信号的技术。理论上,我们证明了ZipRL相对于均匀方法具有更优的任务相关效用。具体而言,ZipRL利用从粗到细的提示进行宏观压缩,并通过广义优势重塑将HRR纳入GRPO。多个不同版本和参数规模的模型验证了我们方法的有效性。在五个智能体任务上的基准测试显示,ZipRL在Qwen3-4B和Qwen3-8B模型上分别比最先进方法高出27.9%和34.7%,同时在极端256轮外推压力测试下保持卓越的token效率和鲁棒性。

英文摘要:

Adaptive context compression is vital for scaling Large Language Models (LLMs) to complex, multi-turn agent tasks. However, rule-based compression methods may discard task-critical nuances, while Reinforcement Learning (RL) approaches usually struggle to balance information retention and token efficiency under the sparse rewards inherent to long-horizon workflows. To bridge this gap, we propose ZipRL, a novel adaptive compression framework tailored for Reinforcement Learning from Verifiable Rewards (RLVR). ZipRL features a multi-granularity compression mechanism for active, non-uniform information reduction, coupled with Hindsight Response Replay (HRR), a technique designed to densify training signals during RLVR optimization. Theoretically, we prove ZipRL's superior task-relevant utility over uniform methods. Concretely, ZipRL utilizes coarse-to-fine prompts for macro-compression and incorporates HRR into GRPO via generalized advantage reshaping. Multiple models of varying versions and parameter scales validate the effectiveness of our approach. Benchmarks on five agent tasks show ZipRL outperforms state-of-the-art approaches by 27.9% and 34.7% across Qwen3-4B and Qwen3-8B models, while maintaining exceptional token efficiency and robustness under extreme 256-turn extrapolation stress tests.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑