AOSpec Reduces Latency for LLM Agents Using Co-Speculation

Hao Mark Chen, Jinnan Guo, Wayne Luk, Hongxiang Fan· August 4, 2026 View original

Key takeaways

  • AOSpec co-speculates actions and observations to reduce LLM agent latency.
  • It uses Expected Value Decoding to optimize for expected latency benefits.
  • Joint Action-State Verification allows for long-range speculation without accuracy loss.
  • AOSpec significantly outperforms baselines, especially as decoding speeds increase.

Who benefits

Software DevelopmentCustomer ServiceRoboticsGamingFinancial Services

Summary

AOSpec is a new framework that significantly reduces the end-to-end latency of large language model agents by co-speculating both actions and observations. It optimizes for expected latency benefits and verifies actions against committed execution, breaking the traditional lookahead-accuracy tradeoff.

Large language model agents often interact with external tools, leading to a serialization bottleneck where model generation and environment execution happen sequentially. As LLM decoding speeds improve, tool execution becomes the dominant latency factor. Existing speculative execution methods, which focus only on actions or observations, leave much of this latency unaddressed. AOSpec introduces a lossless framework that co-speculates across the entire agent-environment loop. It uses Expected Value Decoding (EVD) to prioritize observation speculation for outcomes with the greatest expected latency reduction. For outcomes that only execution can reveal, AOSpec launches "latency-critical target actions" in isolated forks. A key innovation, Joint Action-State Verification (JASV), verifies both the speculative action and its originating state against committed execution, allowing for long-range overlap without sacrificing semantic correctness and overcoming the lookahead-accuracy tradeoff.

Why it matters

Professionals developing or deploying LLM agents can achieve significantly faster response times, making these agents more practical for real-time applications and improving user experience in interactive systems.

How to implement this in your domain

  1. 1Evaluate AOSpec for your LLM agent deployments, especially those with high tool interaction latency.
  2. 2Explore implementing Expected Value Decoding to guide observation speculation in your agent architecture.
  3. 3Design isolated execution forks for latency-critical actions to enable parallel speculation.
  4. 4Integrate Joint Action-State Verification to ensure the correctness of speculative actions and states.
  5. 5Benchmark the end-to-end latency improvements and compare against existing agent serving methods.

Original post by Hao Mark Chen, Jinnan Guo, Wayne Luk, Hongxiang Fan

"arXiv:2608.00881v1 Announce Type: new Abstract: Large language model agents increasingly act through stateful tools, yet model generation and environment execution remain serialized at every step. As decoding accelerates, tool execution becomes a growing bottleneck. Existing acti…"

View on X

Originally posted by Hao Mark Chen, Jinnan Guo, Wayne Luk, Hongxiang Fan on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses