Metraipolis › archive › dc_2372b2e734d8
Persistent Context Graphs for Efficient Memory Compaction in LLM Agents — arXiv:2609.40118
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2609.40118
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-07T13:14:08.203Z
- SHA-256 of the archived text
c880d25e31eaa73acf370109ebc33c3c78a4110399141bc5d25f05535ab6c33b- Stable URL of this page
https://metraipolis.com/documento/dc_2372b2e734d8
How to cite
Persistent Context Graphs for Efficient Memory Compaction in LLM Agents — arXiv:2609.40118 — arXiv (en), https://arxiv.org/abs/2609.40118 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_2372b2e734d8 (Metraipolis archive dc_2372b2e734d8, sha256 c880d25e31eaa73acf370109ebc33c3c78a4110399141bc5d25f05535ab6c33b)
BibTeX
@misc{dc2372b2e734d8,
title = {Persistent Context Graphs for Efficient Memory Compaction in LLM Agents — arXiv:2609.40118},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2609.40118},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_2372b2e734d8; sha256 c880d25e31eaa73acf370109ebc33c3c78a4110399141bc5d25f05535ab6c33b},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.40118. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
As LLM capabilities advance, agents are tackling increasingly complex tasks over longer horizons. Their growing interaction histories make memory compaction essential for staying within context windows and reducing prefill cost. Existing methods summarize the history or compress its KV cache, often adding model computation to preserve information for future requests. A new user request can change which history matters, but reassessing that history with the model requires re-encoding it if the KV cache has expired. Past attention provides signals of historical importance and dependencies between messages, while relevance to the current task must be assessed using the new user request. We introduce ReCAP, a memory compaction method that stores attention-derived importance scores and dependency links in a lightweight, persistent context graph. For each new request, ReCAP combines stored importance with relevance cues from the request and follows dependency links to select messages and their supporting context, without additional model calls for selection. Compared with Codex's default summarization-based compaction, ReCAP reduces estimated latency for compaction and cold restoration by approximately 95% on both Qwen3-Coder and gpt-oss. It also roughly halves the historical context per call on SWE-Together at comparable task quality and improves accuracy on the code tasks of Lost-in-Conversation over full history by 19.8 and 41.2 points. Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-10-01 in cs.CL). Categorie arXiv: Computation and Language (cs.CL). Pagina del lavoro: https://arxiv.org/abs/2609.40118 — 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-07T12:44:51.894Z dalla pagina https://arxiv.org/catchup/cs.CL/2026-10-01?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).