From Retrieval to Reconstruction: Constructing Evolvable Cognitive Memory for Long-Term Dialogue

Zirui Liao, Zhengxian Wu, Zhuohong Chen, Yunyao Yu, Xiaoyu Liu +2 more
10/8/2026
cs.CL

Official code: Silent-Rain02/CogMem (0 stars, MIT, last commit 2026-08-23).

Abstract

Large Language Models (LLMs) serving as long-term dialogue agents require memory systems that support reliable reasoning over extended interactions. However, existing Retrieval-Augmented Generation (RAG) frameworks typically treat memory as passive storage, making it difficult to distinguish source-attributed beliefs from unattributed event/fact records and to connect evidence dispersed across sessions. We introduce CogMem, a cognitive memory architecture based on the PEC$^2$F (Person-Event-Concept-Claim-Fact) graph schema. Dedicated Claim nodes preserve the source and target of subjective statements, while Fact and Event nodes represent semantic and episodic knowledge. Dialogue turns are incrementally converted into provenance-aware graph records, consolidated into higher-level facts, and reconciled into temporally scoped Claim views when the same source provides conflicting updates. For retrieval, a rule-based controller driven by LLM intent parsing composes four deterministic graph operators---anchoring, traversal, intersection, and evidence grounding---to reconstruct query-relevant context. Experiments on LoCoMo and LongMemEval show strong performance, especially on multi-hop, temporal, and knowledge-update tasks. Ablations and a semantic-collapse probe support complementary contributions from epistemic separation, consolidation, and agentic retrieval. Code: https://github.com/Silent-Rain02/CogMem.

View on arXivView PDF

Code Implementations(1)

MIT

Repo for CogMem

00PythonNov 21, 20251 months agoMIT

Similar Papers

Cite this paper

@article{liao2026from,
  title  = {From Retrieval to Reconstruction: Constructing Evolvable Cognitive Memory for Long-Term Dialogue},
  author = {Zirui Liao and Zhengxian Wu and Zhuohong Chen and Yunyao Yu and Xiaoyu Liu and Yifan Xu and Haoqian Wang},
  year   = {2026},
  eprint = {2610.11314},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.11314v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.11314.svg)](https://codeofpaper.com/paper/2610.11314)

Discussion