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

面向工具使用智能体的带语义验证的轨迹级推测

Trajectory-Level Speculation with Semantic Verification for Tool-Using Agents

LARK, HKUST (GZ)(香港科技大学(广州)LARK实验室);Yinwang(银网);University of Cambridge(剑桥大学);HKUST(香港科技大学)

Zilin Wang, Yinhong Liu, Chao Chen, Qun Liu, Zhijiang Guo

AI总结:

提出SpecAgent协作协议,让强大模型审查弱模型的工具使用轨迹草稿,在保留大部分性能的同时降低了延迟与内存流量,在多个基准及边缘-云部署中均表现出优势。

摘要:

大型语言模型智能体通过一系列工具调用解决任务,主流设计是由一个强大模型生成每一步,尽管许多步骤足够常规,可由小得多的模型处理。现有工作分担方式仍让强大模型作为生成器:路由器和协作智能体决定哪个模型处理每个查询或步骤,而推测方法每次检查小模型的一个步骤草稿,通常与强大模型自身动作对比。我们提出SpecAgent,一种协作协议,将强大模型从每一步的生成者转为弱模型所起草步骤的验证者。弱模型在起草时执行只读工具调用,因此每一步都基于真实观测,并保留首个会修改环境的动作。随后强大模型通过单次预填充过程验证起草的片段,提交其判定为语义有效的最长前缀,并修复首个被拒绝的步骤。由于验证用并行预填充替代自回归解码,强大模型仅解码短判定和偶尔的修复,而非每一步。在τ²-Bench上,SpecAgent的成功率仅比强大模型低1个百分点,同时内存流量和 wall time( wall time即实际运行时间)大致减半;在AutomationBench和VitaBench上,它弥补了44%-75%的质量差距,同时降低了两者。在基于MCP-Atlas的边缘-云部署中使用三个云模型时,它弥补了53%-75%的强弱模型质量差距,而强大模型生成的token数最多减少一半。这些结果表明,强大模型无需编写智能体的每一步:审查基于真实观测的草稿可保留其大部分质量,同时减少延迟和内存流量。

英文摘要:

Large language model agents solve tasks through long sequences of tool calls, and the prevailing design has a single strong model generate every step, although many steps are routine enough for a much smaller model. Existing ways of sharing this work keep the strong model as the generator: routers and collaborative agents decide which model handles each query or step, and speculative methods check a small model's drafts one step at a time, usually against the strong model's own action. We introduce SpecAgent, a collaboration protocol that turns the strong model from the author of each step into a reviewer of steps drafted by a weak model. The weak model executes read-only tool calls as it drafts, so that every step is grounded in real observations, and holds the first action that would modify the environment. The strong model then verifies the drafted segment in a single prefill pass, commits the longest prefix it judges semantically valid, and repairs the first rejected step. Because verification replaces autoregressive decoding with parallel prefill, the strong model decodes only short verdicts and occasional repairs rather than every step. On $τ^2$-Bench, SpecAgent comes within one point of the strong model's success rate while roughly halving memory traffic and wall time, and on AutomationBench and VitaBench it recovers 44-75% of the quality gap while lowering both. In an edge-cloud deployment on MCP-Atlas with three cloud models, it closes 53-75% of the weak-strong quality gap while the strong model generates at most half as many tokens. These results suggest that a strong model need not author every step of an agent: reviewing grounded drafts retains most of its quality while cutting both latency and memory traffic.

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

↑