arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2607.01523cs.LGcs.AIcs.CL
收藏

多头递归记忆智能体

Multi-Head Recurrent Memory Agents

Department of Computer Science, University of Wisconsin-Madison(威斯康星大学麦迪逊分校计算机科学系)

Jiatong Li, Samuel Yeh, Sharon Li

AI总结:

针对递归记忆智能体在长上下文中性能退化问题,提出多头递归记忆(MHM)框架,通过分阶段选择-更新策略隔离记忆头,显著提升记忆保持率和端到端准确性。

摘要:

递归记忆智能体通过将输入迭代整合到固定大小的记忆窗口中,将LLM扩展到任意长的上下文。尽管具有可扩展性,这些智能体存在一个记录在案的可靠性问题:随着上下文长度的增长,端到端性能系统性下降。我们通过将性能分解为两个因素——记忆捕获和记忆保持——来诊断这一失败,并定量确认保持是主要的瓶颈。保持崩溃是因为现有设计将记忆维护为一个单一的文本块,迫使每次更新都可能覆盖先前保留的内容。基于这一诊断,我们提出了多头递归记忆(MHM),一个通用的、无需训练的框架,它将记忆划分为独立的头,由阶段性的先选择后更新策略控制。在每一步,恰好选择一个头进行更新,而其余头在结构上被保护免受覆盖,从而将保持的负担从模型行为转移到架构设计。作为一个轻量级的实例化,我们引入了最近最少更新的MHM(MHM-LRU),它保证均匀的头利用且零额外token开销。在长上下文基准上的大量实验表明,MHM-LRU在100K-1M token范围内显著提高了保持率和端到端准确性,而基线方法在此范围内急剧下降。在896K token的RULER-HQA上,MHM-LRU将记忆保持率从不到30%提高到73.96%。这些增益跨模型家族、规模和任务类型泛化,将架构优化定位为实现可靠长上下文递归记忆的实用且成本高效的路径。

英文摘要:

Recurrent memory agents extend LLMs to arbitrarily long contexts by iteratively consolidating input into a fixed-size memory window. Despite their scalability, these agents exhibit a well-documented reliability problem: end-to-end performance degrades systematically as context length grows. We diagnose this failure by decomposing performance into two factors---memory capture and memory retention---and quantitatively confirm that retention is the dominant bottleneck. Retention collapses because existing designs maintain memory as a monolithic text block, forcing every update to risk overwriting previously retained content. Motivated by this diagnosis, we propose Multi-Head Recurrent Memory (MHM), a general, training-free framework that partitions memory into independent heads governed by a stage-wise select-then-update strategy. At each step, exactly one head is selected for update while the remaining heads are structurally shielded from overwriting, shifting the burden of retention from model behavior to architectural design. As a lightweight instantiation, we introduce Least-Recently-Updated MHM (MHM-LRU), which guarantees uniform head utilization with zero additional token overhead. Extensive experiments on long-context benchmarks show that MHM-LRU substantially improves both retention and end-to-end accuracy across the 100K--1M token range, where baselines degrade sharply. On RULER-HQA at 896K tokens, MHM-LRU improves the memory retention rate from less than 30% to 73.96%. These gains generalize across model families, scales, and task types, positioning architectural optimization as a practical and cost-efficient path toward reliable long-context recurrent memory.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑