MGMem: An Efficient, Deterministic, and Provenance-Preserving Framework for Long-Horizon Agent Memory
Junhong Huang, Xin Tong, Jun Xia
Key points
From the paper's conclusion- 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.
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). 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. 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. Code: https://github.com/junhong-h/MGMem
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Forget Freely, Grep Later: Lossless, Index-Free Memory for Long-Horizon LLM AgentsarXiv · 2026
- MEMOIR: A Training-Free Memory Lifecycle for Long-Horizon LLM AgentsarXiv · 2026
- Mem++: Non-Destructive Memory for Long-Term Organizational LLM AgentsarXiv · 2026
- Remember by Asking: Retrieval-Induced Memory Evolution for LLM AgentsarXiv · 2026
- DISCERN: Preserve at Write, Resolve at Read for Persistent LLM-Agent MemoryarXiv · 2026
- MIRIX-2.0: Multi-Agent Memory SystemarXiv · 2026