DUNE: Keeping Derived Memories Consistent with Changing Facts

Kexin Ma, Meng Zhang, Shenglin Chen, Changwu Zhang, Shixuan Liu, Ruochun JinarXiv 2026

TL;DR

When an AI agent's memory gets updated—say, a meeting moves 30 minutes earlier—it might update the meeting time, yet still repeat an old, cached conclusion like "leave at 15:15" because nobody explicitly told it to recalculate. This paper frames that hidden trap as derived memory maintenance (DMM) and introduces DUNE, a graph-based memory system that tracks how conclusions depend on source facts and propagates updates to retire stale answers. On a new 3,200-scenario benchmark (DRM-bench), DUNE boosts derived-update accuracy to 73.6%, outperforming existing memory systems by over 12 points.

What Problem Does This Paper Address?

Long-term memory lets LLM agents remember user facts, past events, and workflows across sessions. Existing memory systems (like Mem0, A-MEM, or MemoryBank) focus on updating isolated pieces of evidence when new information arrives.

The catch is that agents often write their own past answers back into memory. If you tell an assistant your meeting is at 16:00 and the commute takes 45 minutes, it answers "leave at 15:15" and stores that answer. Later, you move the meeting 30 minutes earlier (to 15:30). Even if the agent updates the meeting time, a standard memory retriever will still pull up the old, high-similarity "leave at 15:15" note and repeat it.

Figure 1: Running example. Session 1 produces a written-back answer E3 from E1 and E2; Session 2 supplies an update U that supersedes the old E1 but does not directly revise E3.

Drawing an analogy to materialized views in databases, the authors call these downstream conclusions derived memories. Keeping them consistent—derived memory maintenance (DMM)—is hard because dependencies in natural language are implicit, and deciding how far an update should ripple without breaking unrelated facts is nontrivial.

Methods

The authors propose DUNE (Derived memory Updating through Networked Evidence), which alternates between two stages:

  1. Incremental Graph Construction: A dependency parser breaks stored utterances into proposition-level nodes and links them with four typed edges: SUPPORTS (compatible evidence), CONTRADICTS (incompatible values for the same state), DEPENDS-ON (a derived conclusion relying on a premise), and SUPERSEDES (a newer fact replacing an older one).
  2. Full-Graph Update Propagation: Every node carries two continuous scores in $[0, 1]$: validity (how strongly evidence supports it) and currentness (whether it still applies to the present state). At each checkpoint, DUNE minimizes a weighted hinge-loss objective over all nodes and edges—first solving for validity, then for currentness—so that when a source node is superseded, any DEPENDS-ON child automatically loses currentness. Retrieval then ranks nodes by their activity ($v_i^* c_i^*$), ensuring only valid and current evidence surfaces.
The four dependency factors and two-stage full-graph inference

Datasets

The authors introduce DRM-bench, a benchmark of 3,200 two-session scenarios across three memory types:

  • Semantic (SE): 2,400 scenarios drawn from QA datasets (Natural Questions, TriviaQA, SQuAD, HotpotQA, and RACE).
  • Episodic (EP): 400 scenarios grounded in EpBench (default, world-news, and science-fiction settings).
  • Procedural (Tool): 400 scenarios built from ToolBench, testing updates to tool-use plans.

Unlike prior benchmarks that test retrieval or direct fact updates, DRM-bench writes each model's actual Round 1 answers back into memory before Session 2 updates the source, directly testing whether systems fall for their own stale conclusions. The authors also evaluate on external benchmarks: belief_r, MEME (Cascade and Deletion), and MemoryAgentBench.

Key Insights and Ideas

  • Memory can make agents worse: Without external memory, an LLM recomputes from the latest context; with naive memory, it retrieves its own stale cached answer.
  • Associative linking isn't enough: Strong baselines like A-MEM link related memories and score well on source updates (84.5%), but still lag 12.2 points behind DUNE on derived updates (61.4% vs. 73.6%) because they lack explicit dependency propagation.
  • Separating validity from currentness matters: Replacing a fact shouldn't erase the fact that it was historically supported; separating validity and currentness lets DUNE retire obsolete conclusions cleanly.
  • Procedural workflows are a different beast: On ToolBench scenarios, DUNE's advantage over RAG baselines shrinks (65.3% vs. 60.5%), because updating tool plans requires preserving call order and branching conditions, not just retiring individual nodes.

Key Results

  • On DRM-bench (macro-averaged across SE, EP, and Tool), DUNE achieves 52.0% F1, 84.8% SourceUpdate, and 73.6% DerivedUpdate—improving over the average baseline by 9.6, 22.2, and 22.5 points, respectively.
  • DUNE's DerivedUpdate lead is largest on episodic memory (89.3% vs. 79.8% for the best baseline, Hash RAG).
  • In error analysis, DUNE achieves the highest macro-average PropagationAccuracy (69.7%) and lowest OldAnswerResidual (2.4%), meaning it rarely repeats obsolete Round 1 answers.
  • On external benchmarks, DUNE outperforms prior baselines on MEME Cascade (8.54% vs. 5%) and MEME Deletion (44.00% vs. 27%), and ranks second on MemoryAgentBench SF (34.00% vs. 54% for HippoRAG v2).

Limitations and Future Work

  • Graph extraction quality: Manual annotation of random scenarios showed a mean F1 of 56.16% for nodes and 37.38% for edges, indicating room to improve proposition and dependency parsing.
  • Token and memory overhead: In a 50-scenario cost profile, DUNE used more input tokens per scenario (11,149.76 vs. 3,524.76 for BM25) and higher peak memory (1,736 MiB vs. 758 MiB), though local graph solving itself took only 0.0156 seconds per scenario.
  • Future directions: The authors suggest refining node and edge extraction and parameterizing the propagation mechanism across a broader range of scenarios.

Summary updated

BibTeX
@misc{ma2026dune,
  author = {Kexin Ma and Meng Zhang and Shenglin Chen and Changwu Zhang and Shixuan Liu and Ruochun Jin},
  title = {{DUNE: Keeping Derived Memories Consistent with Changing Facts}},
  year = {2026},
  eprint = {2612.03740},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2612.03740},
}
Figure