arXiv:2610.11314cs.CLOct 2026

Manuscript Offprint

arXiv:2610.11314

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

Zirui Liao, Zhengxian Wu, Zhuohong Chen, Yunyao Yu, Xiaoyu Liu, Yifan Xu, Haoqian Wang

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^{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.

1 Introduction

The evolution of Large Language Models (LLMs) from stateless text generators to autonomous personal agents has created an urgent need for persistent, high-quality memory (Wang et al., 2024; Xi et al., 2025). While recent advancements in scaling context windows (Team et al., 2024) allow models to buffer vast amounts of recent interaction, extended context alone cannot capture the structured, evolving nature of human biography. True long-term intelligence requires not just storage, but the ability to reconstruct narratives, extract key insights, and understand social contexts of multi-speaker environments (Tulving, 1972).

Despite this need, current approaches predominantly follow a paradigm of passive retrieval. Standard Retrieval-Augmented Generation (RAG) (Lewis et al., 2020) and early memory systems typically vectorize text chunks into a flat index. We argue that this "store-and-retrieve" paradigm has two key limitations. First, vector-based methods can suffer from a failure mode that we call Semantic Collapse. In a dense vector space, an event record (e.g., "Jon lost his job") and a subjective opinion about it (e.g., "Gina thinks Jon's job loss is a mistake") often become very similar due to high semantic overlap. This can cause memory contamination, where an attributed opinion is returned as if it were an unqualified record, undermining Theory-of-Mind reasoning (Rabinowitz et al., 2018). A controlled probe in Section 3.1 illustrates this failure mode: matched fact–claim pairs have an average BGE-M3 cosine similarity of 0.8231, and flat retrieval misattributes the speaker's opinion as the requested record in 64 of 150 cases (42.7%). Second, static retrieval pipelines lack intentionality. Complex dialogue reasoning often requires connecting information across time. A rigid retrieval algorithm cannot dynamically adjust its search strategy based on intermediate results, failing to perform the multi-hop reasoning required for deep understanding (Press et al., 2023).

To address these issues, we propose CogMem, a schema-aware cognitive architecture that shifts the design philosophy from passive retrieval to agentic active recall. Inspired by the Complementary Learning Systems (CLS) theory (Kumaran et al., 2016), CogMem unifies memory storage and reasoning through a novel PEC 2^{2}F (Person-

Figure

Figure 1: The Paradigm Shift from Passive Retrieval to Active Reconstruction. Left (traditional RAG and flat memory): passive retrieval over coarse text chunks introduces noise and may miss relevant counter-evidence. Even when a related statement is retrieved, the flat representation obscures its source and can cause the LLM to treat an attributed opinion as an unqualified record. Right (CogMem): a PEC 2^{2}F cognitive graph supports active reconstruction, allowing the agent to attribute conflicting viewpoints to their sources and synthesize an evidence-grounded answer.

Event-Concept-Claim-Fact) schema. To activate this structure, we implement a Cognitive Search Agent based on the ReAct framework (Yao et al., 2023). Instead of static matching, the agent uses graph operators—such as intersection and temporal scanning—to actively navigate the memory space, reconstructing answers through dynamic reasoning paths.

We evaluate CogMem on the LoCoMo (Maharana et al., 2024) and LongMemEval (Wu et al., 2025) benchmarks. CogMem outperforms strong baselines, including LightMem (Fang et al., 2025) and General Agentic Memory (Yan et al., 2025), particularly on multi-hop, temporal, and knowledge-update tasks. Our novelty is primarily architectural and representational: CogMem operationalizes Theory of Mind and complementary episodic–semantic learning within a unified, training-free retrieval system rather than proposing an isolated new graph primitive.

In summary, our contributions are threefold:

• Epistemic Completeness through the PEC 2^{2}F Schema. We propose a cognitive schema where the Attributed–Unattributed Distinction is modeled through the C2C^{2} components: Concepts for semantic grounding and Claims for epistemic attribution. This structurally addresses the problem of Semantic Collapse.

• Dynamic Stability through Memory Consolidation. We implement a memory evolution mechanism that dynamically combines sparse episodic traces ( VEV_{E}) into dense semantic knowledge ( VFV_{F}) using an Evidence Mounting strategy. This provides semantic shortcuts while retaining links to granular source evidence, reducing reasoning overhead.

• Active Plasticity with Agentic Recall. We shift the retrieval paradigm from static pipelines to agentic active recall. We design a Cognitive Search Agent equipped with graph operators to navigate the graph, achieving strong performance in multi-hop and temporal reasoning tasks.