ShadowTool: Advancing Serverless Workflows Ahead of Agent Decisions
Shaoxuan Zhou, Wangqing Long, Hancheng Lu, Baolin Chong, Yuhan Wang, Fengqian Guo
Abstract
LLM agents use tools to execute computational workflows, with serverless platforms offering on-demand execution. Repeated model decisions between tool calls introduce delays and repeated context processing. Speculative execution can hide tool latency, but returning results only after matching agent requests preserves these decisions and their token costs. We present ShadowTool, a runtime that turns advance tool computation into fewer model decisions and lower token cost. By predicting tool dependencies from serverless runtime observations, ShadowTool advances multiple computation steps without intervening model decisions and delivers the completed results together before the next model request. This gives the agent results ahead of its anticipated calls, substantially reducing interaction rounds and token consumption. We evaluate ShadowTool against SOTA systems and controlled baselines on ShadowBench, our 524-task suite. ShadowTool reduces mean task time and token consumption by 47.1% and 72.9% over serial ReAct, and by 28.0% and 35.9% over Batch ReAct. Under Poisson arrivals simulating production resource contention, it reduces mean end-to-end latency by up to 56.9% over PASTE-like speculative execution.
Create a lesson
Related papers
Dependency-Aware Task Decomposition and Parallel Multi-LLM Execution on Serverless Workflows
Shared title terminologycs.DCJackson Beem, Amine Barrak
Offloading Scientific Workflow Jobs Across Multi-Cluster Environments via Prediction-Based Makespan Simulation
Shared title terminologycs.DCNiklas Fomin, Jonathan Bader, Leon Uwe Schaeffer et al.
Big Data Architecture for Large Organizations:Incorporating Generative AI and Agentic AI
Shared title terminologycs.DCFathima Nuzla Ismail, Shanika Amarasoma, Abira Sengupta
WeaveLayer: A General-Purpose Inference Framework Designed to Be Built by Coding Agents
Shared title terminologycs.DCWeiliang Liu
μSmith: An Agentic Factory for the Fastest Specialized LLM Serving Engines
Shared title terminologycs.DCYaoyao Ding, Qidong Su, Baorun Mu et al.
ForkTide: Lineage-Aware Placement for Branching Code-Agent Sandboxes
Shared title terminologycs.DCQibin Gu