ROAM: Robust Organization of Atomic Memories for Agents through Semantic Relations

Jianjie Zheng, Peng Lai, Sijie Cheng, Jiehui Zhao, Lei Yang, Guanhua ChenarXiv 2026

TL;DR

ROAM (Robust Organization of Atomic Memories) is a novel framework that improves long-term memory management for LLM agents by decoupling semantic relation inference from physical storage decisions. By categorizing memory pairs into explicit semantic relations and fusing them into compact "read views," ROAM eliminates redundancy and context pollution, boosting downstream answer accuracy by up to 29.8 percentage points.

What Problem Does This Paper Address?

Long-lived LLM agents need external memory to maintain user preferences and context across multiple sessions. To maximize retrieval precision, modern systems break down raw dialogues into fine-grained "atomic facts." However, as these facts accumulate, they inevitably become redundant, overlap, or conflict with one another.

Existing memory management methods typically rely on an LLM manager to directly execute CRUD-like operations (ADD, UPDATE, DELETE) on incoming memories. The authors argue that this couples semantic interpretation, storage decisions, and content generation into a single, error-prone black-box operation. This often leads to unstable updates, an overloaded model, and the permanent loss of historical context.

Figure 1: Motivation for ROAM. Existing methods ask the model to directly choose a memory operation for each old–new memory pair, making the task complex and the results unreliable. ROAM first identifies the semantic relations between memories, then uses them to guide memory organization and fusion, making memory management more controllable and accurate.

Methods

ROAM addresses this by factorizing memory management into two distinct stages: explicit relation inference followed by deterministic policy execution.

  1. Semantic Relation Inference: For every incoming observation, ROAM retrieves the top-$K$ relevant old memories and uses a relation model to classify the pair into one of five fine-grained semantic relations:
  2. Independent (IND): Both facts can coexist without entailment.
  3. Equivalent (EQV): Both facts share the same truth conditions.
  4. Old Subsumed by New (OSN): The new fact strictly entails the old one and adds specificity.
  5. New Subsumed by Old (NSO): The old fact strictly entails the new one.
  6. Conflict (CON): The facts describe incompatible states for the same single-valued attribute.
  7. Role Assignment & Memory Consolidation: Instead of deleting records, a fixed policy assigns memories to structural roles. The most informative fact is promoted to a Primary (active) role, while superseded or supporting facts are relegated to an Evidence (inactive) role. Evidence records are preserved for historical provenance but do not compete during answer-time retrieval.
  8. Memory Fusion: A fusion module synthesizes compatible details and temporal changes from the Primary and Evidence records into a single, compact "read view" for retrieval.
Figure 2: Overview of the ROAM Framework. ROAM separates memory management from answer-time retrieval. Incoming atoms are compared with Primary atomic texts and assigned Primary or Evidence roles through five-way relation inference. Fusion constructs a read view for each surviving Primary; answer-time retrieval searches only these views, while Evidence remains preserved but inactive.

The exact deterministic mappings for role and view updates based on these relations are outlined below:

Table 1: Relation-conditioned memory updates. Atomic text remains immutable. Role Update denotes the deter- ministic mapping.

Datasets

The authors evaluated ROAM across three distinct evaluation settings using various manager models (Gemma and Qwen families):

  • LongMemEval: A standard benchmark consisting of 500 long-horizon interactive memory questions.
  • LongMemEval Controlled: A newly introduced variant created by the authors using 470 questions with gold-memory annotations. It holds answer-critical memories fixed while systematically varying the number of semantic and temporal confounders ($N \in \{0, 2, 4, 6, 8\}$) to test robustness under heavy retrieval interference.
  • MEME-Post: A dataset containing 694 post-change questions designed to evaluate multi-entity memory and state-update tracking over time.
  • PersonaMem-v2: A subset of 843 manually verified memory pairs used specifically to evaluate the accuracy of the five-way relation inference.

Key Insights and Ideas

  • Decoupling is Key: Separating what the relationship is (semantic judgment) from what to do with it (storage policy) makes memory management significantly more controllable and robust against model scaling limitations.
  • Preservation over Deletion: Keeping old or superseded facts as "Evidence" maintains a clean audit trail and historical provenance without polluting the active context budget during question answering.
  • The Power of Fusion: Simply organizing roles isn't enough; fusing overlapping or evolving facts into a single dense "read view" prevents multiple atomic facts from competing against each other during retrieval, maximizing the utility of limited context windows.

Key Results

  • Robustness to Interference: In the controlled setup with high interference ($N=8$), ROAM outperformed the strongest baselines by up to 29.8 percentage points. While baseline methods plummeted in accuracy as confounders increased, ROAM remained highly stable.
  • Better Context Quality: Diagnostic analysis showed that ROAM achieved a 15.6-point higher recall of answer-critical gold sources and reduced the share of useless confounder tokens in the context window by 11.5 points.
  • Model and Budget Resilience: ROAM consistently provided performance gains regardless of the manager model's size (scaling from 4B to 26B parameters) or the size of the memory-context budget (tested at 128, 256, and 512 tokens).
Figure 3: Manager-model scale sensitivity. The hor- izontal axis varies the Gemma-4 manager from E4B to 26B-A4B; the vertical axis reports answer accuracy. Pan- els show N ∈{0, 4, 8}, with all other components fixed.
Memory-context budget sensitivity across different token limits.

Limitations and Future Work

  • Benchmark vs. Real-world Complexity: The evaluation relies on benchmark histories with fixed retrieval budgets. Real-world deployments might exhibit highly variable stream lengths, higher update frequencies, and greater conversational complexity.
  • Granularity Restrictions: ROAM currently operates strictly on short, extracted atomic factual units. The authors note that extending this relation-guided Primary-Evidence architecture to hierarchical, event-level, or richer structured memory representations remains an open direction for future research.

Summary updated

BibTeX
@misc{zheng2026roam,
  author = {Jianjie Zheng and Peng Lai and Sijie Cheng and Jiehui Zhao and Lei Yang and Guanhua Chen},
  title = {{ROAM: Robust Organization of Atomic Memories for Agents through Semantic Relations}},
  year = {2026},
  eprint = {2609.09778},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.09778},
}
Figure