NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Knowing What is Missing: Efficient Conversational Memory via Explicit Evidence-Gap Tracking

Xingbo Du, Loka Li, Duzhen Zhang, Leonard SongNeurIPS 2026

TL;DR

Giving an AI agent a long-term conversational memory usually forces an ugly choice: stuff the entire chat history into the prompt (expensive, slow, and prone to distraction), or use standard search retrieval (cheap, but misses complex, multi-step clues). This paper introduces MemR$^3$, a smart, closed-loop memory controller that explicitly tracks what it knows and what it is still missing at every step. By absorbing facts into a compact checklist and discarding the noisy raw text, it beats or matches full-context accuracy while reading just 1% to 5% of the conversation.

What Problem Does This Paper Address?

Imagine trying to remember how many months passed between your friend adopting two different dogs over a year of daily text messages. If an LLM agent tries to answer this, it faces a fundamental system bottleneck as histories stretch into hundreds of thousands of tokens:

  • Full-Context Prompting: Dumping the entire chat log into the LLM guarantees the facts are in there somewhere, but it burns a massive number of tokens, spikes latency, and suffers from "lost in the middle" context dilution—where sheer noise trips up the model's math and timeline reasoning.
  • Retrieve-then-Answer (Vanilla RAG): Searching for the top few relevant snippets is cheap, but a single search pass easily misses multi-hop connections (e.g., Message A mentions adopting "another pup" in October, while Message B—sent later—actually names him "Buddy").
  • Implicit Multi-Step Retrievers: Recent agentic systems (like ReAct or Self-RAG) try to search iteratively. However, they typically append every newly retrieved text chunk onto an ever-growing scratchpad. Across multiple steps, the prompt balloons with distracting, irrelevant text right when the model needs sharp focus.
Comparison of Full-Context, Retrieve-then-Answer, and MemR3 on a temporal reasoning question

Methods

Instead of inventing a new database, the authors built MemR$^3$ (Memory Retrieval system with Reflective Reasoning)—a backend-agnostic controller that sits on top of whatever memory store you already use (like chunk-based RAG or graph-based Zep).

MemR$^3$ turns memory retrieval into an explicit, Markovian state machine—meaning the next decision depends only on a clean summary of current progress, not on a sprawling log of past searches. At each iteration, the LLM updates an Evidence-Gap State:

  1. Evidence ($\mathcal{E}_k$): Grounded, verified facts collected so far.
  2. Gaps ($\mathcal{G}_k$): A concrete list of what is still missing to answer the user's query.
Architecture of the MemR3 closed-loop controller

Conditioned on this compact state, a central router chooses one of three actions (guarded by simple safety budgets so it doesn't loop forever):

  • Retrieve: Formulates a targeted follow-up query ($\Delta q$) aimed specifically at the missing Gaps, skipping previously seen snippets.
  • Reflect: Pauses searching to reason over existing Evidence (e.g., deducing an approximate timeframe when an exact date doesn't exist).
  • Answer: Generates the final response strictly from the clean Evidence list once the gaps are closed.

The secret sauce is "Absorb and Discard." The moment newly retrieved text snippets are distilled into the Evidence-Gap state, the raw snippets are masked from all future prompts. The context window stays tiny and noise-free.

Datasets

MemR$^3$ is a query-time controller (no training required) and was evaluated on two established conversational benchmarks:

  • LongMemEval$_s$: A heavy-duty, long-horizon benchmark of 500 questions paired with conversations averaging ~115,000 tokens—used to stress-test token efficiency, latency, and accuracy.
  • LoCoMo: A diagnostic benchmark (~26,000 tokens per conversation) featuring multi-hop, temporal, open-domain, and single-hop questions to test plug-and-play reasoning across different memory backbones. (Note: The authors also identified and fixed a category-ID misalignment bug in LoCoMo's evaluation files).

Key Insights and Ideas

  • Searching more can make agents dumber—unless you take out the trash: On long conversations, standard multi-step retrievers (like Self-RAG) often scored worse than a single-pass vanilla RAG search because accumulated raw chunks drowned the LLM in noise. Disabling MemR$^3$'s "absorb and discard" masking caused accuracy on LoCoMo to plummet from 81.55% to 68.54%.
  • Transparent failure diagnostics: When black-box agents fail, it's hard to tell why. Because MemR$^3$ writes down its exact epistemic state, failures become inspectable. For instance, the authors uncovered "granularity bias"—where memory only states a painting was made "in 2022," the agent answers correctly, yet the loop refuses to close early because the Gap tracker stubbornly demands an exact calendar date.
  • Plug-and-play boost: Wrapping MemR$^3$ around completely different storage engines (vector chunks in RAG vs. temporal knowledge graphs in Zep) consistently boosted both, proving that how you control retrieval at query time is just as vital as how you store memories.

Key Results

  • LongMemEval$_s$ Accuracy & Efficiency: Tested across six frontier LLM backends (including GPT-4o-mini, GPT-4.1-mini, DeepSeek-V3.2, Claude-haiku-4.5, and Gemini-2.5-flash), MemR$^3$ beat all retrieval baselines across the board and outperformed Full-Context prompting on 5 out of 6 models (averaging 78.40% vs. Full-Context's 64.43%), while exposing only 1%–5% of the retrieved conversation tokens. (Only reasoning-heavy GPT-5-mini favored Full-Context at 87.20% vs. 82.60%).
  • Speedups: MemR$^3$ slashed LLM response latency by 50% to 82% compared to Full-Context across all six backends (e.g., dropping DeepSeek-V3.2 from 23.65s down to 4.33s).
  • LoCoMo Gains: With GPT-4.1-mini, MemR$^3$ boosted vanilla RAG overall accuracy by +7.29% (to 86.75%) and Zep by +1.94% (to 80.88%), shining brightest on tricky temporal (+8.62% over RAG) and multi-hop (+8.15%) questions.
Accuracy, token efficiency, and latency results on LongMemEvals

Limitations and Future Work

  • No "Undo" Button: Because raw snippets are masked after each step, any compression mistake made by the LLM when summarizing evidence becomes permanent. A human audit of 152 questions showed the state faithfully preserved critical evidence 81.4% of the time when retrieved, pointing to "provenance-guided replay" (a rollback mechanism) as a prime area for future work.
  • Garbage In, Garbage Out: MemR$^3$ is still bounded by the underlying retriever's recall—if the database never surfaces the right snippet, the controller can't magic it into existence.
  • Broad Summaries & Modality: Open-ended prompts like "summarize all major life changes" struggle with underspecified gap tracking and granularity mismatches. Finally, the system currently handles text-only conversations, leaving multimodal memories (images, audio, video) for the next chapter.

Summary updated

BibTeX
@inproceedings{du2026knowing,
  author = {Xingbo Du and Loka Li and Duzhen Zhang and Leonard Song and Le Song},
  title = {{Knowing What is Missing: Efficient Conversational Memory via Explicit Evidence-Gap Tracking}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=o9MB6dPOa4},
}
Figure