arXiv:cs.LG· Yehya Farhat, Michael Desmond, Anastasios Kyrillidis·· 3 小时前AI 评分36
GraphMemory:将记忆与上下文解耦的结构化记忆,实现 Token 高效的测试时持续学习
Decoupling Memory from Context: Structured Memory for Token-Efficient Test-Time Continual Learning
AI 导读
研究者提出 GraphMemory,一种轻量级图结构记忆系统,可累积、精炼、组织并连接可复用策略,每次查询仅检索相关子图,使检索记忆量在处理样本增长时保持恒定。在受限检索下,其下游性能与基线相当,但构建记忆所用 token 减少约 81-85%。该工作将智能体记忆系统更新统一表述为对模型上下文的优化更新过程,为记忆设计与效率研究提供理论框架。
正文
Abstract:Large language models (LLMs) are increasingly deployed in enterprise, scientific, and medical applications, where agents must incorporate domain-specific knowledge and adapt from experience. Context engineering offers a practical alternative to weight updates by improving model behavior through instructions, strategies, and evidence supplied at inference time. However, adapting context online typically requires a costly trial-and-error process, while queries are often processed independently, preventing useful experience from carrying forward. Memory systems address this limitation by retaining information across interactions, but approaches that continually append information to a shared context face increasing token costs, context-window limits, and performance degradation as the context expands. We introduce a unified formulation of context optimization and show that an agent memory system update can be interpreted as an optimization update procedure over the model's context. This perspective attempts to provide a principled framework for studying memory design and its efficiency. We then propose GraphMemory, a lightweight graph-based memory that accumulates, refines, organizes, and connects reusable strategies. For each query, GraphMemory retrieves only the relevant subgraph, enabling online context adaptation without exposing the model to the entire memory. Under bounded retrieval, the amount of retrieved memory remains constant as the number of processed examples grows. Experiments show that GraphMemory achieves competitive downstream performance while using approximately 81-85% fewer memory-construction tokens than our baselines.
| Comments: | 14, 4, neurips workshop: TTCL |
| Subjects: | Artificial Intelligence (cs.AI); Machine Learning (cs.LG) |
| Cite as: | arXiv:2610.02687 [cs.AI] |
| (or arXiv:2610.02687v1 [cs.AI] for this version) | |
| https://doi.org/10.48550/arXiv.2610.02687 arXiv-issued DOI via DataCite (pending registration) |
Submission history
From: Yehya Farhat [view email]
[v1]
Fri, 2 Oct 2026 02:07:32 UTC (251 KB)
来源:arXiv:cs.LG · arxiv.org