Manuscript Offprint

arXiv:2610.21463

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

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

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

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\tau^{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.

1. Introduction

Language-model agents now solve tasks through long sequences of tool calls and user turns (Deng et al., 2026), from tens of turns in customer service to up to a hundred in everyday life services (Table 1). The prevailing design has one strong model generate every step, so serving cost grows with the length of the trajectory and is dominated by the strong model's token-by-token decoding. Yet many steps are routine, such as looking up an order, reading a record, or searching again, and a much smaller model could often produce them.

Table 1 | Representative trajectory length per task for frontier agents, in turns (messages from the agent, the user, and tools).

Real-World MCP Services (MCP-Atlas)Transactional Interaction (τ2\tau^2-Bench)Business Workflows (AutomationBench)Life Services (VitaBench)
20–30 turns30–80 turns40–60 turns50–100 turns

Corresponding author(s): Yinhong Liu (yl535@cam.ac.uk), Zhijiang Guo (zhijiangguo@hkust-gz.edu.cn)

Existing ways of sharing this work keep the strong model as the generator. Routers pick one model per query (Aggarwal et al., 2024; Chen et al., 2023b; Ding et al., 2024; Ong et al., 2025), and collaborative agents decide, step by step, which model should act (Gao et al., 2026), so every step is still written by one model from scratch. Speculative agents carry the draft-and-verify idea of speculative decoding (Leviathan et al., 2023) over to actions (Hua et al., 2024; Ye et al., 2026), but usually keep a draft only when it matches the strong model's own action, so the strong model must still generate each reference step and its work is overlapped rather than removed. Recent variants replace matching with a step-level critic (Huang et al., 2025; Zhong et al., 2026), but they check one predicted step at a time in search-style tasks whose actions do not change the environment. Exact matching is also too strict for agents: different queries, lookup orders, or argument choices can all lead to a valid solution (Liu et al., 2026), and progress that differs from the strong model's choice is discarded. We therefore ask: can a strong model review several steps drafted by a weak model, and keep what is valid, instead of generating every step itself?

We answer it with SPECAGENT, in which a small Weak model drafts the trajectory and a large Strong model reviews it, separating acting from committing (Figure 1). Three properties of agents shape its design. First, a draft is meaningful only if it is grounded, because later steps depend on what earlier tool calls return; the Weak model therefore executes read-only calls as it drafts. Second, some actions cannot be undone, so the Weak model holds the first state-changing action, such as changing an order, and the Strong model reviews the segment before it runs, commits the longest prefix it judges semantically valid, and repairs the first rejected step. Third, review must cost less than generation even though the reviewer reads the full context: the Strong model reads a segment in one parallel prefill pass, whereas generating it would require decoding every token.

We compare against Strong-only and Weak-only, the single-model agents in which one model generates every step, and evaluate complete quality–resource operating points, counting both models and keeping compute, memory traffic, and wall time as separate axes. On τ2\tau^{2}-Bench, SPECAGENT comes within one point of Strong-only success while reducing estimated memory traffic to 43–57% and wall time to 41–54% of Strong-only; on AutomationBench and VitaBench it recovers 44% and 75% of the Weak–Strong quality gap, again with lower memory traffic and wall time. In an edge–cloud deployment on MCP-Atlas with three cloud Strong models, it closes 53–75% of the gap while the Strong model generates at most half as many tokens. The saving comes from decoding rather than arithmetic: estimated FLOPs rise by 30–38% on τ2\tau^{2} and AutomationBench and by 87% on VitaBench, so SPECAGENT suits memory-bandwidth-bound serving.

Our contributions are as follows.

• Framework. SPECAGENT, a weak–strong protocol in which the Weak model drafts with real read-only tool calls and holds the first state-changing action, and the Strong model commits the longest prefix it judges semantically valid and repairs the first rejected step, together with a cost model that predicts when replacing Strong decoding by prefill saves memory traffic and time.

• Evaluation. Experiments on τ2\tau^{2}-Bench, AutomationBench, VitaBench, and an edge–cloud deployment on MCP-Atlas with three cloud Strong models, comparing complete quality–resource operating points against Weak–Strong collaboration and speculative baselines.

• Analysis. An accounting of where the savings arise: measured Strong traffic and time follow the cost model, the saving comes from decoding, not computation, and it shrinks as acceptance falls.

References (47)