paper-with-me

홈 › Papers

Optimizing Agentic Language Model Inference via Speculative Tool Calls

2025-12-17 · Daniel Nichols, Prajwal Singhania, Charles Jekel, Abhinav Bhatele, Harshitha Menon arxiv

Language models (LMs) are becoming increasingly dependent on external tools. LM-based agentic frameworks frequently interact with their environment via such tools to search files, run code, call APIs, etc. Further, modern reasoning-based LMs use tools such as web search and Python code execution to enhance their reasoning capabilities. While tools greatly improve the capabilities of LMs, they also introduce performance bottlenecks during the inference process. In this paper, we introduce novel systems optimizations to address such performance bottlenecks by speculating tool calls and forcing sequences to remain resident in the inference engine to minimize overheads. Our optimizations lead to throughput improvements of several hundred tokens per second when hosting inference for LM agents. We provide a theoretical analysis of our algorithms to provide insights into speculation configurations that will yield the best performance. Further, we recommend a new "tool cache" API endpoint to enable LM providers to easily adopt these optimizations.

📄 PDF Abstract BibTeX arXiv:2512.15834

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

SpecEyes: Accelerating Agentic Multimodal LLMs via Speculative Perception and Planning

2026-03-24 · Haoyu Huang, Jinfa Huang, Zhongwei Wan, Xiawu Zheng 외 arxiv

Agentic multimodal large language models (MLLMs) (e.g., OpenAI o3 and Gemini Agentic Vision) achieve remarkable reasoning capabilities through iterative visual tool invocation. However, the cascaded perception, reasoning…

AsymSpec: Context-Asymmetric Speculative Decoding for Agentic LLMs

2026-08-26 · Sheng Liang, Yongyue Zhang, Nathanael Brian, Hang Lv 외 arxiv

Agentic LLM pipelines face escalating inference costs as context accumulates across retrieval, tool use, and multi-turn interactions. To control latency, deployments routinely compress inputs, but this degrades task accu…

Efficient LLM Serving for Agentic Workflows: A Data Systems Perspective

2026-03-17 · Noppanat Wadlom, Junyi Shen, Yao Lu arxiv

Agentic workflows are composed of sequences of interdependent Large Language Model (LLM) calls, and they have become a dominant workload in modern AI systems. These workflows exhibit extensive redundancy from overlapping…

Cross-Family Speculative Prefill: Training-Free Long-Context Compression with Small Draft Models

2026-03-03 · Shubhangi Upasani, Ravi Shanker Raju, Bo Li, Mengmeng Ji 외 arxiv

Prompt length is a major bottleneck in agentic large language model (LLM) workloads, where repeated inference steps and multi-call loops incur substantial prefill cost. Recent work on speculative prefill demonstrates tha…

SPORK: Self-Speculative Forking to Accelerate Agentic LLM Inference

2026-07-03 · Huajun Bai, Weiwei Lv, Huichuan Zheng, Youyou Lu 외 arxiv

LLM agents are becoming a common interface for research, coding, and question answering, yet their Thought-Action-Observation loop is often serial: the model reasons, emits a tool call, then idles the GPU until the resul…

Question Answering