StepKV: Step-Aware KV Cache Compression for LLM Agents
On the map: LLM agents and tool use → Software engineering coding agents
Abstract (arXiv)
Key-value (KV) caching is essential for efficient autoregressive large language model (LLM) inference, but the cache grows linearly with context length, increasing storage and decoding costs. KV cache compression mitigates this cost by retaining only a subset of cached tokens. This challenge is particularly important for multi-step LLM agents, where a query expands into trajectories of reasoning, tool interactions, and retrieved observations. Existing pruning methods typically treat the cache as a flat token stream and rank tokens by recency or attention saliency. This creates a mismatch between the unit of compression and the unit of reasoning: token-level pruning removes individual entries, whereas useful information in multi-step agents is often organized into reasoning steps with uneven and delayed importance. Consequently, an early observation or intermediate decision may receive little recent attention yet remain essential for later evidence synthesis. We term this failure mode Reasoning Continuity Disruption.These observations motivate KV cache compression that jointly considers token- and reasoning-step-level information. StepKV addresses this goal by treating reasoning steps as first-class retention units. It associates cache entries with their generating steps, estimates step utility from trajectory-derived signals, and combines this utility with token-level saliency. The resulting scores globally rank prunable tokens, from which StepKV retains the top-scoring entries under a target budget. StepKV thus provides a step-centric perspective for agent KV cache compression. Across multi-hop QA and long-horizon web reasoning tasks, StepKV sustains accuracy under low KV budgets where token-level baselines degrade sharply, offering a more robust efficiency-accuracy trade-off for multi-step agent inference.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 30 of its 39 references that are in the map. First posted on arXiv 26 Aug 2026.
Builds on
30 of 39 references.
Closest ancestors · 3
Same direction, newest first
- 2026IntentKV: Cross-Turn Intent-Aware KV Cache Pruning for Agent Inference6 Jun
- 2026Leyline: KV Cache Directives for Agentic Inference31 May
- 2026SideQuest: Model-Driven KV Cache Management for Long-Horizon Agentic Reasoning26 Feb
Other references · 27
- 2017Attention Is All You Needcited by 59,932
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,686
- 2023Generative Agents: Interactive Simulacra of Human Behaviorcited by 3,500
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
- 2021WebGPT: Browser-assisted question-answering with human feedbackcited by 1,722
- 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,311
- 2020Constructing A Multi-hop QA Dataset for Comprehensive Evaluation of Reasoning Stepscited by 1,259
15 more
- 2024DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Modelcited by 1,093
- 2021MuSiQue: Multihop Questions via Single-hop Question Compositioncited by 893
- 2024SnapKV: LLM Knows What You are Looking for Before Generationcited by 848
- 2024Quest: Query-Aware Sparsity for Efficient Long-Context LLM Inferencecited by 487
- 2024Gated Delta Networks: Improving Mamba2 with Delta Rulecited by 483
- 2023Model Tells You What to Discard: Adaptive KV Cache Compression for LLMscited by 466
- 2023LongLLMLingua: Accelerating and Enhancing LLMs in Long Context Scenarios via Prompt Compressioncited by 443
- 2025Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attentioncited by 391
- 2025BrowseComp-Plus: A More Fair and Transparent Evaluation Benchmark of Deep-Research Agentcited by 183
- 2019Adaptive Attention Span in Transformerscited by 148
- 2025R-KV: Redundancy-aware KV Cache Compression for Reasoning Modelscited by 52
- 2025ThinKV: Thought-Adaptive KV Cache Compression for Efficient Reasoning Modelscited by 21
- 2024SCOPE: Optimizing Key-Value Cache Compression in Long-context Generationcited by 20
- 2025RaaS: Reasoning-Aware Attention Sparsity for Efficient LLM Reasoningcited by 19
- 2025LazyEviction: Lagged KV Eviction with Attention Pattern Observation for Efficient Long Reasoningcited by 17
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026KARA: Efficient Reasoning LLM Serving via Sliding-Window KV Cache Compression
- 2025Lethe: Layer- and Time-Adaptive KV Cache Pruning for Reasoning-Intensive LLM Serving
- 2026C2KV: Compressed and Composable KV Cache Reuse for Efficient LLM Inference
- 2026PolyKV: A Shared Asymmetrically-Compressed KV Cache Pool for Multi-Agent LLM Inference
- 2026RelayCaching: Accelerating LLM Collaboration via Decoding KV Cache Reuse
- 2026PuzzleKV: Page-Wise Low-Rank Decomposition for KV Cache Compression
- 2026CompressKV: Semantic-Retrieval-Guided KV-Cache Compression for Resource-Efficient Long-Context LLM Inference
- 2026MemDecay: Region-Aware KV Cache Eviction for Efficient LLM Agent Inference