Speculative Macro Commit for Faster Tool-Using Agents
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 \textbf{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 -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 \href{https://github.com/zeyuliu1037/speculative-macro-commit}{\textcolor{magenta}{here}}.
Create a lesson
Metadata
- Categories
- cs.AI, cs.MA
- Comments
- Accepted in MLSP2026
Related papers
EATS: Scaling Tool-Use Experience for Medical Reasoning Agents
Shared title terminologycs.AIMingyuan Li, Tong Jia, Haoran Wang et al.
AgentBrew: Offline Tool-Use Agent Learning from Raw Real-World Trajectories
Shared title terminologycs.AIZhiyi Lyu, Yewen Li, Longtao Zheng et al.
CAPE: Coordinating Calibration and Search for Tool-Use Policies
Shared title terminologycs.AIJiahao Wang, Xiaoxuan Chen, Aijun Yang et al.
Agentic BAIM-LLM Evaluation (ABLE): Benchmarking LLM Use of Protein Design Tools
Shared title terminologycs.AIBryce Cai, Geetha Jeyapragasan, Samira Nedungadi et al.
Beyond Prompts: Measuring and Optimizing LLM Tool-Agent Harnesses
Shared title terminologycs.AICen Mia Zhao, Haibo Ruan, Wenjie Chen et al.
Agents' Overreliance on Unreliable Tools
Shared title terminologycs.AIHoyeol Yang, Woojung Song, Taewon Kim et al.