arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.05922cs.AIcs.CLcs.LG
收藏

回顾性工具优化:通过轨迹回滚上的自我偏好改进LLM智能体

Evolving Agents in the Dark: Retrospective Harness Optimization via Self-Preference

City University of Hong Kong(香港城市大学);Microsoft Research Asia(微软亚洲研究院)

Wenbo Pan, Shujie Liu, Chin-Yew Lin, Jingying Zeng, Xianfeng Tang, Xiangyang Zhou, Yan Lu, Xiaohua Jia

AI总结:

提出一种自监督方法RHO,利用历史轨迹回滚和自偏好选择优化智能体工具集,无需真实标签,在SWE-Bench Pro上通过单轮优化将通过率从59%提升至78%。

摘要:

AI智能体依赖于技能、工具和工作流程的整合(称为工具集)来解决复杂问题。持续改进这一工具集对于适应新任务至关重要。然而,现有的优化方法通常需要真实验证集,但在实际部署场景中获取此类标注数据非常困难。为解决这一问题,我们提出回顾性工具优化(RHO),一种仅利用过去轨迹的自监督方法。具体而言,RHO从历史轨迹中选择一个多样化的困难任务核心集,并并行重新求解。智能体通过自我验证和自我一致性分析这些回滚,然后生成候选工具集更新,并通过自身的成对自我偏好选择最有效的更新。我们在三个不同领域(涵盖软件工程、技术工作和知识工作)上评估RHO。值得注意的是,单轮优化无需任何外部评分即可将SWE-Bench Pro上的通过率从59%提升至78%。此外,我们的分析表明RHO有效针对先前的失败模式。因此,优化后的工具集改变了智能体的行为模式,并在长周期会话中保持更高的准确性。

英文摘要:

AI agents rely on a harness of skills, tools, and workflows to solve complex problems. Continually improving this harness is essential for adapting to new tasks. However, existing optimization methods typically require ground-truth validation sets, yet such labeled data is difficult to acquire in practical deployment settings. To address this problem, we introduce Retrospective Harness Optimization (RHO), a self-supervised method that optimizes the agent harness using only past trajectories. Specifically, RHO selects a diverse coreset of challenging tasks from past trajectories and re-solves them in parallel. The agent analyzes these rollouts using self-validation and self-consistency, then generates candidate harness updates and selects the most effective one by its own pairwise self-preference. We evaluate RHO across three diverse domains, spanning software engineering, technical work, and knowledge work. Notably, a single optimization round improves the pass rate on SWE-Bench Pro from 59% to 78% without any external grading. Furthermore, our analysis demonstrates that RHO effectively targets prior failure modes. As a result, the optimized harness alters the agent's behavior patterns and sustains higher accuracy during long-horizon sessions.

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

↑