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.
Methods
ROAM addresses this by factorizing memory management into two distinct stages: explicit relation inference followed by deterministic policy execution.
- 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:
- Independent (IND): Both facts can coexist without entailment.
- Equivalent (EQV): Both facts share the same truth conditions.
- Old Subsumed by New (OSN): The new fact strictly entails the old one and adds specificity.
- New Subsumed by Old (NSO): The old fact strictly entails the new one.
- Conflict (CON): The facts describe incompatible states for the same single-valued attribute.
- 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.
- 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.
The exact deterministic mappings for role and view updates based on these relations are outlined below:
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).
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