arXiv:2609.09778cs.CLSep 2026

Manuscript Offprint

arXiv:2609.09778

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

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

Abstract

Long-term language-model agents rely on external memory across interactions. Atomic memories are particularly useful: their fine-grained semantic boundaries enable precise retrieval and direct comparison between observations. Yet accumulating atoms inevitably become redundant, overlapping, or conflicting. Existing methods often ask an LLM manager to add, update, delete, or rewrite memories directly, coupling semantic interpretation, storage decisions, and content generation in one error-prone operation. We introduce ROAM, a relation-guided framework that uses atomicity for management while allowing richer answer-time representations. ROAM classifies incoming-stored atom pairs as independent, equivalent, directionally subsuming, or conflicting, then organizes observations into active Primary and supporting Evidence roles. Fusion subsequently combines complementary details and temporal changes into compact, potentially non-atomic views. Only Primary views are retrieved for answering, preventing redundant or outdated atoms from competing independently. Across models and evaluation settings, ROAM improves answer accuracy by up to 29.8 percentage points. Ablations show complementary benefits from different relations and consistent gains from fusion beyond role organization. Mechanism analysis further finds 15.6-point higher answer-critical source recall and an 11.5-point lower confounder-token share. ROAM remains robust across manager scales.

1 Introduction

Long-lived language-model agents must continuously accumulate user preferences, circumstances, and experiences across sessions while seamlessly revising that knowledge as real-world states change (Sun et al., 2026; Zhong et al., 2024).

Figure

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.

Because raw conversational histories rapidly exceed an agent's working context limit, contemporary architectures maintain external memory stores to retrieve relevant historical subsets at query time (Zhong et al., 2024; Maharana et al., 2024; Tan et al., 2025). To maximize retrieval precision under strict context budgets, systems increasingly represent durable knowledge as fine-grained, atomic facts or structured relations (Modarressi et al., 2024; Gutiérrez et al., 2024; Chhikara et al., 2025; Shen et al., 2026). Compared to storing full dialogue transcripts, atomic representations preserve key salient information in significantly fewer tokens, provide precise addressable units, and enable targeted updating. Consequently, atomization has become the standard representational foundation for long-term memory systems.

However, atomization specifies only the granularity of memory—it does not govern how accumulating atomic facts should coexist over time as information evolves. Continuous streaming of atomic observations inevitably introduces semantic restatements, spatial or attribute refinements, and temporal state transitions. Merely appending every observation creates severe redundancy and ambiguity, while indiscriminate deletion or over-

∗^{*} Equal Contribution.

†^{\dagger} Corresponding Author.

writing destroys the historical context needed to trace knowledge evolution. Crucially, uncurated, overlapping, and outdated records directly compete with answer-critical evidence for limited retrieval capacity, degrading downstream response quality (Liu et al., 2024; Amiraz et al., 2025). Existing approaches attempt to maintain growing memory stores through imperative, direct-operation mechanisms (e.g., predicting actions like ADD, UPDATE, or DELETE) (Chhikara et al., 2025). Yet, such paradigms force the model to infer underlying semantic relations, map them to physical storage mutations, and coordinate updates in a single, black-box compound decision. Conflating semantic interpretation with physical storage execution makes operational consequences unstable and hinders historical traceability. Instead of relying on end-to-end storage mutations, effective atomic memory management requires decoupling explicit semantic relation inference from deterministic state control.

We introduce ROAM (Robust Organization of Atomic Memories for Long-Lived Agents through Semantic Relations), a framework that factorizes this compound decision into explicit relation inference followed by deterministic policy execution. For each incoming observation, ROAM predicts one of five fine-grained semantic relations (IND, EQV, OSN, NSO, CON) against existing memories. A fixed policy then assigns memories into structural roles—promoting the most informative fact to Primary status while retaining supporting or superseded facts as Evidence. Finally, a fusion module synthesizes compatible details into a compact read view for each Primary entry, allowing downstream retrieval to search exclusively over Primary views. By replacing black-box mutations with relation-guided control, ROAM eliminates redundancy while preserving historical provenance for optimal query answering.

We evaluate ROAM in three complementary settings: a controlled intervention that varies semantic and temporal competition, the original long-horizon histories in LongMemEval (Wu et al., 2025), and post-change questions involving multiple entities in MEME-Post (Jung et al., 2026). Across three manager models, ROAM achieves the highest mean accuracy at every nonzero level of added competition and on full LongMemEval, while consistently outperforming model-based management baselines on MEME-Post. Relation and fusion ablations show that equivalence, directional containment, conflict, and fused representa-

tions provide complementary gains; retrieval diagnostics further link ROAM’s robustness to greater coverage of answer-critical memories. Together, these results show that explicit relation-guided organization helps long-term memory systems sustain answer quality as semantic and temporal competition increases.