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

–arXiv.org Artificial Intelligence 

While large language models have achieved remarkable performance in complex tasks, they While extending context windows can partially mitstill need a memory system to utilize histori-igate context loss, this approach incurs substancal experience in long-term interactions. Ex-tial computational costs and leaves LLMs suscepisting memory methods (e.g., A-Mem, Mem0) tible to the Lost-in-the-Middle phenomenon durplace excessive emphasis on organizing inter-ing long-term, multi-turn interactions (Liu et al., actions by frequently rewriting them, however, 2024; Laban et al., 2025). Memory systems enthis heavy reliance on summarization risks di-able LLMs to aggregate and synthesize relevant luting essential contextual nuances and obscur-cues in a training-free manner, facilitating contining key retrieval features. To bridge this gap, we introduce AnchorMem, a novel memoryual adaptation during interactions with the environframework inspired by the Proust Phenomenonment. Such capabilities are paramount for mainin cognitive science, where a specific anchortaining consistency across prolonged interactions or complex tasks (Kang et al., 2025).triggers a holistic recollection. We propose a method that decouples the retrieval unit from Recent work, motivated by principles from huthe generation context. AnchorMem extractsman cognition (Fang et al., 2025; Gutiérrez et al., atomic facts from interaction history to serve 2025) and knowledge management (Xu et al., 2025; as retrieval anchors, while preserving the original context as the immutable context. To Kang et al., 2025), increasingly designs memreveal implicit narrative cues, we constructory for LLMs in a hierarchical manner, separatan associative event graph that uses higher-ing storage, consolidation, and retrieval to suporder event links that bind sets of related factsport long-horizon behavior. However, these apinto shared event representations, strengtheningproaches encounter significant limitations in maincross-memory integration without relying ontaining contextual integrity and retrieval precision generic entities as bridges.