mlsanityData to 7 Oct 2026

Agentic Plan Caching: Test-Time Memory for Fast and Cost-Efficient LLM Agents

arXiv 2506.14852 ↗First posted 17 Jun 2025cs.DC cs.AI cs.CLcited by 23

On the map: LLM agents and tool use → Software engineering coding agents

Abstract (arXiv)

LLM-based agent applications have shown increasingly remarkable capabilities in complex workflows but incur substantial costs and latency due to extensive planning and reasoning requirements. Existing LLM caching techniques (like context caching and semantic caching), primarily designed for serving chatbots, are insufficient for agent applications where outputs depend on external data and environmental contexts. We propose Agentic Plan Caching (APC), a novel test-time memory that extracts, stores, adapts, and reuses structured plan templates from planning stages of agent applications across semantically similar tasks to reduce the cost and latency of serving. Unlike traditional semantic caching, our system extracts plan templates from completed agent executions at test-time, employs keyword extraction to match new requests against cached plans, and utilizes lightweight models to adapt these templates to task-specific plans with contexts. Evaluation across multiple real-world agent applications shows that our system can reduce costs by 50.31% and latency by 27.28% on average while maintaining performance, offering a more efficient solution for serving LLM-based agents that complements existing LLM serving infrastructures.

Key facts. Cited by 23 papers in the map (data through 7 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 48 of its 70 references that are in the map. First posted on arXiv 17 Jun 2025.

Builds on

48 of 70 references.

Closest ancestors · 3

Same direction, newest first

  1. 2025Adaptive Self-improvement LLM Agentic System for ML Library Development4 Feb
  2. 2024DroidSpeak: KV Cache Sharing for Cross-LLM Communication and Multi-LLM Serving5 Nov
  3. 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineering6 May

Other references · 45

  1. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  2. 2021Training Verifiers to Solve Math Word Problemscited by 9,743
  3. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
  4. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
  5. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  6. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
  7. 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,203
  8. 2024GPT-4o System Cardcited by 4,467
  9. 2023Generative Agents: Interactive Simulacra of Human Behaviorcited by 3,500
  10. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
  11. 2024Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameterscited by 1,928
  12. 2023WebArena: A Realistic Web Environment for Building Autonomous Agentscited by 1,908
33 more
  1. 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 1,906
  2. 2023Gorilla: Large Language Model Connected with Massive APIscited by 1,302
  3. 2024Chatbot Arena: An Open Platform for Evaluating LLMs by Human Preferencecited by 1,151
  4. 2023SGLang: Efficient Execution of Structured Language Model Programscited by 1,107
  5. 2023GAIA: a benchmark for General AI Assistantscited by 1,084
  6. 2025A-MEM: Agentic Memory for LLM Agentscited by 1,000
  7. 2024Large Language Monkeys: Scaling Inference Compute with Repeated Samplingcited by 946
  8. 2023FrugalGPT: How to Use Large Language Models While Reducing Cost and Improving Performancecited by 791
  9. 2024Large Language Model based Multi-Agents: A Survey of Progress and Challengescited by 752
  10. 2021A Dataset of Information-Seeking Questions and Answers Anchored in Research Paperscited by 475
  11. 2024WebVoyager: Building an End-to-End Web Agent with Large Multimodal Modelscited by 424
  12. 2023Cognitive Architectures for Language Agentscited by 422
  13. 2024Mixture-of-Agents Enhances Large Language Model Capabilitiescited by 420
  14. 2022Dynamic Prompt Learning via Policy Gradient for Semi-structured Mathematical Reasoningcited by 347
  15. 2024Agent Workflow Memorycited by 342
  16. 2023FinanceBench: A New Benchmark for Financial Question Answeringcited by 261
  17. 2023Prompt Cache: Modular Attention Reuse for Low-Latency Inferencecited by 255
  18. 2024MobileLLM: Optimizing Sub-billion Parameter Language Models for On-Device Use Casescited by 216
  19. 2024CacheBlend: Fast Large Language Model Serving for RAG with Cached Knowledge Fusioncited by 211
  20. 2024Chain of Agents: Large Language Models Collaborating on Long-Context Taskscited by 201
  21. 2023CacheGen: KV Cache Compression and Streaming for Fast Large Language Model Servingcited by 199
  22. 2025Measuring AI Ability to Complete Long Software Taskscited by 142
  23. 2024RAGCache: Efficient Knowledge Caching for Retrieval-Augmented Generationcited by 97
  24. 2024Efficient Multimodal Large Language Models: A Surveycited by 95
  25. 2025KVLink: Accelerating Large Language Models via Efficient KV Cache Reusecited by 60
  26. 2025SpecReason: Fast and Accurate Inference-Time Compute via Speculative Reasoningcited by 60
  27. 2025xVerify: Efficient Answer Verifier for Reasoning Model Evaluationscited by 53
  28. 2025Synthetic Data Generation & Multi-Step RL for Reasoning & Tool Usecited by 45
  29. 2025Minions: Cost-efficient Collaboration Between On-device and Cloud Language Modelscited by 17
  30. 2025Self-Generated In-Context Examples Improve LLM Agents for Sequential Decision-Making Taskscited by 17
  31. 2024Automating the Enterprise with Foundation Modelscited by 14
  32. 2024AI Metropolis: Scaling Large Language Model-based Multi-Agent Simulation with Out-of-order Executioncited by 14
  33. 2024WONDERBREAD: A Benchmark for Evaluating Multimodal Foundation Models on Business Process Management Taskscited by 11

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 2; 2026: 21.

23 papers.

Sort:

By area:

  1. 2025Agentic Context Engineering: Evolving Contexts for Self-Improving Language Modelscited by 349
  2. 2025AI Meets Brain: Memory Systems from Cognitive Neuroscience to Autonomous Agentscited by 12
  3. 2026Toward Efficient Agents: Memory, Tool learning, and Planningcited by 11
  4. 2026Combee: Scaling Prompt Learning for Self-Improving Language Model Agentscited by 8
  5. 2026EET: Experience-Driven Early Termination for Cost-Efficient Software Engineering Agentscited by 6
  6. 2026SemanticALLI: Caching Reasoning, Not Just Responses, in Agentic Systemscited by 4
  7. 2026PEEK: Context Map as an Orientation Cache for Long-Context LLM Agentscited by 4
  8. 2026AgenticCache: Cache-Driven Asynchronous Planning for Embodied AI Agentscited by 2
  9. 2026Metis: Bridging Text and Code Memory for Self-Evolving Agentscited by 2
  10. 2026A Frozen 12B Beats Frontier Models on Verified Work: 100% Accuracy, 0 Tokens, Bit-Exact, Forevercited by 2
  11. 2026AgentStream: How Well Do Self-Evolving LLM Agents Perform Under Streaming Tasks?cited by 2
  12. 2026Cross-Domain Uncertainty Quantification for Selective Prediction: A Comprehensive Bound Ablation with Transfer-Informed Bettingcited by 1
11 more
  1. 2026PrivScope: Task-scoped Disclosure Control for Hybrid Agentic Systemscited by 1
  2. 2026Evaluating Temporal Semantic Caching and Workflow Optimization in Agentic Plan-Execute Pipelinescited by 1
  3. 2026FlowEvo: Self-Evolving Agents through the Co-Evolution of Workflows and Executable Skillscited by 1
  4. 2026Why Agent Caching Fails and How to Fix It: Structured Intent Canonicalization with Few-Shot Learningcited by 0
  5. 2026AgentOpt v0.1 Technical Report: Client-Side Optimization for LLM-Based Agentcited by 0
  6. 2026Workload-Aware Caching for Multi-Agent Systemscited by 0
  7. 2026AgentSpec: Speculative Decoding for Batch Inference of LLM Agentscited by 0
  8. 2026Designer-RSI: Evolving Procedural Memory from User Traffic for Agentic Graphic Designcited by 0
  9. 2026Just-in-Time Memory: Learning to Curate Task-Adaptive Memory for LLM Agentscited by 0
  10. 2026DynBranch: Speculative Subgraph Reuse for Dynamic Agentic LLM Servingcited by 0
  11. 2026Pay for the Fault, Not the Flow: Label-Free In-Flow Multi-Agent Workflow Optimizationcited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2026Don't Break the Cache: An Evaluation of Prompt Caching for Long-Horizon Agentic Tasks
  2. 2026Learning Agent Execution for KV-Cache Management in Agentic Serving
  3. 2026MemGym: a Long-Horizon Memory Environment for LLM Agents
  4. 2026Agent Memory: Characterization and System Implications of Stateful Long-Horizon Workloads
  5. 2026EvoMemBench: Benchmarking Agent Memory from a Self-Evolving Perspective
  6. 2025Learning When to Plan: Efficiently Allocating Test-Time Compute for LLM Agents
  7. 2025KVFlow: Efficient Prefix Caching for Accelerating LLM-Based Multi-Agent Workflows
  8. 2026Memory in the LLM Era: Modular Architectures and Strategies in a Unified Framework