Act While Thinking: Accelerating LLM Agents via Pattern-Aware Speculative Tool Execution

Yifan Sui, Han Zhao, Rui Ma, Zhiyuan He, Hao Wang +2 more
3/19/2026
cs.DCcs.AI

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

LLM-powered agents are emerging as a dominant paradigm for autonomous task solving. Unlike standard inference workloads, agents operate in a strictly serial "LLM-tool" loop, where the LLM must wait for external tool execution at every step. This execution model introduces severe latency bottlenecks. To address this problem, we propose PASTE, a Pattern-Aware Speculative Tool Execution method designed to hide tool latency through speculation. PASTE is based on the insight that although agent requests are semantically diverse, they exhibit stable application level control flows (recurring tool-call sequences) and predictable data dependencies (parameter passing between tools). By exploiting these properties, PASTE improves agent serving performance through speculative tool execution. Experimental results against state of the art baselines show that PASTE reduces average task completion time by 48.5% and improves tool execution throughput by 1.8x.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{sui2026while,
  title  = {Act While Thinking: Accelerating LLM Agents via Pattern-Aware Speculative Tool Execution},
  author = {Yifan Sui and Han Zhao and Rui Ma and Zhiyuan He and Hao Wang and Jianxun Li and Yuqing Yang},
  year   = {2026},
  eprint = {2603.18897},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2603.18897v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2603.18897.svg)](https://codeofpaper.com/paper/2603.18897)

Discussion