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

FoldAct: 长时间 horizon 搜索代理的高效且稳定的上下文折叠

FoldAct: Efficient and Stable Context Folding for Long-Horizon Search Agents

Hong Kong University of Science and Technology(香港科学与技术大学);Duke Kunshan University(杜克大学昆山学院);Microsoft AI(微软人工智能)

Jiaqi Shao, Yufeng Miao, Wei Zhang, Bing Luo

AI总结:

FoldAct通过分离损失计算、全上下文一致性损失和选择性段训练,解决长时间 horizon 搜索代理中上下文折叠的非平稳观察问题,提升训练效率。

摘要:

大型语言模型的长时间 horizon 强化学习面临由于无界上下文增长带来的关键可扩展性挑战,导致上下文折叠方法在任务执行过程中压缩交互历史。然而,现有方法将摘要动作视为标准动作,忽略了摘要本质上会修改代理的未来观察空间,从而创建一个依赖策略的非平稳观察分布,这违反了核心强化学习假设。这引入了三个根本性挑战:(1)梯度稀释,其中摘要标记接收的训练信号不足;(2)自我条件化,其中策略更新改变摘要分布,造成训练崩溃的恶性循环;(3)计算成本,由于每次回合处理唯一的上下文。我们介绍了FoldAct,一个通过三个关键创新来显式解决这些挑战的框架:分离损失计算以独立地对摘要和动作标记进行梯度信号,全上下文一致性损失以减少分布偏移,以及选择性段训练以减少计算成本。我们的方法使具有上下文折叠的长时间 horizon 搜索代理能够稳定训练,解决非平稳观察问题,同时通过5.19倍的加速提高训练效率。

英文摘要:

Long-horizon reinforcement learning (RL) for large language models faces critical scalability challenges from unbounded context growth, leading to context folding methods that compress interaction history during task execution. However, existing approaches treat summary actions as standard actions, overlooking that summaries fundamentally modify the agent's future observation space, creating a policy-dependent, non-stationary observation distribution that violates core RL assumptions. This introduces three fundamental challenges: (1) gradient dilution where summary tokens receive insufficient training signal, (2) self-conditioning where policy updates change summary distributions, creating a vicious cycle of training collapse, and (3) computational cost from processing unique contexts at each turn. We introduce \textbf{FoldAct}\footnote{https://github.com/SHAO-Jiaqi757/FoldAct}, a framework that explicitly addresses these challenges through three key innovations: separated loss computation for independent gradient signals on summary and action tokens, full context consistency loss to reduce distribution shift, and selective segment training to reduce computational cost. Our method enables stable training of long-horizon search agents with context folding, addressing the non-stationary observation problem while improving training efficiency with 5.19$\times$ speedup.

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

↑