NeurIPS 2026QuestionsPapersAreasAboutMarkdown

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

Junhong Huang, Xin Tong, Jun Xia

NeurIPS page · Open on the map

Category: LLM Reasoning, Memory & RAG › Reasoning Trace Memory Systems · Type: new method · Keywords: LLM agent memory, deterministic indexing, provenance preservation, discriminative parser, long-horizon dialogue

Areas: Memory › Agent Memory Systems › Agent Memory; Long Context › Long-context mechanisms › Agent memory representations; AI Agents › Agent Capabilities › LLM Agent Memory

Summary

MGMem is an efficient, deterministic, provenance-preserving framework that replaces costly generative LLM indexing with a discriminative parser pipeline for long-horizon LLM agents.

Explained to a 5-year-old

Long-time talking robots need to remember what happened before. Right now they ask a big computer to make a short story, which is slow, sometimes different each time, and loses the original words. This paper makes a new system that works like a smart index: it draws a picture of what was mentioned, answers questions in a simple way, and keeps the original chat. This makes the robot’s memory faster, reliable, and keeps the original words. It helps the robot give better answers without using a lot of computer power.

Explained to a 5-year-old, longer

Imagine a robot that talks with people for a long time and needs to remember what was said before. When it wants to find something from the past, it currently asks a big computer to write a short summary of the conversation. This summarizing step takes a lot of computer time and uses many words. It also can give different answers each time, which makes the robot unreliable. Plus, the robot loses the original words, so it cannot show exactly what was said before. The new system avoids using that big computer for summarizing. Instead, it builds a simple map that shows which words appear together many times. It then uses that map to answer questions by looking at the original chat. The robot can quickly find the right piece of conversation without making a new summary. This makes the memory fast, always the same, and keeps the original conversation intact. It also helps the robot give answers that are easy to trust. Overall, the robot can remember and retrieve past talks more efficiently and accurately.

For a technical reader

MGMem replaces generative LLM summarization with a deterministic parser that builds an incidence graph of mentions and resolves queries via a subject-conditioned resolver, eliminating costly LLM calls. It retains raw dialogue episodes, preserving provenance and ensuring reproducible indexing. On the LoCoMo benchmark, the framework outperforms baseline memory generation and retrieval without any generative indexing. On the broader LongMemEval-S suite, it remains competitive overall and leads on single-session question types. This approach provides a scalable, reliable memory solution for long-horizon LLM agents.

Problem

Long-horizon LLM agents need persistent memory that can retrieve relevant past interactions, but current methods rely on generative LLMs to summarize history, which is costly, non-deterministic, and loses provenance.

Method

The approach uses a deterministic discriminative-parser pipeline that builds an incidence graph of recurring mentions, resolves question mentions via a subject-conditioned three-stage resolver, and returns raw dialogue episodes without generative indexing.

Results

The approach achieves superior performance on LoCoMo compared to baseline memory generation and retrieval methods without any generative indexing, and on LongMemEval-S it stays competitive overall and leads on single-session question types.

Contributions

It introduces a deterministic, provenance-preserving memory indexing pipeline that eliminates costly LLM calls, organizes mentions into an incidence graph, resolves queries with a subject-conditioned resolver, and retains raw dialogue episodes.

Research questions this paper is counted under

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction