动态工具搜索:通过预测为每个查询构建多智能体系统

·

研究论文 · 2026/10/06

Agent harness 指定了用于解决任务的角色、指令、工具和通信结构,而正确的 harness 取决于查询。由于每个设计选择的价值只能通过执行来观察,为每个查询定制 harness 需要在推理时执行替代方案或进行昂贵的手动设计。我们提出 SHIFT,它将执行移出每查询搜索循环。一个本地 LLM 架构师从搜索中学习 harness 构建动作的策略,以及一个价值函数,该函数根据测量的执行预测平衡准确性与执行成本的效用。对于每个查询,蒙特卡洛树搜索使用这些预测来构建 harness。在六个基准的 9,193 个任务中,从数学到文档和通用助手任务,使用 Gemini 3.5 Flash 执行器,SHIFT 达到了最高的平均准确率,约 80%,优于涵盖提示、提示优化和工作流搜索的 17 个基线,并超过最强基线 7.2 个百分点。SHIFT 的一种更便宜模式也达到了比每个基线更高的平均准确率,同时比最强基线少使用 32% 的执行令牌。我们进一步表明,联合选择结构、指令和工具比仅选择指令或仅选择工具高出多达 9.1 个百分点,并且学习到的价值选择从候选池中识别出更准确且执行成本更低的 harness。

该研究提出了一种高效动态构建多智能体系统的方法,在多个基准上显著优于现有基线,同时降低执行成本,对自动化工作流设计和多智能体系统优化具有重要参考价值。

Agent harnesses specify the roles, instructions, tools, and communication structure used to solve a task, and the right harness depends on the query. Because the value of each design choice is observable only through execution, tailoring a harness to each query has required either executing alternatives at inference time or costly manual design. We introduce SHIFT, which moves execution out of the per-query search loop. A local LLM architect learns a policy over harness-building actions from search, and a value function that predicts, from measured executions, a utility balancing accuracy against execution cost. For each query, Monte Carlo tree search uses these predictions to construct a harness. Across 9,193 tasks in six benchmarks, from math to document and general-assistant tasks, with a Gemini 3.5 Flash executor, SHIFT attains the highest mean accuracy, about 80%, outperforming 17 baselines that span prompting, prompt optimization, and workflow search, and exceeding the strongest baseline by 7.2 percentage points. A cheaper mode of SHIFT also attains a higher mean accuracy than every baseline while using 32% fewer execution tokens than the strongest baseline. We further show that choosing structure, instructions, and tools jointly beats choosing only instructions or only tools by up to 9.1 percentage points, and that learned value selection identifies more accurate harnesses with lower execution cost from candidate pools.

阅读原文

参与讨论