Back to Research Papers
LLM AgentsSpeculative InferenceLatency OptimizationSystems for LLMs

Multi-Step Speculative Actions: From Single Guesses to Speculative Tree in LLM Agents

Bhushan Santosh Shah et al.

Accelerating LLM agents through joint breadth-depth speculation, achieving 40% latency reduction and overcoming sequential bottlenecks in agentic systems.

Published January 15, 2025
Featured

Implementation Summary

Multi-Step Speculative Actions: From Single Guesses to Speculative Tree in LLM Agents

Overview

This research addresses the critical bottleneck of sequential execution in LLM-based agents. Traditional agentic systems operate through a strictly sequential perceive–reason–act loop where each step blocks until the previous LLM call returns. This paper proposes Multi-Step Speculative Actions (MSSA), a unified framework that combines breadth-first and depth-first speculation to achieve substantial latency reductions while maintaining identical output trajectories.


Related Works

Prior work on speculative decoding has primarily focused on the token level, pairing fast draft models with slow verifiers to achieve 2–3× speedups. Recent extensions include tree-based verification (SpecInfer, Medusa, EAGLE) and action-level speculation at the LLM agent level. However, existing action-level speculative approaches only exploit one dimension of speedup:

  • Breadth-focused speculation — Multiple candidate actions in parallel at the current step, but limited to one-step lookahead with cold restarts at each step.
  • Depth-focused speculation — Single predicted branches many steps into the future, but entire chains invalidated by a single incorrect guess.

This work is the first to jointly explore both breadth and depth dimensions in a unified framework, characterizing their interaction and identifying optimal allocation strategies.


Motivation and Problem

LLM-based agents are increasingly deployed for complex multi-step tasks: OS-level automation, deep research, multi-step web search, and complex games. State-of-the-art systems require tens of minutes per episode, creating deployment challenges in real-time and safety-critical settings (autonomous driving, clinical decision support, financial trading). Existing solutions—switching to smaller models—sacrifice reasoning quality.

The core challenge: How can we accelerate LLM agents without compromising action quality?


Methodology

Core Concept: Multi-Step Speculative Actions (MSSA)

MSSA builds a tree of pre-launched Actor and Speculator calls while the root Actor is in flight, allowing multiple confirmed steps to cascade back-to-back without cold restart.

Key Insight: While a slow Actor computes the ground-truth action at the current step, a fast Speculator predicts likely next actions and pre-launches corresponding Actor calls for the next step. If any prediction matches the Actor's true output, that step is already in flight when needed; if none match, speculative work is discarded and execution proceeds normally—guaranteeing identical final trajectories.

Algorithm Components

1. Sequential Pipeline (Baseline)

  • Each Actor call begins only after the previous one resolves
  • No parallelization across steps

2. Breadth-Only Speculation

  • Speculator at state s_t emits b candidate actions
  • Each candidate seeds one pre-launched Actor call from its hypothetical next state
  • System waits for original Actor to return ground-truth action
  • Matching branch is kept, rest are pruned

3. Multi-Step Speculative Actions (MSSA)

  • Each speculative state launches its own Speculator
  • Speculator's b candidates create the next layer of speculative states
  • Speculative tree grows recursively during root Actor flight
  • Single budget parameter max_inflight_actor controls concurrent Actor calls
  • Multiple confirmed steps cascade back-to-back without waiting

Event-Driven Design

The algorithm operates as an event-driven pipeline:

  • Speculation breadth (b): Number of Speculator candidates per node
  • Max inflight Actor calls: Controls concurrent Actor calls and effective tree depth
  • Match predicate: Tests equivalence of predicted and ground-truth actions
  • Key advantage: When a speculative state hits (prediction matches), its pre-launched Actor call is already waiting

Experiments

Setup

  • Task Domain: Chess agent benchmark (deterministic environment)
  • Actor-Speculator Pairs: Three configurations spanning different model sizes (GPT-OSS variants, Qwen-3 models)
  • Baselines: Sequential execution, breadth-only speculation
  • Metrics: End-to-end latency reduction, time saving percentage

Results

ConfigurationMaximum Speedupvs. Breadth-OnlyCascaded Hits
Config 132.5% latency reduction+18.2 pointsPrimary driver
Config 238.7% latency reduction+20.6 pointsDominant effect
Config 340.0% latency reduction+19.8 pointsMost impactful

Key Performance Insights:

  • Maximum Speedup: Up to 40.0% end-to-end latency reduction over sequential execution
  • Breadth Comparison: Exceeds breadth-only baseline by up to 20.6 percentage points
  • Cascaded Hits: Become the dominant speedup driver as breadth increases

Ablation Study

Through breadth and depth ablations:

  • Small breadth values benefit most from depth speculation
  • Time saving plateaus as breadth grows past Speculator coverage saturation
  • Time saving plateaus as Actor budget grows past productive tree depth usage
  • Optimal range identified: Practical sweet spot in breadth–depth tradeoff

Key Observations

  1. Breadth-Depth Interaction is Constructive: Neither dimension yields unbounded gains, but their combination is powerful
  2. Cascaded Hits Drive Speedup: Consecutive confirmations enabled by depth become the primary speedup source as breadth grows
  3. Budget Allocation Matters: Optimal allocation depends on Actor-Speculator cost ratio
  4. Lossless Speedups: Identical final trajectories guaranteed—only confirmed hits matter

Novelty and Contributions

  • First Unified Framework: MSSA jointly exploits breadth and depth in a single event-driven algorithm
  • Empirical Characterization: Demonstrates consistent 40% latency reduction across multiple Actor-Speculator configurations
  • Cascaded Hits Analysis: Identifies cascaded hits as the primary speedup driver beyond breadth alone
  • Practical Insights: Characterizes the breadth-depth tradeoff and identifies the optimal sweet spot for budget allocation
  • Lossless Guarantees: Maintains identical output distribution while achieving substantial speedups

Conclusion

Multi-Step Speculative Actions achieves significant latency reductions (up to 40%) in LLM-based agents by jointly exploiting breadth and depth dimensions of speculation. The framework demonstrates that:

  • Cascaded hits (consecutive confirmations enabled by depth speculation) become the dominant speedup driver as breadth grows
  • Optimal allocation depends on cost ratios, with practical sweet spots identifiable
  • Breadth and depth interact constructively to overcome individual limitations

Implications for Deployment

  • Enables deployment of high-quality LLM agents in real-time and safety-critical applications
  • Reduces episode latency from tens of minutes to acceptable levels
  • Maintains reasoning quality while achieving substantial wall-clock speedups
  • Applies to any agent setup with slow/fast model pairs

Future Work

  • Extension to stochastic environments and complex agent architectures
  • Integration with reinforcement learning for adaptive speculation budgets
  • Cross-domain evaluation beyond chess agents
  • Study of speculation overhead in different deployment scenarios