Anchor: Amortized KV-Cache Compaction for Procedural Skills
Weixing Wang, Kexin Wang, Benjamin Bergner, Shayan Jawed, Yinghan Zhao, Bei Chen, Jens Lehmann, Cheng Wang
Abstract
LLM agents increasingly rely on long procedural skills: prompts packaging tool schemas and invocation instructions that consume extensive context on every request. KV-cache compaction promises to reclaim this budget by emitting a compacted KV prefix for unseen skills in a single forward pass, yet existing methods perform poorly on procedural skills, producing missing or inaccurate tool calls. We identify a key training mechanism behind this, the anchoring effect: when knowledge-preservation (reconstruction) and instruction-following (tool-calling) objectives are trained sequentially, the second stage erases most of what the first stage stored, leading to suboptimal final tool-call accuracy. We therefore present ANCHOR (Amortized Neural KV Compaction with Held-On Reconstruction), an emitter network trained with on-policy distillation anchored by a low-weight reconstruction objective that keeps stored knowledge intact while improving tool-call fidelity. We also find that evaluating skill compaction remains an open problem: on some existing agentic benchmarks, strong base models score nearly as well without the skill in context, leaving no headroom to measure what a compacted prefix preserves. We therefore propose DomainBench: 716 tasks from 100 procedural skills, answerable only with the skill in context and graded on tool calls at three nested granularities: tool name, argument keys, and argument values. At 4x compaction, ANCHOR recovers 65.1% and 58.9% of full-context tool-use fidelity on two LLM backbones against 5.5--45.0% for four baseline methods.
Create a lesson
Related papers
Evaluating KV-Cache Eviction Policies for LLM Agents: The Effect on the Shared System Prompt
Shared title terminologycs.AIHriday Ampavatina, Magdalini Eirinaki
When to End, Which to Invoke Next: Transition-Aware Tokenized Procedural Memory for LLMs
Shared title terminologycs.AIRuochen Cui, Qianqian Xu, Shilong Bao et al.
Collaborative AI agents uncover compact symbolic patterns in human behaviour
Shared title terminologycs.AIQifei Li, Jiaxu Cui, Nachuan Xing et al.
MOV-Evol: Evolving Procedural Memory for Agents Through Maturation, Orchestration, and Valuation
Shared title terminologycs.AIJiayi Tan
Where Greedy Evaluation Noise Comes From: Request Order, Compile Cache, Device, and Server State in vLLM on Blackwell GPUs
Shared title terminologycs.AIStephen J. Ronan MD