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

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

arXiv:2610.21463 · 2026-10-18 공개 · arXiv · PDF

latency-reduction tool-using-agents semantic-verification trajectory-level memory-traffic automationbench specagent weak-model

Abstract

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.

한국어 요약

한 줄 요약

SpecAgent는 강력한 모델이 약한 모델의 작업을 검증하는 방식으로, 대규모 언어 모델 에이전트의 효율성을 향상시킨다.

핵심 기여도

핵심 아이디어

기존 에이전트는 강력한 모델이 모든 단계를 생성하는 방식을 따르지만, 많은 단계는 단순 반복 작업으로, 더 작은 모델로도 처리 가능하다. SpecAgent는 이 문제를 해결하기 위해 강력한 모델을 단계 작성자에서 검증자로 전환한다. 약한 모델은 read-only 툴 호출을 실행하며, 첫 번째 상태 변경 작업을 보류하고, 강력한 모델은 전체 세그먼트를 한 번의 prefill 과정에서 검증한다. 이 방식은 autoregressive decoding을 대체하여 강력한 모델이 모든 단계를 생성할 필요가 없게 만든다.

핵심 아이디어는 semantic validation 기반의 prefix commit과 repair 메커니즘이다. 강력한 모델은 가장 긴 유효한 prefix를 승인하고, 첫 번째 거부된 단계를 수정한다. 이는 단계별 검증보다 더 많은 유효한 작업을 유지할 수 있도록 한다.

기술적 접근법

주요 결과

의의 및 한계

SpecAgent는 강력한 모델의 decoding 부담을 줄이며, 약한 모델의 효율성을 활용하는 혁신적인 협업 프로토콜이다. 특히, semantic validation을 통해 단순 일치보다 더 유연한 검증이 가능하다는 점에서 기존 speculative decoding과 차별화된다. 메모리 트래픽과 벽 시간을 동시에 절감하며, 대규모 에이전트 시스템의 운영 비용을 낮출 수 있다.

한계로는, 약한 모델의 drafting 능력이 낮을 경우, 강력한 모델이 많은 repair 작업을 수행해야 하므로 효율성이 떨어질 수 있다. 또한, 모든 작업이 read-only 툴 호출에 의존하므로, 상태 변경이 빈번한 작업에서는 적용이 제한될 수 있다.

실용적 활용

SpecAgent는 클라우드-에지 협업 환경, 대규모 에이전트 시스템, 저비용 고성능 서비스 플랫폼에서 활용 가능하다. 특히, MCP-Atlas와 같은 클라우드 기반 배포에서 강력한 모델의 사용량을 줄이며, 전체 시스템의 성능과 비용을 균형 있게 조절할 수 있다.