A weekly paper and daily brief on artificial intelligence
ქართული

← Back to the issue of 24 October 2026

Science & technology · Our full summary

Agents learn a cheaper way to forget

Letting agents drop parts of their stored working memory, instead of rewriting their history, cut costs by about 28% and nudged scores up across three models and four benchmarks

The problem

As an agent works through hundreds of rounds of reasoning and tool calls, the key-value (KV) cache that stores its processed history grows, and reading it dominates the bill: in the authors’ measurement KV-cache reads make up 82.4% of total API cost. Long histories also hurt accuracy. The usual remedy, context engineering, trims or summarises old messages, but any edit to the start of the history invalidates the cache after it and forces costly recomputation (re-prefill), so harnesses wait for a length threshold and then cut hard, losing useful information.

The method

Cache engineering leaves the text history unchanged and lets the agent operate on the cache directly. Besides appending, it can drop selected KV entries from future attention and repos (re-position) the retained keys’ position encodings. Because the same tokens can then correspond to different cache states depending on the order of operations, prefix matching no longer suffices for reuse.

The authors therefore built AKV, a serving engine on SGLang with a stateless, API-compatible interface, an extended radix tree to track history-dependent cache states, and segment-batch attention to rebuild missing states in one prefill pass. They tested MiniMax-M2.7, GPT-OSS-120B and MiroThinker-1.7-Mini on BrowseComp-Plus, GAIA-Text, SWE-bench Verified and xbench-DeepSearch, against a standard baseline (summarisation at a high threshold) and text-level context engineering, and let an agent refine cache policies by recursive self-improvement.

Key results

  • A simple tool-response rolling-drop policy reduces average cost by 27.7% relative to the standard baseline and 21.9% relative to text engineering, and raises the average benchmark score by 1.7 points, averaged across three models and four benchmarks.
  • Per model, average scores rise from 52.4 to 53.7 (MiniMax-M2.7), 51.0 to 53.1 (GPT-OSS-120B) and 44.1 to 45.8 (MiroThinker-1.7-Mini) against the standard baseline.
  • On the 80 longest SWE-bench Verified tasks with GPT-OSS-120B, AKV at peak throughput gives 1.18× the output throughput and 1.51× faster P95 request latency than the standard setup (1.36× on mean latency).
  • Ablation: adding repos to tool-response drop raises the BrowseComp-Plus pass rate from 55% to 62%; dropping reasoning cache as well lowers pass rates.
  • Policies found by recursive self-improvement with MiniMax-M2.7 cut per-task cost by 15.6% and 17.8% against the standard baseline while keeping its accuracy, a further 7.1% saving over the hand-designed policy on held-out tasks.
  • Letting the agent manage its cache as a tool gives the highest pass rate on a 100-task BrowseComp-Plus subset for both models tested (61.0% for GPT-OSS-120B, 64.0% for MiniMax-M2.7). MiniMax-M2.7’s cost rises from 5.4 to 5.9 cents a task, as it runs more turns.

Limitations

  • Requires a serving engine that supports cache operations; it does not work through today’s standard APIs without AKV or similar.
  • The authors list further cache strategies, training agents under the scheme, and support for linear-attention models as future work.
  • Tested on three open models and four benchmarks; costs are computed from published token prices.

Why it matters

Agents spend most of their money re-reading their own past. The paper shows that managing that memory at the cache level, rather than rewriting the text, saves about a quarter of the cost without losing accuracy, which matters for anyone running agents at scale.