MGMem Replaces Generative Indexing with Deterministic, Provenance-Preserving Agent Memory
Summary:MGMem targets a central bottleneck in long-horizon LLM agents: retrieving relevant history across thousands of turns without paying for repeated generative indexing, losing reproducibility, and obscuring the original evidence. Its deterministic discriminative-parser pipeline organizes recurring cross-session mentions into an incidence graph, resolves question mentions with a subject-conditioned three-stage resolver, and returns raw dialogue episodes to the reader. The paper reports gains over m
Core Idea
MGMem replaces generative memory indexing with a deterministic discriminative-parser pipeline. Instead of asking an LLM to rewrite prior conversations into summaries, factual statements, or knowledge-graph triples, the system builds explicit mention relations and returns the original dialogue episodes to the reader.
This design targets three operational problems: repeated generative calls make memory construction expensive, generation introduces run-to-run variability, and synthesized statements can erase the context needed to trace an answer back to a specific turn. Determinism here applies to the indexing pipeline, not necessarily to the entire agent. The reader may still use a stochastic language model, so final answers can remain sensitive to sampling settings or model revisions.
Technical Mechanism
The pipeline has three main components:
- Cross-session mention modeling. A discriminative parser identifies recurring people, objects, or events across sessions and organizes them into an incidence graph. Rather than asking a generative model to infer arbitrary facts, the representation explicitly captures relationships among recurring mentions and avoids silently dropping qualifiers or inventing entities.
- Question-mention resolution. Question mentions are processed by a subject-conditioned, three-stage resolver. Subject conditioning helps distinguish entities that share names or aliases, while the staged process breaks retrieval into deterministic decisions. The abstract does not enumerate the three operators, so it would be premature to claim that they specifically implement entity linking, candidate ranking, and cross-session filtering.
- Raw-episode delivery. The reader receives matched dialogue episodes rather than only synthesized statements. An answer can therefore be traced back to concrete sessions and turns, making omissions, negation, and temporal context inspectable.
Engineering Trade-offs
Eliminating generative calls from indexing removes API expenditure, token usage, and prompt-version drift, but the work does not disappear. It shifts toward discriminative parsing, graph maintenance, and storage of the original conversation. If the parser produces M mentions and E relationships, graph metadata generally grows at approximately O(M+E), while the raw episodes still require storage proportional to the dialogue corpus. Query latency depends on graph layout, adjacency indexing, candidate truncation, and how the resolver traverses the graph; the available abstract does not establish a specific asymptotic or latency advantage.
Returning raw episodes is not always cheaper than returning summaries. A compressed fact may consume fewer reader-context tokens, whereas MGMem can inject several full episodes and increase prompt length and attention cost. For tasks requiring temporal qualifiers, conflicting accounts, or auditable evidence, however, the extra context can be justified.
Mention detection and subject resolution also become new failure points. Pronouns, aliases, identity changes, and implicit references can produce missing or incorrect graph edges. If a subject changes over thousands of turns, a static incidence graph can become stale. Production implementations therefore need stable identifiers for sessions, turns, subjects, and aliases, alongside versioned graph updates and re-parsing paths.
Benchmark Results and Evidence Boundaries
On English multi-session dialogue QA from LoCoMo, MGMem reports better results than matched-protocol baselines without generative indexing calls. Using a matched protocol reduces obvious unfairness caused by different model configurations, generation budgets, or prompts. On the full LongMemEval-S suite, the method remains competitive overall and leads or ties single-session categories among the local-retrieval comparisons.
The reported evidence remains incomplete. The abstract does not provide absolute scores, sample counts, variance, reader-model settings, generation budgets, index-build latency, per-query latency, storage overhead, or a complete ablation study. It is therefore impossible to isolate whether the gain comes primarily from the incidence graph, subject conditioning, or raw-evidence delivery. Nor can an advantage over local-retrieval comparisons be generalized to every global-memory architecture. The result is best treated as a promising, reproducible engineering direction rather than a universally validated memory architecture.
Deployment Guidance
- Standardize the data layer. Give sessions, turns, subjects, aliases, and mentions stable identifiers. Keep raw dialogue immutable and version the incidence graph and parser outputs separately.
- Run matched A/B tests. Compare MGMem with vector retrieval, summary-based indexing, and hybrid pipelines under the same reader model, prompt template, and token budget. Track answer quality, provenance-hit rate, build cost, P50/P95 query latency, and reader-context consumption.
- Ablate each mechanism. Disable the incidence graph, subject conditioning, and raw-episode delivery independently. Include adversarial cases involving alias conflicts, renamed subjects, long-range pronouns, and stale facts.
- Keep a hybrid fallback. For straightforward factual questions, return a compact structured candidate and attach raw evidence only when needed. For global synthesis, cross-session inference, or implicit-intent tasks, summaries may remain useful complements rather than being fully replaced.
- Instrument provenance. Log candidate sets, resolver decisions, rejected candidates, and cited episodes for every query. This makes it possible to distinguish mention-parsing failures from retrieval, subject-resolution, and reader-reasoning errors.
— END —Source: ArXiv NLP/LLM (cs.CL) (2026-11-27)
Tags: #Agent Memory #Deterministic Indexing #Provenance-Preserving Retrieval #Multi-Session Dialogue QA
Editorial & Fact-Checking Note: This article is compiled from primary research, official release documentation, and source papers by the ZICQ Newsroom pipeline with automated entity verification and human editorial review. If you notice any technical inaccuracy, please submit a correction via our corrections policy or email our editorial desk directly.
Community Comments