What Limits Agentic Systems Efficiency?
Song Bian, Minghao Yan, Anand Jayarajan, Gennady Pekhimenko, Shivaram Venkataraman
TL;DR
This work provides a comprehensive empirical analysis of latency in web‑interactive agentic systems, showing that both LLM API latency and web environment overhead significantly shape end‑to‑end performance. It introduces SpecCache, a caching and speculative execution framework that decouples reasoning from environment interaction to hide web latency. Through benchmarks on WebWalkerQA and Frames, SpecCache achieves up to 3.2x reductions in web latency and up to 58x improvements in cache hit rates, without degrading agentic performance. The findings highlight practical routes to meeting latency‑sensitive service objectives in real‑world AI systems and offer a generalizable approach to other turn‑based agentic setups.
Abstract
Large Language Models (LLMs), such as OpenAI-o1 and DeepSeek-R1, have demonstrated strong reasoning capabilities. To further enhance LLM capabilities, recent agentic systems, such as Deep Research, incorporate web interactions into LLM reasoning to mitigate uncertainties and reduce potential errors. However, existing research predominantly focuses on reasoning performance, often neglecting the efficiency of agentic systems. In this work, we present a comprehensive empirical study that identifies efficiency bottlenecks in web-interactive agentic systems. We decompose end-to-end latency into two primary components: LLM API latency and web environment latency. We conduct a comprehensive empirical study across 15 models and 5 providers to demonstrate high variability in API-based agentic systems. We observe that web environment latency can contribute as much as 53.7% to the overall latency in a web-based agentic system. To improve latency, we propose SpecCache, a caching framework augmented with speculative execution that can reduce web environment overhead. Extensive evaluations on two standard benchmarks show that our approach improves the cache hit rate by up to 58x compared to a random caching strategy, while reducing web environment overhead by up to 3.2x, without degrading agentic system performance.
