SpecBox: Speculative Sandbox Scheduling for Efficient LLM Agent Serving
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
As LLM agents increasingly rely on the Model Context Protocol (MCP) to invoke isolated external sandboxes, disaggregated sandbox deployment introduces a fundamental tension between resource utilization and interactive tail latency. Persistent long-lived sandbox reservations incur excessive memory overhead at scale, while lazy on-demand instantiation generates severe cold-start penalties that degrade response performance under multi-tenant, multi-turn agent workloads. To resolve this dilemma, we present SpecBox, a runtime built around speculative sandbox preallocation tailored for dynamic LLM agent execution pipelines. At its core, SpecBox implements keyword matching and streaming semantic embedding to enable intent-driven sandbox prewarming, which identifies pending tool execution demands mid-LLM token generation and fully overlaps sandbox bootstrapping with model inference. To extend prewarming windows across sequential agent steps, the framework leverages context-aware stochastic prefetching atop a sandbox dependency graph to probabilistically forecast future sandbox switches ahead of execution. We complement these speculative mechanisms with two orthogonal optimizations: a semantic result cache that prunes redundant repeated sandbox invocations, and a dedicated out-of-band shared-memory transport plane that bypasses conventional network serialization to deliver zero-copy artifact transfers. Evaluated on high-concurrency multi-turn agent traces, our prototype demonstrates that SpecBox cuts P99 end-to-end latency by up to 2.9× relative to the on-demand sandbox baseline, while slashing peak memory consumption by 45.9% compared to permanently reserved sandbox deployments.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 15 of its 47 references that are in the map. First posted on arXiv 27 Jul 2026.
Builds on
15 of 47 references.
Closest ancestors · 1
Same direction, newest first
Other references · 14
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
- 2023A Survey on Large Language Model based Autonomous Agentscited by 2,242
- 2024HybridFlow: A Flexible and Efficient RLHF Frameworkcited by 2,057
- 2023SGLang: Efficient Execution of Structured Language Model Programscited by 1,141
- 2016Bag of Tricks for Efficient Text Classificationcited by 876
- 2024Taming Throughput-Latency Tradeoff in LLM Inference with Sarathi-Servecited by 526
- 2025MCP-Bench: Benchmarking Tool-Using LLM Agents with Complex Real-World Tasks via MCP Serverscited by 109
- 2024AIOS: LLM Agent Operating Systemcited by 97
- 2020Serverless in the Wild: Characterizing and Optimizing the Serverless Workload at a Large Cloud Providercited by 66
- 2024Teola: Towards End-to-End Optimization of LLM-based Applicationscited by 32
- 2022No Provisioned Concurrency: Fast RDMA-codesigned Remote Fork for Serverless Computingcited by 8
2 more
Built on by
Citing papers per year: 2026: 1.
1 paper.
Similar, not cited
Close in wording, no citation either way
- 2026B-PASTE: Beam-Aware Pattern-Guided Speculative Execution for Resource-Constrained LLM Agents
- 2026SPORK: Self-Speculative Forking to Accelerate Agentic LLM Inference
- 2026A Policy-Driven Runtime Layer for Agentic LLM Serving
- 2026Pythia: Exploiting Workflow Predictability for Efficient Agent-Native LLM Serving
- 2026PeakBench: Benchmarking Resource-Aware Tool Invocation in LLM Agents
- 2026Parallelizing Tool Execution and LLM Generation for Low-Latency Agent Serving
- 2026TomasuLLM: Out-of-Order Speculative Execution for LLM Agents
- 2026ScaleSim: Serving Large-Scale Multi-Agent Simulation with Invocation Distance-Based Memory Management