Interactive Speculative Planning: Enhance Agent Efficiency through Co-design of System and User Interface

Wenyue Hua, Mengting Wan, Jagannath Shashank Subramanya Sai Vadrevu, Ryan Nadel, Yongfeng Zhang, Chi Wang

Interactive Speculative Planning (ISP) slashes the latency of LLM-based agents by using a fast "approximation" model to draft action plans while a powerful "target" model verifies them in the background. By co-designing the system with a user interface that allows for real-time human interruptions, the framework turns user feedback into "oracle" steps that further accelerate the planning process.

The Latency Bottleneck in LLM Agents

As AI agents evolve from simple chatbots to complex multi-step planners (using frameworks like ReAct or Tree-of-Thought), they face a massive time efficiency problem. When a user delegates a complex task, they are often forced to sit through long "thinking" delays.

This latency stems from three primary sources: the sheer size of state-of-the-art models, the volume of "thought" tokens generated before an action is taken, and the strictly sequential nature of planning (where Step 2 cannot start until Step 1 is finished). High latency increases user stress and reduces the perceived value of automation. Waiting for faster models is only a partial solution; we must fundamentally change how agents plan and interact with users.

The Interactive Speculative Planning Framework

To address these inefficiencies, the authors introduce Interactive Speculative Planning (ISP), a framework resting on the co-design of system architecture and user interface.

Overview of the Interactive Speculative Planning framework

The framework operates on three core pillars:

1. System-Level Speculative Planning

Borrowing from "speculative decoding" in LLM inference, the system deploys two agents simultaneously. An Approximation Agent (fast, cheap, but less accurate) quickly drafts a sequence of actions. Concurrently, a Target Agent (slow, expensive, but powerful) verifies these steps asynchronously.

Timeline of speculative execution showing approximation and target agent processes

If the Target Agent confirms a step is correct, the system has effectively "pre-computed" the future, saving significant time. If it detects an error, it halts the fast agent, corrects the step, and restarts the speculation from that newly verified point.

2. UI-Level Rescheduling

Because the Target Agent works asynchronously, its verified outputs can arrive out of order. To prevent the user from seeing a chaotic, flickering list of corrected mistakes, the authors designed a Reschedule Mechanism for the user interface. This ensures the user sees a clean, sequential list of actions, hiding the messy background verification while still displaying real-time progress.

3. Active Human Interruption

Unlike traditional systems that passively wait for user input, ISP allows users to actively interrupt. If a user sees the agent struggling or taking too long, they can manually provide the correct next step. The system treats this intervention as an "oracle" prefix, immediately updating the plan and letting the agents speculate forward from that exact point. Here, human intervention is not a failure of the AI, but a feature that accelerates the entire pipeline.

Evaluation and Key Results

The researchers evaluated ISP on two major agent benchmarks: OpenAGI (117 multi-step tasks involving computer vision and NLP tools) and TravelPlanner (180 complex tasks requiring navigation of 4 million data records to create constrained itineraries).

  • Significant Speedups: On the OpenAGI benchmark, ISP reduced total running time by up to 42.3% and stepwise generation time by roughly 30-38%. Even in the highly complex TravelPlanner environment, the system achieved a 20-25% reduction in total generation time.
  • The "Upper Bound" Guarantee: Theoretically, even in the worst-case scenario where the fast agent is entirely incorrect, the system's speed is upper-bounded by the speed of a traditional, non-speculative agent. Users get a high chance for a speedup with a built-in safety net.
  • Cost Trade-offs: Because the system runs two models simultaneously and discards tokens from incorrect speculations, monetary costs increased by about 50-70% in some settings. However, using a highly cost-effective model (like GPT-3.5) as the approximation agent can mitigate this expense.
  • User Impact: Simulations demonstrated that as user "patience" decreases, the value of the interactive interruption feature increases, significantly lowering the average time required to reach a final, correct plan.

Limitations and Future Directions

While highly effective, the ISP framework has areas for future refinement:

  • Security Risks: Similar to hardware speculative execution vulnerabilities (e.g., Spectre), letting an unverified approximation agent take real-world actions could be risky in high-stakes environments.
  • Strict Matching: The current system uses "Exact Match" to verify steps. If the fast agent outputs "Search for flights" and the slow agent outputs "Find flight options," the system rejects it as a mismatch. Moving toward "Relaxed Exact Match" or "Postponed Judgment" could improve efficiency.
  • UI Flexibility: The current interface does not allow for "backtracing." If a user misses the window to interrupt a specific step, they cannot easily go back and edit it later. Future iterations aim to support more flexible history editing.

Summary updated

BibTeX
@inproceedings{hua2025interactive,
  author = {Wenyue Hua and Mengting Wan and JAGANNATH SHASHANK SUBRAMANYA SAI VADREVU and Ryan Nadel and Yongfeng Zhang and Chi Wang},
  title = {{Interactive Speculative Planning: Enhance Agent Efficiency through Co-design of System and User Interface}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=BwR8t91yqh},
}
Figure