AnchorMem: Anchored Facts with Associative Contexts for Building Memory in Large Language Models

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Shen, Zhanyu, Cheng, Sijie, Guo, Zhicheng, Wang, Weiqin, Wang, Yile, Huang, Hui
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917420437864448
author Shen, Zhanyu
Cheng, Sijie
Guo, Zhicheng
Wang, Weiqin
Wang, Yile
Huang, Hui
author_facet Shen, Zhanyu
Cheng, Sijie
Guo, Zhicheng
Wang, Weiqin
Wang, Yile
Huang, Hui
contents While large language models have achieved remarkable performance in complex tasks, they still need a memory system to utilize historical experience in long-term interactions. Existing memory methods (e.g., A-Mem, Mem0) place excessive emphasis on organizing interactions by frequently rewriting them, however, this heavy reliance on summarization risks diluting essential contextual nuances and obscuring key retrieval features. To bridge this gap, we introduce AnchorMem, a novel memory framework inspired by the Proust Phenomenon in cognitive science, where a specific anchor triggers a holistic recollection. We propose a method that decouples the retrieval unit from the generation context. AnchorMem extracts atomic facts from interaction history to serve as retrieval anchors, while preserving the original context as the immutable context. To reveal implicit narrative cues, we construct an associative event graph that uses higher-order event links that bind sets of related facts into shared event representations, strengthening cross-memory integration without relying on generic entities as bridges. During retrieval, the system anchors queries to specific facts and events to locate relevant memories, but reconstructs the context using the associated raw chunks and events. Our method reconciles fine-grained retrieval with the contextual integrity of interactions. Experiments across three closed-source and open-source models on the LoCoMo benchmark demonstrate that AnchorMem significantly outperforms baselines. Code is available at https://github.com/RayNeo-AI-2025/AnchorMem.
format Preprint
id arxiv_https___arxiv_org_abs_2604_17377
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle AnchorMem: Anchored Facts with Associative Contexts for Building Memory in Large Language Models
Shen, Zhanyu
Cheng, Sijie
Guo, Zhicheng
Wang, Weiqin
Wang, Yile
Huang, Hui
Computation and Language
While large language models have achieved remarkable performance in complex tasks, they still need a memory system to utilize historical experience in long-term interactions. Existing memory methods (e.g., A-Mem, Mem0) place excessive emphasis on organizing interactions by frequently rewriting them, however, this heavy reliance on summarization risks diluting essential contextual nuances and obscuring key retrieval features. To bridge this gap, we introduce AnchorMem, a novel memory framework inspired by the Proust Phenomenon in cognitive science, where a specific anchor triggers a holistic recollection. We propose a method that decouples the retrieval unit from the generation context. AnchorMem extracts atomic facts from interaction history to serve as retrieval anchors, while preserving the original context as the immutable context. To reveal implicit narrative cues, we construct an associative event graph that uses higher-order event links that bind sets of related facts into shared event representations, strengthening cross-memory integration without relying on generic entities as bridges. During retrieval, the system anchors queries to specific facts and events to locate relevant memories, but reconstructs the context using the associated raw chunks and events. Our method reconciles fine-grained retrieval with the contextual integrity of interactions. Experiments across three closed-source and open-source models on the LoCoMo benchmark demonstrate that AnchorMem significantly outperforms baselines. Code is available at https://github.com/RayNeo-AI-2025/AnchorMem.
title AnchorMem: Anchored Facts with Associative Contexts for Building Memory in Large Language Models
topic Computation and Language
url https://arxiv.org/abs/2604.17377