Speculative Macro Commit (SMC): Breaking Down the Dual-Layer Architecture That Speeds Up Tool-Using AI Agents by 44.9%

SMC uses a dual-layer agent architecture and macro library to cut tool-using LLM agent latency by up to 44.9%.
The paper *Speculative Macro Commit* proposes SMC, a runtime optimization for tool-using LLM agents suffering high latency from serialized action–observation loops. Inspired by speculative decoding, SMC extends the idea from token level to action-chain level: a small draft model pre-executes future action chains on isolated environment snapshots, while a large authoritative model verifies them. On a match, draft results are committed directly to the official trajectory, turning serial wait time into parallel precomputation. Combined with a macro library of recurring multi-step action skeletons mined from training trajectories, SMC achieves efficient multi-step reuse — cutting latency by 44.9% on AppWorld and 18.59% on a telecom benchmark with minimal accuracy loss.
Agent Latency: The Overlooked Performance Bottleneck
As large language model (LLM) agents become increasingly common in real-world applications, a long-overlooked problem is coming to the surface: latency. When we talk about agent performance, we tend to focus on model inference speed — while missing the true time sink of tool-using agents: the serialized "action–observation" loop.
A newly published arXiv paper, Speculative Macro Commit for Faster Tool-Using Agents (arXiv:2609.03236v1), pinpoints this pain point precisely. The actual wall-clock time of a tool-using LLM agent is consumed not only by model inference, but also by a long chain of serialized interaction rounds: every tool call, every environment state transition, every observation returned — all of these delay the generation of the next decision. This serial dependency makes agents inefficient at multi-step tasks, especially in complex scenarios that require frequent calls to external tools.
The research team's proposed solution is called Speculative Macro Commit (SMC) — a runtime mechanism designed to fundamentally break this serial bottleneck.
The Core Mechanism of SMC: A Dual-Layer Agent Architecture
Division of Labor Between the Authoritative Model and the Draft Model
SMC draws inspiration from the recently popular Speculative Decoding technique, but elevates it from the token level to the action-chain level. The entire system uses a two-tier architecture:
- Authoritative Actor: A large, accurate model responsible for generating the official, ultimately adopted execution trajectory. In the experiments, the researchers used Qwen3.5-27B in INT4 quantization.
- Speculative Drafter: A smaller, faster model that continuously predicts and pre-executes future action chains on isolated environment snapshots. The experiments used Qwen3.5-4B.
The elegance of this division lies in the following: the small model runs ahead in a "shadow environment," while the large model focuses on ensuring correctness. The two work in parallel, converting what would otherwise be serialized wait time into parallel precomputation.

The Macro Library: Mining Action Skeletons from Training Trajectories
Another key innovation in SMC is the Macro Library. The research team mines training trajectories to extract recurring "multi-action skeletons" — action sequence patterns that repeat frequently across different tasks — and stores them for reuse.
At runtime, action chains predicted by the draft model are matched against patterns in the macro library. This effectively gives the agent a form of "muscle memory": for common operation combinations, the system doesn't need to reason from scratch each time — it simply reuses already-validated, efficient paths.
The Commit Mechanism: Ensuring Correctness in Speculative Execution
The biggest risk in speculative execution is: what happens when the guess is wrong? SMC addresses this through a sophisticated verification and commit logic.
When the authoritative model generates the next tool call, the system compares it against the first action of the draft model's predicted action chain:
- Match succeeds: SMC commits the remaining steps pre-executed by the draft model — along with their corresponding observations — directly into the official trajectory. Since these steps have already been completed in the background, they don't need to be re-executed, saving substantial wait time.
- Match fails: The draft is discarded, and the system falls back to the authoritative model's normal execution flow. Since the draft runs in an isolated environment snapshot, a wrong speculation cannot contaminate the real environment state.
This "execute first, verify after, commit on match" mechanism essentially trades the small model's compute for the large model's wait time. As long as the prediction hit rate is high enough, overall latency drops significantly.
Experimental Results: Latency Drops Sharply, Accuracy Remains Stable
The paper validates SMC on two benchmarks, with quite compelling numbers.
τ²-Bench Telecom Subset
On this benchmark, SMC maintained comparable overall accuracy to the serial agent while achieving:
- 10.23% latency reduction compared to the Speculative Actions (SA) baseline
- 18.59% latency reduction compared to traditional serial execution
AppWorld Benchmark
In the more complex AppWorld environment, SMC's advantages are even more pronounced:
- 7.7% reduction in wall-clock time compared to the SA baseline
- A substantial 44.9% reduction in wall-clock time compared to serial execution
- Only a minor drop in task completion rate
Worth highlighting here is the comparison between SMC and the SA baseline. SA (Speculative Actions) only performs single-step speculation, whereas SMC achieves multi-step speculative execution reuse through the macro library. The data shows that extending speculation from single steps to multi-step action chains does deliver additional gains beyond single-step speculation — especially in tasks with longer action sequences and more recurring patterns.
Implications and Reflections
The value of SMC lies in offering a practical engineering path that pushes agent latency optimization beyond the ceiling of single-step speculation. It doesn't require retraining models; instead, it operates as a runtime mechanism layered on top of existing agent systems, significantly lowering the barrier to deployment.
From a broader perspective, SMC reflects an important trend in current AI agent optimization: trading heterogeneous model collaboration for efficiency. The large model ensures quality; the small model sprints ahead for speed; the two are coupled through a verification mechanism. This approach follows directly from the success of speculative decoding at the token generation level — it simply moves the battlefield to the action execution layer of agents.
Of course, SMC involves trade-offs. The minor drop in task completion rate on AppWorld reminds us that the aggressiveness of speculative execution needs to be matched to a task's tolerance for error. For scenarios with extremely strict fault-tolerance requirements, finding the right balance between speed and reliability remains a direction worth further exploration.
The research team has open-sourced the code (GitHub: zeyuliu1037/speculative-macro-commit). For developers focused on agent performance optimization, this is a practical case study well worth diving into.
Related articles

DeepSeek V4 Pro Burning Through Credits Too Fast? The Hidden Logic Behind AI Model Pricing
Why does DeepSeek V4 Pro drain credits so fast while Flash barely moves? A deep dive into AI token billing, Pro vs. Flash pricing differences, and cost optimization tips.

RealPDE Competition Breakdown: The Frontier Challenge of AI-Powered Real-World Fluid Dynamics PDE Solving
A deep dive into the NeurIPS 2026 RealPDE Competition, covering the Sim2Real and LTTTA tracks, and how neural operators tackle real-world PIV and CFD fluid PDE challenges.

Building a Production-Grade 3DGS Training Library from Scratch: A Deep Dive into Full-GPU Residency and the Vulkan Stack
A veteran graphics engineer builds a production-grade 3DGS training library from scratch using C++23, CUDA, and Vulkan, achieving 60fps with 5M splats. Deep dive into its architecture and design.