何时遗忘:面向长视距智能体的风险可控上下文自适应
When to Forget: Risk-Controlled Context Adaptation for Long-Horizon Agents
AI总结:
本研究针对长视距智能体提出风险可控上下文自适应框架RECAP,通过匹配上下文干预等技术,实现历史块的保留/压缩/移除决策,在多骨干模型上提升执行效率并保持成功率。
摘要:
长视距智能体从失败中学习,但失败记录的价值会随执行过程推进而变化。我们研究保留、压缩或移除相同历史块相较于全历史保留(KEEP)对后续执行的提升效果。我们提出RECAP框架,该框架结合匹配上下文干预、执行关联预测与独立策略验证。匹配的环境状态与rollout种子衡量成功度及延续提示成本差异;失败块与当前执行的前缀关系提出可行编辑方案;独立任务束则在固定测量协议下,选择受有害干预与非正收益风险约束的策略。一项含5个种子的纵向案例中,失败块及其摘要保持固定:压缩在早期状态失效,在后期状态成为成本节约型干预。在5种骨干模型上,RECAP产生正的配对成功节约估计,且存在骨干特定的可靠性-效率权衡。在Hunyuan-A13B上,其编辑43.24%的保留检查点,同时匹配KEEP观测到的91.89%延续成功率,并将无条件平均延续提示成本降低4619.8个token(降幅2.13%)。该框架为决定何时遗忘提供执行级参考:根据历史对后续任务的价值决定是否保留。
英文摘要:
Long-horizon agents learn from failure, but the value of a failure record can change as execution progresses. We study when retaining, compressing, or removing the same history block improves subsequent execution relative to full-history KEEP. We introduce RECAP, a framework that combines matched context interventions, execution-relational prediction, and independent policy certification. Matched environment states and rollout seeds measure success and continuation prompt-cost differences; prefix-only relations between a failure block and the current execution propose promising edits. Independent task bundles then select a policy subject to harmful-intervention and non-positive-benefit risk constraints under a fixed measurement protocol. A five-seed longitudinal case holds both the failure block and its summary fixed: compression fails at an early state and becomes a cost-saving intervention at a later state. Across five backbones, RECAP produces positive paired-success saving estimates with backbone-specific reliability-efficiency tradeoffs. On Hunyuan-A13B, it edits 43.24% of retained checkpoints while matching KEEP's observed 91.89% continuation success and reducing unconditional mean continuation prompt cost by 4,619.8 tokens (2.13%). The framework provides an execution-level reference for deciding when to forget: retain history by its value to what comes next.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。