arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.17471cs.MAcs.CL
收藏

利用编码智能体团队扩展推理时计算资源

Scaling Inference-Time Compute with Teams of Coding Agents

Cohere Labs(Cohere 实验室);Cohere

Keenan Samway, Daniel D'souza, Omar Darwiche Domingues, Marzieh Fadaee, Tan Yi-Chern, Nouha Dziri

AI总结:

该研究将编码智能体团队设计建模为计算分配问题,通过实验发现合理分配计算可提升效率,为智能体预算分配提供了指导。

摘要:

多智能体系统为扩展推理提供了新维度:任务不再由单个智能体延长思考时间或增加采样尝试,而是拆分为多个并行工作并协作的智能体。但实际应用中,更多智能体易产生重复工作、协作失败和更高成本。因此,我们将团队设计建模为计算分配问题:从单个智能体出发,应将额外推理计算分配到何处以达到奖励-成本帕累托前沿?我们从零构建了一个极简多智能体框架,通过逐一改变主管向工作智能体委派的工作流程阶段(规划、实现或验证)、组成团队的模型以及工作智能体数量,追踪该前沿。在ProgramBench上,团队表现优于单个智能体,但成本是其3至7倍。然而,通过合理的计算分配,一个异构17智能体团队的性能与强大的同构5智能体团队仅相差1.4个百分点,成本却低70%。这种效率源于三项发现:第一,规划是工作智能体最有价值的用途:在主管决定生成多少工作智能体的同构团队中,仅向工作智能体委派规划,主管自行完成代码实现与验证的团队,其奖励与向工作智能体委派全部规划、实现、验证阶段的团队相当,成本仅为后者的一半;第二,廉价模型作为规划者有效,作为实现者则无效:拥有廉价规划者的强大主管,能以仅13.9%的额外成本,获得全强大团队47.5%的奖励增益,而廉价实现者会降低奖励;第三,规划者的奖励随团队规模增长持续提升,而实现者和验证者在超过4个工作智能体后趋于平稳。综上,我们的结果为用户根据任务、成本和延迟约束,指导如何分配智能体预算提供了依据。

英文摘要:

Multi-agent systems promise a new axis for scaling inference: rather than having one agent think longer or sample more attempts, a task is split across many agents that work in parallel and coordinate. However, in practice, more agents can easily produce duplicate work, coordination failures, and higher costs. We therefore formulate team design as a compute allocation problem: starting from a solo agent, where should additional inference compute go to reach the reward-cost Pareto frontier? We build a minimal multi-agent harness from the ground up and trace this frontier by varying, one at a time, the workflow stage at which a lead delegates to its workers (planning, implementation, or verification), the models that form the team, and the number of workers. On ProgramBench, teams outperform solo agents but cost three to seven times as much. With the right compute allocation, however, a heterogeneous 17-agent team comes within 1.4 points of a strong homogeneous 5-agent team at 70% lower cost. This efficiency stems from three findings. First, planning is the most valuable use of workers: in a homogeneous team whose lead decides how many workers to spawn, a lead that delegates only planning to its workers, and then implements and verifies the code itself, matches the reward of a lead that delegates to workers throughout planning, implementation, and verification, at half the cost. Second, cheap models pay off as planners but not as implementers: a strong lead with cheap planners recovers 47.5% of the reward gain of an all-strong team for only 13.9% of its additional cost, whereas cheap implementers lower reward. Third, planners keep improving reward as the team grows, whereas implementers and verifiers plateau beyond four workers. Together, our results offer a guide to spending an agent budget where it counts, given the task, cost, and latency constraints a user has.

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

↑