提升基于大语言模型(LLM)的智能体的工作通常聚焦于修改智能体本身,但其成功也取决于智能体所处的环境。工具介导了这种交互:工具的描述会影响智能体对它的调用,而工具的实现则决定了智能体后续接收到的结果与错误。许多工具(如API和MCP服务器)被多个智能体共享,且由无法修改这些智能体的提供者维护。我们提出AT-AT(Automatic Tool Optimization from Agent Traces,基于智能体轨迹的自动工具优化器),这是一种智能体式工具优化器,可在保持智能体固定的情况下,从历史智能体执行中离线优化共享工具集。一个轻量级编码智能体会读取智能体轨迹及其评估结果,选择性地编辑工具描述,并在允许的情况下编辑工具实现。在τ²-bench验证中,AT-AT在航空和电信领域实现了最高的任务完成率,且成本低于强大的提示优化器和工具优化器基线;其在电信领域的提升在配对置换检验下具有统计显著性。在编码智能体框架内优化工具也提升了TerminalBench-2和TBLite的保留性能。当应用于某大型企业的三个生产MCP服务器时,AT-AT降低了每个服务器的成本或工具错误率,并提升了其中一个服务器的保留任务通过率。通过将累积的执行轨迹转化为对共享工具环境的更新,AT-AT为通过环境侧学习实现智能体系统的持续改进提供了一条路径。
英文摘要:
Efforts to improve LLM-based agents typically focus on modifying the agent itself, yet success also depends on the environment in which an agent acts. Tools mediate this interaction: a tool's description shapes how an agent calls it, and its implementation determines the results and errors the agent receives afterwards. Many tools, such as APIs and MCP servers, are shared by many agents and maintained by providers who cannot change those agents. We introduce AT-AT (Automatic Tool Optimization from Agent Traces), an agentic tool optimizer that improves a shared toolset offline from historical agent executions while holding the agents fixed. A lightweight coding agent reads agent trajectories and their evaluation results, and selectively edits tool descriptions and, when permitted, implementations. On $τ^2$-bench-verified, AT-AT achieves the highest task completion rates in the Airline and Telecom domains at lower cost than strong prompt- and tool-optimizer baselines, and its Telecom gain is statistically significant under paired permutation tests. Optimizing the tools within a coding agent harness also improves held-out performance on TerminalBench-2 and TBLite. When applied to three production MCP servers at a large enterprise, AT-AT lowered cost or tool error rates on every server and increased held-out task passes on one. By turning accumulated execution traces into updates to shared tool environments, AT-AT provides a path toward continual improvement of agent systems through environment-side learning.
AutoDIME: Automatic Design of Interesting Multi-Agent Environments
OpenAI(开放人工智能研究中心)
设计一个RL代理可以学习有趣和有用的技能的环境分布是一个具有挑战性和理解不足的任务,对于多代理环境,困难只会加剧。一种方法是训练第二个RL代理,称为教师,谁的样本环境,有利于学生代理的学习。然而,大多数以前的建议,教师奖励不直接推广到多智能体设置。我们研究了一组来自预测问题的内在教师奖励,这些问题可以应用于多智能体设置,并在Mujoco任务中对其进行评估,例如多智能体Hide and Seek以及诊断单智能体迷宫任务。在所考虑的内在奖励中,我们发现价值分歧在不同任务中最为一致,导致在捉迷藏和迷宫任务中更快、更可靠地出现高级技能。考虑的另一个候选内在奖励,价值预测误差,在捉迷藏中也很好,但在随机环境中容易受到噪音电视风格的干扰。政策分歧在迷宫任务中表现良好,但在捉迷藏中没有加快学习。我们的研究结果表明,内在的教师奖励,特别是价值分歧,是一个很有前途的方法,自动化的单和多代理环境设计。