Manuscript Offprint

arXiv:2608.22310

HERO: Human-profile Enhanced Retrieval Optimization Framework for Long-term Agent Memory

Yuanhua Lin, Yile Li, Zhiyuan Zhao, Jing Shang, Jian Sun

Abstract

Long-term memory is crucial for personalized responses and long-horizon agent interactions. Existing methods often rely on LLMs to compress or rewrite dialogue histories and use the transformed memories as retrieval evidence. Despite the progress in organizing fragmented contexts, two major drawbacks persist: (1) information loss from compression, which discards fine-grained but later useful details, and (2) semantic drift from rewriting, which erodes the original tone and situated context. In this work, we propose a novel Human-profile Enhanced Retrieval Optimization framework for long-term agent memory (HERO). Specifically, HERO converts the dialogue history into a traceable heterogeneous memory graph that preserves raw dialogue text as evidence for reasoning, thereby mitigating information loss. For retrieval, HERO extracts initial anchors from the current query and incorporates human profiles via an iterative graph traversal; these anchors and profiles provide guidance signals that adaptively activate the most informative regions of the graph. Experiments on two benchmark datasets show that HERO outperforms strong baselines on both factual and personalized reasoning, while providing more faithful access to raw dialogue evidence.

1 Introduction

The improvement of Large Language Models (LLMs) has prompted the evolution of agents (Schlegel et al., 2025; Yang et al., 2024; Pantiukhin et al., 2025). Agent memory is a core capability for such systems, enabling agents to reuse experiences and sustain personalized long-term interactions (Zhang et al., 2025c; Fang et al., 2025a). A common implementation is Retrieval-Augmented Generation (RAG) (Lewis et al., 2020; Borgeaud et al., 2022), which retrieves historical context or external knowledge as model input. While RAG helps mitigate hallucination (Huang et al., 2025), it remains a memory mechanism that is decoupled from the reasoning process. The retrieved isolated text fragments lack inherent structured connections, leading to substantial redundancy and partially relevant content. Consequently, the standard RAG paradigm is akin to static knowledge access from an external knowledge base rather than a human-like memory system, and thus lacks the capacity for multi-turn, dynamic interaction and reasoning during the cognitive process.

To overcome the aforementioned bottlenecks, episodic long-term memory (Svoboda et al., 2006; Kasap and Magnenat-Thalmann, 2010; Pink et al., 2025) has emerged as a promising research direction. It focuses on the dynamic integration of memory and reasoning, aiming to achieve flexible activation, adaptive reorganization, and continuous evolution of memory. From the perspective of memory organization, existing methods can be broadly divided into summary-based and graph-based methods. Summary-based methods refine refine dialogue histories to generate summaries or human profiles (Team, 2023; Yu et al., 2024; Lee et al., 2024); graph-based methods extract memory elements (such as entities and keywords) or leverage LLMs to summarize text blocks, and represent temporal, causal, or semantic associations via relational edges (Sarthi et al., 2024; Gutierrez et al., 2024; Edge et al., 2024; Rezazadeh et al., 2025). These methods address the fragmented retrieval and redundancy inherent in RAG. Nevertheless, both approaches diverge from human cognitive science (Dickerson and Eichenbaum, 2009; Tanguay et al., 2023): the efficacy of agent memory is fundamentally constrained by the narrative and essential memory extraction capabilities of LLMs. For instance, existing graph-based methods are prone to introducing noise and ambiguity when constructing the topology due to inaccurate relation extraction (Han et al., 2025; Guo et al., 2024), hierarchical clustering may be compromised by erroneous

LLM-generated summaries, causing hallucinations to propagate from lower-level representations to higher-level abstractions(Li et al., 2026).

This reliance on abstraction causes two closely related problems. First, compression may omit details that appear unimportant at write time but later become crucial, such as temporal references, causal conditions, numerical facts, or subtle preference changes. Second, rewriting dialogue into summaries, profiles, or standardized memory units may introduce semantic drift: even when the main fact is retained, the user's original wording, affect, speaker attribution, or situated context can be weakened.

Based on the above analysis, a natural idea is to construct a long-term memory that inspired by human cognition for agents, which can swiftly locate relevant concepts (including basic attributes, preferences, etc.), activate related episodic memory slices, perform factually faithful reasoning and generate personalized responses. In this work, we propose HERO, a Human-profile Enhanced Retrieval Optimization framework for long-term agent memory. HERO follows a human-cognition-inspired principle: raw dialogue traces are preserved as episodic evidence, while higher-level profile information is used only to guide memory activation. Specifically, HERO constructs a heterogeneous memory graph with Episodic Traces, Episodic Units, and Episodic Cues, connected through structural inclusion, semantic indexing, and temporal chaining. This graph preserves local dialogue contexts while supporting traversal across fine-grained textual evidence and adjacent chronological contexts. In parallel, HERO maintains profile insights derived from episodic traces, but these profile nodes act as navigational bridges rather than replacement memories.

For retrieval, we introduce an iterative cue-activation mechanism to accommodate distinct memory tendencies for factual and personalized reasoning. Specifically, we operate across two dimensions—query relevance and implicit reasoning based on human-profiles, generating cues across three levels: queries, episodic units, and profiles. This extends the naive memory retrieval process, which relies solely on query-embedding similarity, into a two-stage pipeline. First, we leverage human profiles to guide cue reconstruction and expansion of the original query; then, we perform path-based retrieval on the memory graph using the generated cues. In this way, our model can retrieve explicit episodic memories and trace implicit, cross-episodic long-range dependencies through the graph structure.

The contributions of this paper are as follows:

• We analyze the limitations of existing long-term memory approaches and propose a novel human-profile-enhanced retrieval optimization framework, which incorporates human-cognition-inspired design principles.

• We design a heterogeneous memory graph that preserves complete dialogue episodes as final evidence and uses human-profile information as retrieval guidance rather than memory replacement.

• We design a profile-aware cue activation and graph retrieval mechanism that retrieves explicit facts and implicit cross-episodic dependencies while constraining topic drift through query-conditioned filtering.

• We conduct experiments on two benchmark datasets. HERO achieves 56.06% F1 on LoCoMo and 70.63% accuracy on PERSON-AMEM, demonstrating that HERO outperforms strong baselines on complex factual question answering and personalized reasoning tasks.

References (15)