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

Know Where You Stand: Memory-Source Choice in Long-Context Dialogue Agents

Caishen Zhou, Yihong Tang, Xuefeng Bai, Kehai Chen, Min ZhangNeurIPS 2026

TL;DR

Giving an AI chatbot a long-term memory is great until yesterday’s preferences accidentally overwrite what you just told it five seconds ago. Current systems usually dump retrieved memories into the prompt alongside the current conversation and hope the model implicitly figures out which one to trust—spoiler: it often doesn't. This paper isolates this "memory-source choice" problem with a new benchmark (MSBench) and solves it with the Memory-Source Reasoner (MSR), a metacognitive framework that explicitly checks what’s missing from the current screen before deciding whether to dig into the archives.

What Problem Does This Paper Address?

Imagine planning a weekend with an AI assistant. On Tuesday, you asked about marine-science livestreams. Today, you say, "Actually, let’s choose between skateboarding and bear-cam streams," and then ask what would be fun this weekend.

To answer, the agent faces a fundamental source-choice problem: should it ground its response in the immediate visible context (the recent sliding window of chat) or retrieved prior memory (older turns stored in a vector database)?

Figure 1: Missed and unnecessary prior-memory use under source ambiguity.

Getting this wrong causes two complementary failures:

  1. Missed prior-memory use: Relying only on recent chat causes the agent to forget valid, aged-out details (like a breakfast idea from 50 turns ago).
  2. Unnecessary prior-memory use: Blindly retrieving old memories (standard RAG) pulls up Tuesday’s marine-science chat, distracting the model and overwriting your updated weekend plans with stale data.

Existing memory systems and benchmarks focus almost entirely on recall—can the needle be pulled from the haystack? They rarely test whether retrieval should be suppressed because the answer is already sitting right there in the current window.

Methods

Instead of concatenating retrieved memories with recent chat and hoping for the best, the authors introduce MSR (Memory-Source Reasoner), inspired by human metamemory ("knowing what you know"). MSR requires no specialized router training; instead, it uses two structured LLM calls per turn:

Figure 3: Overview of MSR. A reusable source-monitoring state guides source selection and the construction of branch-specific grounding contexts.
  1. Support Monitoring (Call 1): Given the user's question, the visible chat, and a small "hidden preview" of top-ranked prior memories, MSR breaks the question down into atomic requirements ("atoms"—specific facts, quantities, or temporal constraints). For each atom, it checks if a supporting turn exists in the visible context, the memory preview, both, or neither.
  2. Explicit Routing: MSR checks for an actionable support gap—an atom that has zero support in the visible chat, but is supported by the memory preview.
  3. Selection-Conditioned Grounding (Call 2): Rather than throwing away its monitoring notes, MSR reuses them to organize clean evidence for the final answer:
  4. If there is no gap (Visible Branch): It stays in the current chat, highlighting the exact supporting turns ("visible anchors") so nearby chatter doesn't distract the generator.
  5. If there is a gap (Prior-Memory Branch): It does a full retrieval ($k_r = 20$), restores the local user-assistant back-and-forth exchanges around the preview hits so context isn't lost, and leaves out the visible chat entirely to prevent cross-contamination.

Datasets

  • MSBench (Newly Introduced): Built from PersonaMem v2 dialogue scenes, MSBench replays conversations chronologically with a fixed visible window of the latest 16 turns (older turns enter an incrementally updated memory index; future turns stay hidden). Its secret sauce is same-checkpoint paired contrast: at each of the 450 checkpoints, it asks two questions on a similar topic—one answerable strictly from visible context, and one requiring prior memory (900 items total).
  • Transfer Evaluation: To prove this isn't just quirkily tuned to one dataset, the authors also evaluate on LongMemEval-M, LoCoMo (multi-session dialogue), and QMSum (multi-party meetings).

Key Insights and Ideas

  • The RAG Crossover Trap: Fixed policies fail symmetrically. Never retrieving ("No Memory") gets decent accuracy on recent context (50.7%) but flatlines on prior memory (5.3%). Always retrieving ("RAG") rescues prior memory (53.6%) but actively sabotages recent-context accuracy (dropping it to 41.3%) due to stale distractors.
  • Generic Tool-Calling Gates Aren't Enough: Simply giving an LLM a retrieval tool ("Prompted Gate") helps, but models are surprisingly conservative—missing needed prior memory 41% of the time—and still get confused when retrieved text mixes with visible chat.
  • How You Pack the Context Matters as Much as Routing: Ablations reveal a neat symmetry. Even when the right source is chosen, models still make mistakes. Highlighting specific anchor turns in visible chat prevents local distraction, while expanding retrieved memory snippets into full user-assistant exchanges prevents losing crucial context.
  • Knowing When to Say "I Don't Know": Because MSR tracks whether atoms are supported by either source, an extended version naturally knows when to abstain on unanswerable questions without tanking its answer rate on valid ones.

Key Results

  • MSBench Dominance: Across four major backbones (GPT-5-mini, Gemini 3.1 Flash-Lite, Qwen3 235B-A22B, and DeepSeek V4 Pro), MSR wins on both Overall Accuracy and Source-Selection Accuracy.
  • Primary Run (GPT-5-mini): MSR hits 60.0% overall accuracy and 81.7% selection accuracy—beating the best non-MSR baselines by +12.6 points in overall accuracy and +6.3 points in selection accuracy. Crucially, it improves both recent-context (61.7%) and prior-memory (58.3%) regimes simultaneously.
  • Outperforming Dedicated Memory Frameworks: On MSBench, MSR (60% accuracy) outperforms heavy-duty native memory systems like MemGPT (46%), MemOS (45%), mem0 (45%), LightMem (39%), and Nemori (38%), while running faster than most of them.
  • External Benchmarks: MSR takes first place on LongMemEval-M (72% answer accuracy), LoCoMo (80.7%), and QMSum (55.3%).

Limitations and Future Work

While the paper doesn't include a dedicated "Limitations" section in the main text (some extensions are tucked into the appendices), several practical trade-offs emerge from their analysis:

  • Token Overhead: Because MSR uses two LLM calls and processes a memory preview, it consumes more tokens per question (~7.6k tokens) compared to a standard Prompted Gate (~5.8k), though wall-clock latency remains nearly identical (~14.4s vs. 14.5s).
  • Binary Routing Boundaries: Standard MSR enforces a strict binary split—routing either to visible context or prior memory. Questions requiring simultaneous synthesis of both brand-new turns and ancient history, as well as unanswerable abstention cases, require the extended mixed-source/abstention variants explored outside the core binary loop (detailed in Appendix C.5).
  • Residual Grounding Errors: Even with MSR's 81.7% routing accuracy, a 40% overall wrong-answer rate remains on GPT-5-mini—mostly driven by "right source, wrong answer" mistakes like missing exact constraints or misreading nearby turns. Perfecting how models read the evidence once they arrive at the right source remains an open frontier.

Summary updated

BibTeX
@inproceedings{zhou2026know,
  author = {Caishen Zhou and Yihong Tang and Xuefeng Bai and Kehai Chen and Min Zhang},
  title = {{Know Where You Stand: Memory-Source Choice in Long-Context Dialogue Agents}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=hqutYPsYtb},
}
Figure