SPECMEM: Accelerating Agentic Tool Calling via Live Memory Management
Zihe Song, Wenting Zhao, Ye Liu, Yuanjie Zhu, Ke Xu, Shanghao Li, Philip S. Yu
Abstract
Tool-calling agents are mostly optimized for accuracy; in deployment, however, their growing cost is latency: every tool call is decoded autoregressively. Speculative decoding accelerates this without changing the output, and retrieved past calls make strong drafts under real use, where each user's behavior tends to repeat. Yet existing systems keep no cross-session memory, or build the draft store once and never update it. We propose SpecMem, a tool-call memory kept alive and managed throughout deployment: verified calls are written back online into bounded per-user stores with LRU eviction, and a side-effect gate defers irreversible calls until verification confirms. On multi-session, multi-user query streams served by three open-weight models, a frozen store steadily loses acceptance while SpecMem holds it: a 27% gap in mean accepted tokens (+11% to +34% across benchmarks, tracking how much novel work arrives after the store is built) and up to 1.74x wall-clock speedup. Ablations attribute the gain almost entirely to keeping the store live; local per-user scoping adds no acceptance but closes a measured cross-user leakage channel, and gating on declared side effects, rather than on retrieval confidence, is what eliminates irreversible mistakes.
Create a lesson
Metadata
- Comments
- Accepted to Findings of EACL 2027
Related papers
Uni-Mem: Learning a Long-Horizon Agentic Memory Manager with Unified Online Policy Optimization
Shared title terminologycs.CLZhiqian Xia, Jielong Tang, Ling-An Zeng et al.
ToolSmith: An Automatic Tool-Generation Framework for Multimodal Search Agents
Shared title terminologycs.CLRui Sun, Junhua Huang, Luca Zancato et al.
Heard Enough to Act: Early Tool Calling in Spoken Dialogue Systems
Shared title terminologycs.CLYizhou Peng, Chen Chen, Donghang Wu et al.
Memory Tax: Dissecting the Net Value of Agent Memory
Shared title terminologycs.CLXuan He, Sining Zhoubian, Ruozhen Yang et al.
Trajectory2Gym: Decision-Grounded Compositional Interaction Synthesis for Tool-Use Agents
Shared title terminologycs.CLYihao Hu, Zhihao Wen, Yitong Lin et al.
FlexA-Mem: Budget-Adaptive Agentic Memory for LLM Agents
Shared title terminologycs.CLWujiang Xu, Jiaojiao Han, Xi Zhu et al.