PACE: Keeping the Right Tokens in the KV Cache Is Not Enough for Long-Horizon LLM Agents
On the map: LLM agents and tool use → Software engineering coding agents also fits: Agent memory systems
Abstract (arXiv)
Long-horizon LLM agents accumulate sessions of up to millions of tokens, far more key-value (KV) cache than one GPU holds, so serving systems keep a small budget of tokens and evict the rest. Eviction methods differ in which tokens they keep but share one goal: that the tokens a later step needs are still cached. We show this is not enough. In 100K-token coding sessions on Qwen3-8B with a 2,048-token budget, a planner-guided policy that keeps over 99% of the needed tokens resident still fails late steps increasingly often: its accuracy falls from 93% to 64% as the gap between a definition and its use grows from 2K to 90K tokens, at residency 0.996. The needed tokens are resident but unretrievable: what grows is their rotary-position distance to the query. We present PACE (Planner-Aware Context Engine), a KV-cache engine that couples plan-aware retention, in which the agent's planner tells the cache which context future steps will read, with bounded positions, which renumber kept tokens so their rotary distance to the query stays below 8K at any session length. In a pre-registered evaluation on fresh tasks, PACE passes 97% of hidden unit tests at 100K tokens, against 42% for H2O and 3% for SnapKV under the same budget, and needs both components: either alone reaches 63% (the combination beats each, p < 10^-4). The result holds with length: in 1M- and 2M-token sessions on one 24 GB GPU, with definitions written 0.9M and 1.8M tokens before use, PACE passes 99% and 100% of checks and recalls every session fact, while bounded positions without foresight falls from 33% to 13%; PACE holds under 0.7 GB of KV state where the full cache would need 147-295 GB. Renumbering is exact, costs no measurable perplexity, and adds 9% wall time. On Mistral-7B, whose coding ability caps it at 40% even with nothing evicted, PACE stays at that ceiling while retention alone falls below it.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 28 of its 32 references that are in the map. Submitted 6 Nov 2026.
Builds on
28 of 32 references.
Closest ancestors · 5
Same direction, newest first
- 2026Learning Agent Execution for KV-Cache Management in Agentic Serving16 Jul
- 2026MemDecay: Region-Aware KV Cache Eviction for Efficient LLM Agent Inference12 Jul
- 2026Efficient Serving for Dynamic Agent Workflows with Prediction-based KV-Cache Management7 May
- 2025Continuum: Efficient and Robust Multi-Turn LLM Agent Scheduling with KV Cache Time-to-Live4 Nov
- 2025KVFlow: Efficient Prefix Caching for Accelerating LLM-Based Multi-Agent Workflows10 Jul
Other references · 23
- 2025Qwen3 Technical Reportcited by 9,994
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 6,685
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 5,132
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,765
- 2023Mistral 7Bcited by 3,489
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,444
- 2023MemGPT: Towards LLMs as Operating Systemscited by 1,655
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,559
- 2024SnapKV: LLM Knows What You are Looking for Before Generationcited by 1,003
- 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 794
- 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 672
- 2023FlexGen: High-Throughput Generative Inference of Large Language Models with a Single GPUcited by 610
11 more
- 2024Quest: Query-Aware Sparsity for Efficient Long-Context LLM Inferencecited by 581
- 2024PyramidKV: Dynamic KV Cache Compression based on Pyramidal Information Funnelingcited by 479
- 2023Scissorhands: Exploiting the Persistence of Importance Hypothesis for LLM KV Cache Compression at Test Timecited by 471
- 2024LongRoPE: Extending LLM Context Window Beyond 2 Million Tokenscited by 346
- 2024InfiniGen: Efficient Generative Inference of Large Language Models with Dynamic KV Cache Managementcited by 272
- 2023CacheGen: KV Cache Compression and Streaming for Fast Large Language Model Servingcited by 223
- 2024InfLLM: Training-Free Long-Context Extrapolation for LLMs with an Efficient Context Memorycited by 220
- 2024LLM Maybe LongLM: Self-Extend LLM Context Window Without Tuningcited by 149
- 2025TokenCake: A KV-Cache-centric Serving Framework for LLM-based Multi-Agent Applicationscited by 20
- 2026ActKV: Efficient LLM Agents through Action-Guided KV Cache Managementcited by 3
- 2026WAKMan: Workload Aware KVCache Managercited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026TokenPilot: Cache-Efficient Context Management for LLM Agents
- 2026Beyond Token Savings: A Systematic Study of Context Compression in LLM Agents
- 2026AgentKV: Phase-Aware KV Eviction for Agentic LLMs
- 2026TokenDance: Scaling Multi-Agent LLM Serving via Collective KV Cache Sharing
- 2026Beyond Compaction: Structured Context Eviction for Long-Horizon Agents
- 2026Bursts That Outlast Themselves: Persistent Degradation in Prefix-Cached Agent Serving
- 2026Plans Don't Persist: Why Context Management Is Load Bearing for LLM Agents
- 2026Irminsul: MLA-Native Position-Independent Caching for Agentic LLM Serving