MGMem: An Efficient, Deterministic, and Provenance-Preserving Framework for Long-Horizon Agent Memory

Computer Science > Computation and Language arXiv:2611.33174 (cs) [Submitted on 21 Oct 2026] Title: MGMem: An Efficient, Deterministic, and Provenance-Preserving Framework for Long-Horizon Agent Memory.

计算机科学 > 计算与语言 arXiv:2611.33174 (cs) [提交于 2026 年 10 月 21 日] 标题:MGMem:一种用于长周期智能体记忆的高效、确定性且保留溯源的框架。

Abstract: Long-horizon Large Language Model (LLM) agents need persistent memory that surfaces the right past interaction at the right time across thousands of turns. Many systems index by invoking generative LLMs to rewrite history into summaries, facts, or knowledge graphs—a step that is (a) costly (thousands of generative calls per build), (b) non-deterministic (undermining reproducibility and giving inconsistent answers across runs), and (c) provenance-erasing (the reader sees synthesized text, not the original turn).

摘要:长周期大语言模型(LLM)智能体需要持久的记忆,以便在数千轮对话中适时呈现正确的历史交互。许多系统通过调用生成式 LLM 将历史记录重写为摘要、事实或知识图谱来进行索引——这一步骤存在以下问题:(a) 成本高昂(每次构建需数千次生成式调用),(b) 非确定性(破坏了可重复性,且在不同运行中产生不一致的答案),以及 (c) 溯源缺失(读者看到的是合成文本,而非原始对话轮次)。

We propose MGMem, a framework with no generative indexing calls that replaces this step with a deterministic discriminative-parser pipeline: recurring mentions across sessions are organized into an incidence graph, question mentions are resolved by a subject-conditioned three-stage resolver, and raw dialogue episodes are returned to the reader.

我们提出了 MGMem,这是一个无需生成式索引调用的框架,它用确定性的判别式解析器流水线取代了上述步骤:跨会话的重复提及被组织成关联图,问题提及由基于主题的三阶段解析器解决,原始对话片段则直接返回给读者。

On English multi-session dialogue QA, MGMem outperforms matched-protocol baselines on LoCoMo without generative indexing calls; on the full LongMemEval-S, it remains competitive overall and leads or ties on single-session types among local retrieval comparisons.

在英语多会话对话问答任务中,MGMem 在无需生成式索引调用的情况下,在 LoCoMo 上优于匹配协议的基准模型;在完整的 LongMemEval-S 评估中,它总体上保持了竞争力,并在局部检索比较的单会话类型中处于领先或持平地位。