ShadowTool: Advancing Serverless Workflows Ahead of Agent Decisions

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.

Authors

Publication Details

Journal
arXiv
Published
2026-12-03
Primary Topic
Cloud Computing and Resource Management
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

ShadowTool: Advancing Serverless Workflows Ahead of Agent Decisions

Fengqian Guo, Baolin Chong, 龙旺清, Hancheng Lu et al.
arXiv
Cloud Computing and Resource Management
preprint

ShadowTool: Advancing Serverless Workflows Ahead of Agent Decisions

Fengqian Guo, Baolin Chong, 龙旺清, Hancheng Lu, Shaoxuan Zhou, Yuhan Wang
preprint en

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.

arXiv
Cloud Computing and Resource Management
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon