Metraipolis › archive › dc_b0a340dc5f9f

Cache Engineering for Agents — arXiv:2610.28577

Source
arXiv (en)
Original
https://arxiv.org/abs/2610.28577
License (as archived)
CC0-1.0
Archived
2026-10-21T07:09:11.141Z
SHA-256 of the archived text
6cc62327c744e855818165e4e56f27fc69418584b8ae93350b382613e29d6180
Stable URL of this page
https://metraipolis.com/documento/dc_b0a340dc5f9f

How to cite

Cache Engineering for Agents — arXiv:2610.28577 — arXiv (en), https://arxiv.org/abs/2610.28577 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_b0a340dc5f9f (Metraipolis archive dc_b0a340dc5f9f, sha256 6cc62327c744e855818165e4e56f27fc69418584b8ae93350b382613e29d6180)
BibTeX
@misc{dcb0a340dc5f9f,
  title = {Cache Engineering for Agents — arXiv:2610.28577},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2610.28577},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_b0a340dc5f9f; sha256 6cc62327c744e855818165e4e56f27fc69418584b8ae93350b382613e29d6180},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2610.28577. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Large Language Model (LLM) agents can handle increasingly complex tasks, navigating long trajectories of observations and actions. As these trajectories grow, key-value (KV) cache I/O and storage become the dominant cost. Trajectories can also exceed the LLM's maximum context length, requiring control over active cache growth. Prior work uses context engineering to reduce cache size by trimming or summarizing history. However, modifying the trajectory prefix invalidates subsequent cached states and triggers costly re-prefilling of retained context. Task accuracy can also suffer when too little context is retained to limit re-prefill costs. We propose cache engineering as a new scheme. It allows agents to directly control their active KV cache without modifying the trajectory or re-prefilling retained context. Specifically, agents can proactively use drop to exclude selected cache from future attention and repos to adjust retained keys' position encodings. We formalize these cache operations and identify history dependence as a serving challenge: identical token sequences can yield different cache states under different cache operation sequences, making prefix matching insufficient for correct cache reuse. Thus, we co-design the AKV serving engine. It provides a stateless interface compatible with existing serving APIs, while internally managing stateful cache reuse, eviction, and restoration. Experiments show that a tool-response rolling-drop cache policy improves average benchmark scores by 1.7 points and reduces average cost by 27.7%, compared with conventional threshold-triggered summarization. With AKV, it achieves up to 1.2x the output throughput and a 1.5x speedup in P95 request latency. Recursive self-improvement of cache policies further reduces cost by 7.1% over expert design. Our code is at this https URL .

Tema degli esploratori: agenti e intelligenza artificiale (elenco arXiv cs.CL, nuovi lavori del giorno).
Categorie arXiv: Computation and Language (cs.CL).
Pagina del lavoro: https://arxiv.org/abs/2610.28577 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-21T07:05:58.157Z dalla pagina https://arxiv.org/list/cs.CL/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).