arXiv cs.AI· Xinyi Lisa Chen, Pedro Herrero-Vidal, Xiaohan Chen, Xiaojing Yu, Cris Liu, Bingqing Song, Bin Xu, Suleiman A. Khan, You-Lin Chen·· 2026-10-21AI 评分40
REM:编码智能体经验记忆的存取与遗忘框架
REM: What to Store, When to Recall, What to Forget in Experience Memory for Coding Agents
AI 导读
arXiv 论文提出 REM(Reusable Experience Memory)框架,在智能体 think-act 循环内管理经验记忆的存储、召回和遗忘三个决策。
正文 · 原文
Abstract:Large language model (LLM) agents now autonomously complete long-horizon tasks, such as repository-level coding, through hundreds of think-act steps, yet the experience each run produces is rarely reused on the next. Prior memory systems concentrate on retrieval, finding the most relevant past trajectory. Retrieval cannot observe the running agent, so it cannot decide whether the agent needs an experience, at which point, or for how long. We introduce REM (Reusable Experience Memory), a framework that manages the memory lifecycle from inside the agent's think-act loop through three explicit decisions. What to store: each completed trajectory is consolidated into a phase-structured document, two orders of magnitude smaller than the trajectory. When to recall: the document is injected at the start of the task; the costlier implementation record is withheld until an in-loop gate detects the agent struggling. What to forget: the record is evicted after a single exposure. On repository-level bug fixing (SWE-ContextBench Lite), REM retrieves the related trajectory more accurately than every state-of-the-art memory system (68.7% vs. 55.6% match@1) and improves, in every replicate, end-task resolution (27.6% vs. 24.9%) at 17% lower cost. Injecting the same experience as a summary or raw trajectory, even when oracle-retrieved, does not. Ablating any of the three decisions reduces resolution. Altogether, these results demonstrate that the bottleneck in experience reuse is not retrieval fidelity but how experience is stored and governed across its lifecycle, opening a control-theoretic perspective on agent memory.
| Comments: | Accepted at the NeurIPS 2026 Workshop on Continual Learning for Enterprise AI Agents (CLEA). 16 pages, 3 figures, 14 tables |
| Subjects: | Artificial Intelligence (cs.AI) |
| ACM classes: | I.2.6; I.2.7; D.2.5 |
| Cite as: | arXiv:2610.27377 [cs.AI] |
| (or arXiv:2610.27377v1 [cs.AI] for this version) | |
| https://doi.org/10.48550/arXiv.2610.27377 arXiv-issued DOI via DataCite (pending registration) |
Submission history
From: Pedro Herrero-Vidal [view email]
[v1]
Mon, 19 Oct 2026 22:59:56 UTC (849 KB)
来源:arXiv cs.AI · arxiv.org