Metraipolis › archive › dc_8ae6362beed5
AgentSpec: Speculative Decoding for Batch Inference of LLM Agents — arXiv:2608.24004
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2608.24004
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-18T06:17:58.646Z
- SHA-256 of the archived text
8071e0aaafb96e550c9133a47b436a4d300c5410e5b86daf8ba7609dd49df76c- Stable URL of this page
https://metraipolis.com/documento/dc_8ae6362beed5
How to cite
AgentSpec: Speculative Decoding for Batch Inference of LLM Agents — arXiv:2608.24004 — arXiv (en), https://arxiv.org/abs/2608.24004 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_8ae6362beed5 (Metraipolis archive dc_8ae6362beed5, sha256 8071e0aaafb96e550c9133a47b436a4d300c5410e5b86daf8ba7609dd49df76c)
BibTeX
@misc{dc8ae6362beed5,
title = {AgentSpec: Speculative Decoding for Batch Inference of LLM Agents — arXiv:2608.24004},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2608.24004},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_8ae6362beed5; sha256 8071e0aaafb96e550c9133a47b436a4d300c5410e5b86daf8ba7609dd49df76c},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2608.24004. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Large language model (LLM)-based agent applications often incur high response time. Speculative decoding is a promising solution to improve the inference efficiency of LLM agents without impacting generation quality. However, state-of-the-art speculative decoding algorithms exhibit substantial speed degradation under large batch sizes, limiting their effectiveness to deploy in real-world agent applications. In this work, we first present a systematic analysis of speculative decoding for LLM agents and identify two dominant factors of speedup degradation: high rejection rate of speculative tokens, and under-utilization of dynamic token budgets.B ased on these observations, we propose AgentSpec, a speculative decoding algorithm that addresses the limitations of existing methods for LLM agents. AgentSpec incorporates structure-isolated drafting that constrains speculation to semantically coherent segments of the agent workflow, reducing the drafts of irrelevant semantic paths and achieving an extremely low rejection rate. Moreover, AgentSpec adopts redundancy-aware budget allocation that exploits agent-level information to better utilize the dynamically-free token budget during the agent inference. We implement and evaluate AgentSpec on five different workloads and four different models from four different LLM families in vLLM. Our results demonstrate the superiority of AgentSpec over state-of-the-arts. Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-08-26 in cs.CL). Categorie arXiv: Computation and Language (cs.CL). Pagina del lavoro: https://arxiv.org/abs/2608.24004 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-18T06:17:29.350Z dalla pagina https://arxiv.org/catchup/cs.CL/2026-08-26?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).