arXiv:2609.03236cs.AISep 2026

Manuscript Offprint

arXiv:2609.03236

Speculative Macro Commit for Faster Tool-Using Agents

Zeyu Liu, Souvik Kundu, Peter A. Beerel

ABSTRACT

Tool-using LLM agents spend wall-clock time not only on model inference but also in serial action-observation turns, where each tool call, environment transition, and observation can delay subsequent decisions. We introduce Speculative Macro Commit (SMC), a runtime mechanism for a two-tier agent system: a large authoritative actor model produces the official trajectory, while a faster speculative drafter model continuously predicts and executes future action chains on an isolated environment snapshot. SMC mines recurring multi-action skeletons from training traces and stores them in a macro library used to match against action chains predicted by the drafter at runtime. When the actor's next tool call matches the first drafted action, SMC commits the remaining pre-executed draft steps, together with their observations, to the official trajectory. Using Qwen3.5-27B INT4 as the authoritative actor model and Qwen3.5-4B as the speculative drafter model, SMC matches the sequential agent's overall accuracy while reducing latency by 10.23% over the Speculative Actions (SA) baseline and 18.59% over sequential execution on the τ2\tau^{2}-Bench Telecom subset. On AppWorld, SMC reduces wall time by 7.7% over SA baseline and 44.9% over sequential execution, with a small reduction in task completion. Overall, SMC provides a practical way to reuse multi-step speculative execution and reduce agent latency beyond single-step speculative actions. Our code is publicly available here.

Index Terms— LLM Agents, speculative execution, inference latency

1. INTRODUCTION

Language agents are becoming a practical interface to software, data, web, and customer-service workflows [1-3]. Unlike a model that makes a single prediction, a tool agent runs a loop: it calls the model to choose an action, executes that action in an environment, observes the result, and conditions its next decision on what it observed [4]. This iterative interaction gives agents much of their flexibility, but it also creates a wall-clock bottleneck that model throughput alone does not capture: a single task can wait through dozens of sequential turns even when the model server is well batched.

This latency has several sources. Repeated large-model calls reprocess long contexts and stress cache management [5]. Tool orchestration adds scheduling, state, and environment-lifecycle overhead [6]. The tools and environments can themselves dominate a request; PASTE reports tool execution at 35% to 61% of total latency in representative agents [7]. Across these sources, the main constraint is sequential dependence: the next prompt usually cannot be built until the previous action returns its observation. Token-level speculative decoding [8] drafts several tokens with a cheap model and verifies them with the expensive one, but it operates strictly inside one model call and cannot remove this cross-step dependency.

Speculative Actions (SA) lifts the draft-then-verify idea from tokens to actions [9]. A fast speculative drafter predicts likely future actions while a slower authoritative actor computes the next verified action; when the actor later agrees, an action that was already launched can be committed. However, the core SA mechanism only accepts progress at the granularity of adjacent action steps: a correct guess lets the executor reuse work for the next step, while naively longer lookahead has limited benefits. Therefore, how to effectively commit multi-step actions still remains underexplored. A complementary line of work observes that tool-agent traces contain repeated sequences of tool calls. AWO [10], for example, mines recurring tool-call sequences and turns them into deterministic composite meta-tools that bundle multiple actions into one invocation. This can remove several reasoning steps when the model chooses the right meta-tool. In our experiments, however, simply exposing mined action sequences as additional callable tools is unreliable: open models like Qwen3.5-27B [11] rarely select these mined macros. This raises the central question of the paper:

Can recurring action patterns reduce agent latency without requiring the model to choose new meta tools?

Our answer is Speculative Macro Commit (SMC), where a macro is a recurring multi-action pattern mined from execution traces. A commit means accepting already executed draft tool calls and their returned results into the agent's real execution history, so that the large model does not need to choose and execute those steps again. When one macro from the mined

979-8-3195-0884-3/26/$31.00 ©2026 IEEE macro library is identified in this long action chain, and the first action of the macro matches the authoritative action, SMC attempts a macro commit: it commits the remaining matched draft steps and their observations into the official trajectory, skipping the corresponding large-model calls as well as environment delays. As a macro commit does not ask the actor to regenerate and verify every skipped step, SMC is approximate rather than strictly lossless but is empirically shown to preserve task quality while reducing latency.

  1. An end-to-end runtime for action-level speculation. We build a two-tier runtime in which an authoritative actor model and a speculative drafter model run concurrently throughout complete long-horizon tool-agent tasks. The executor measures actual wall-clock latency, lets the drafter run ahead on draft action-observation chains, and falls back to ordinary execution when speculation cannot be used.

  2. Speculative Macro Commit. We introduce SMC, which shifts mined recurring action patterns from model-side macro selection to executor-side validation. The executor first identifies macro matches in the drafter's pre-executed action chain; after the authoritative actor agrees with the first matched draft action, SMC can commit the remaining matched draft steps and their observations into the official trajectory. This skips the corresponding large-model calls and avoids waiting again for already returned tool results, making SMC an approximate but guarded latency optimization.

  3. Evaluation on full tool-agent benchmarks. With Qwen3.5-27B INT4 as the authoritative actor and Qwen3.5-4B as the speculative drafter on the τ2\tau^2-bench Telecom subset, the SMC run matches the single-model baseline's reward while cutting latency by 18.59%; and reduces latency by 10.23% over SA. On AppWorld benchmark, SA reduces the latency by 40.37% compared with the baseline, and SMC further reduces wall time by 7.64% with a small accuracy tradeoff.