Paper deep dive
HERO: Human-profile Enhanced Retrieval Optimization Framework for Long-term Agent Memory
Yuanhua Lin, Yile Li, Zhiyuan Zhao, Jing Shang, Jian Sun
Intelligence
Status: failed | Model: Gemma-4-26B-A4B | Prompt: intel-v1 | Confidence: 0%
Last extracted: 8/30/2026, 2:17:45 AM
OpenRouter request failed (500): {"error":{"message":"litellm.InternalServerError: InternalServerError: OpenAIException - litellm.InternalServerError: InternalServerError: OpenAIException - Connection error.. Received Model Group=Gemma-4-26B-A4B\nAvailable Model Group Fallbacks=NoneNo fallback model group found for original model_group=Gemma-4-26B-A4B. Fallbacks=[]. Received Model Group=Gemma-4-26B-A4B\nAvailable Model Group Fall
Entities (0)
Relation Signals (0)
No relation signals yet.
Cypher Suggestions (0)
No Cypher suggestions yet.
Abstract
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.
Tags
Links
- Source: https://arxiv.org/abs/2608.22310v1
- Canonical: https://arxiv.org/abs/2608.22310v1
Trouble viewing inline? Open PDF directly ā
Full Text
60,804 characters extracted from source content.
Expand or collapse full text
HERO: Human-profile Enhanced Retrieval Optimization Framework for Long-term Agent Memory Yuanhua Lin Yile Li Zhiyuan Zhao Jing Shang Jian Sun Affiliation: China Mobile Information Technology Co., Ltd., Beijing, China Affiliation: linyuanhua, liyile, zhaozhiyuan, shangjing, sunjian01@chinamobile.com 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 33; 38; 27. Agent memory is a core capability for such systems, enabling agents to reuse experiences and sustain personalized long-term interactions 42; 6. A common implementation is Retrieval-Augmented Generation (RAG) 19; 2, which retrieves historical context or external knowledge as model input. While RAG helps mitigate hallucination 13, 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 34; 17; 28 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 36; 39; 18; 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 32; 9; 5; 31. These methods address the fragmented retrieval and redundancy inherent in RAG. Nevertheless, both approaches diverge from human cognitive science 4; 35: 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 10; 8, hierarchical clustering may be compromised by erroneous LLM-generated summaries, causing hallucinations to propagate from lower-level representations to higher-level abstractions21. 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 PERSONAMEM, demonstrating that HERO outperforms strong baselines on complex factual question answering and personalized reasoning tasks. 2 Related Work To address the challenge of processing long-horizon interaction histories in agents, recent research on long-term memory has broadly diverged into two strands. One line is the summary-based approaches 36; 15; 23; 39; 18; 25; 7; 22; 26; 20. The main idea is to refine original texts into hierarchical summaries, or structured facts to bypass the context window limitation. Representative systems like MemoryBank 43, LightMem 7, EverMemOS 12, Mem0 3, and CAM 21 implement various cognitive-inspired write-time compression or memory lifecycle management schemes. However, these methods inevitably suffer from information loss and semantic drift due to their heavy reliance on LLMs to rewrite or summarize raw interactions. Another line is the graph-based memory approaches 32; 37; 8; 10; 1; 40; 9; 5; 44; 31; 30, which extracts structured knowledge from text to construct graphs and performs path-based retrieval. This structure naturally supports multi-hop reasoning and alleviates knowledge conflicts through temporal modeling. These methods significantly advance long-term agent memory. However, they primarily rely on compressing historical information and the re-narration power of LLMs, which inevitably leads to irreversible information loss or semantic distortion. In this paper, we construct a novel heterogeneous memory graph, which is faithful to the original text. Moreover, we leverage the human-profile and the current query through a multi-round iterative to generate initial cues, which in turn guide agentsā personalized response. Figure 1: Overview of the proposed HERO framework. Left: Memory Construction. User dialogues are processed to extract Episodic Traces, which are further organized into Episodic Units and Episodic Cues to form the Episodic Layer. In parallel, Profile Insights and corresponding Profile Cues are derived from Episodic Traces to construct the Profile Layer. Episodic Cues and Profile Cues jointly constitute the cue nodes in a heterogeneous memory graph. Right: Memory Retrieval. Given a user query, entities are first extracted and matched against the cue nodes in the graph to obtain an initial candidate set. Through iterative expansion via CueāEpisodic Unit and CueāProfile Insight bridges, additional relevant cue nodes are activated and incorporated into the Personalized PageRank initialization. In this process, Episodic Units support explicit semantic linking, while Profile Insights provide implicit, profile-consistent semantic connections. 3 Methodology We define the userās dialogue sessions as ā=s1,s2,ā¦,sTH=\s_1,s_2,ā¦,s_T\, where each session sis_i consists of a sequence of events or multi-turn dialogues. We assume the existence of a latent human profile P, representing the userās accumulated facts, evolving traits, and preferences derived from āH. Given a current user query q, the goal of HERO is to retrieve an optimal memory subset ā³āāāM^* that maximizes the generation probability of the target response r. This optimization problem can be formulated as: ā³ā=argā”maxā³āāāPā(rā£q,ā³,;ΦLLM),M^*= M \ P(r q,M,P; _LLM), (1) where ΦLLM _LLM denotes the parameters of the backbone Large Language Model. We propose HERO, a long-term agent memory framework that enables personalized reasoning without sacrificing the fidelity of raw dialogue records. As shown in Figure 1, HERO has two components: (1) Memory Construction, which organizes multi-granular conversational experiences into a coarse-to-fine heterogeneous graph; and (2) Memory Retrieval, which uses multi-level cues to retrieve profile-consistent evidence for explicit fact retrieval and implicit cross-session reasoning. 3.1 Memory Construction To support factually faithful reasoning over episodic memory, HERO constructs an episodic-centered heterogeneous graph =(,ā°)G=(V,E). The graph has two layers: an Episodic Layer that stores raw historical events and a Profile Layer that distills human profiles. The Episodic Layer focuses on faithfully recording what happened in the original dialogues. It hierarchically segments the conversation flow into granular units to ensure memory traceability, and contains three types of nodes: Episodic Traces (tV_t), Episodic Units (uV_u), and Episodic Cues (cā_āeāpāiācV_c\_epi _c): (1) Episodic Traces are partitioned into semantically coherent sessions or time windows. Each trace node vtātv_t _t represents a local conversation scenario memory, encompassing the full original text, timestamp, and sequential index. (2) Episodic Units are the further segmented atomic sentence-level units vuv_u. Each unit node vuāuv_u _u acts as the fundamental carriers of evidence, retaining detailed contextual constraints. (3) Episodic Cues are entities and keywords that extracted from vuv_u by LLMs, and serve as associative bridges. Besides, entities extracted from different units are normalized and merged into shared nodes in the global cue set cV_c. The Profile layer is designed for understanding users. This layer performs high-level semantic abstraction to model usersā implicit attributes, and contains two types of node: Profile Insights (pV_p) and Profile Cues (cā_āpārāoācV_c\_pro _c): (1) Profile Insights (pV_p): For each episodic trace, the LLM distills human-centric information: specifically Facts, Insights, and Traits to generate profile nodes vpv_p, where vpāpv_p _p . (2) Profile Cues (cā_āpārāoācV_c\_pro _c): Fine-grained entities are further extracted from vpv_p to link abstract user portraits back to the global semantic space. Note that c=cā_āeāpāiāŖcā_āpārāoV_c=V_c\_epi _c\_pro. The final node set V is composed of multi-granular semantic abstractions: =tāŖuāŖpāŖc.V=V_t _u _p _c. (2) The edge set ā°E for topological construction contains three types: (1) Structural Inclusion: Directed edges (vu,vt),(vp,vt)\(v_u,v_t),(v_p,v_t)\ link fine-grained units and profile nodes to their source episodic traces. Directed edges (vc,vt),(vc,vp)\(v_c,v_t),(v_c,v_p)\ connect cue nodes to their originating episodic traces and profile insights. (2) Semantic Indexing: Weighted edges (vc,vt),(vc,vp)\(v_c,v_t),(v_c,v_p)\ connect retrieval cues with episodic traces and profile insights; weights wc,tw_c,t and wc,pw_c,p are based on occurrence frequency. (3) Temporal Chaining: Adjacent episodic traces are connected by (vti,vti+1)\(v_t_i,v_t_i+1)\ to preserve temporal order. This construction turns streaming conversations into a traversable cognitive association graph with three benefits. First, the Episodic Layer supports faithful retrieval of raw evidence and multi-hop associations across sessions, enabling variable-resolution retrieval from coarse traces to fine-grained facts without irreversible compression. Second, the Profile Layer captures user preferences and provides implicit links for retrieving profile-consistent evidence even without direct keyword overlap. Third, HERO supports incremental updates: new dialogues create local nodes and edges (linking to the latest predecessor and merging new cues), without full graph reconstruction. 3.2 Memory Retrieval During retrieval, HERO employs a profile-enhanced retrieval optimization strategy to handle two query types. Factual questions activate query-related cues to locate complete raw evidence and avoid losses from extraction or summarization. Personalized reasoning questions activate profile-related cues, because their target attributes may not appear as explicit entities in the dialogue. For example, answering "Describe the userās dietary preferences" requires profile insights to bridge abstract preferences with multiple raw fragments. HERO retrieves evidence in three phases: (1) Initial Anchor Identification, (2) Iterative Context Expansion, and (3) Global Relevance Propagation and Evidence Ranking. Phase 1: Initial Anchor Identification We extract the explicit entity set ā°qE_q from the query q and map them to the cue nodes CV_C to generate the initial active set 0S_0, which is defined as: 0=vāCā£āeāā°q,sim(Φ(e),Φ(v))ā„Ļinit,S_0=\v _C ā e _q,sim( (e), (v))ā„ _init\, where Φā”(ā ) (Ā·) denotes the embedding function, simā(ā ,ā )sim(Ā·,Ā·) is the cosine similarity, and Ļinit _init is the matching threshold. Phase 2: Iterative Context Expansion In this phase, HERO emulates the human āfollowing-the-cluesā recall process: for K iterations, the system traverses a cueācontextācue pathway. Firstly, we expand kā1S_k-1 to include synonymous nodes, handle the lexical diversity situation: ā²kā1=vāC⣠_k-1=\v _C āuākā1, ā u _k-1, sim(Φ(v),Φ(u))ā„Ļalias, ( (v), (u))ā„ _alias\, where Ļalias _alias is proposed to constrain semantic drift. We then collect context nodes connected to the current cues kā1ā²S _k-1: k=āvākā1ā²Adjā(v)ā©(uāŖp),N_k= _v _k-1Adj(v)ā©(V_u _p), Next, we filter them by query relevance: kā=nākā£simā(Φā”(n),Φā”(q))ā„Ļiter,N^*_k=\n _k ( (n), (q))ā„ _iter\, we activate new cue nodes in CV_C connected to the selected contexts kāN^*_k to generate cues: k=cāCā£ānākā,(n,c)āā°āāi=0kā1i,S_k=\c _C ā n ^*_k,(n,c) \ _i=0^k-1S_i, for each new cue cākc _k, set its activation weight by transferring from a previous cue cā²ākā1ā²c _k-1 through the linking context nākān ^*_k: Wā(c)k=Wā(cā²)kā1Ćsimā(Φā”(n),Φā”(q)).W(c)_k=W(c )_k-1Ćsim( (n), (q)). Phase 3: Global Relevance Propagation and Evidence Ranking After K iterations, the system aggregates the activation signals to identify the most salient episodic traces (vtv_t). The activation intensity of an episodic trace is calculated by combining dense retrieval relevance and the cue-matching bonus: Wā”(vt)= W(v_t)= αāsimā(Φā”(vt),Φā”(q)) α\,sim( (v_t), (q)) +logā”(1+ācāallWā”(c)ālnā”(1+fā(c,vt))Lc), + (1+ _c _all W(c) (1+f(c,v_t))L_c ), where all=āk=0KkS_all= _k=0^KS_k denotes the global activated cue set. Wā”(c)W(c) is the activation weight of cue node c, fā(c,vt)f(c,v_t) is its occurrence frequency in trace vtv_t, and LcL_c is the hierarchical depth of cue node c. Then, node-level scores are integrated into a restart probability vector r constructed from Wā”(v)ā£vāCāŖt\W(v) v _C _t\; vpv_p is masked during propagation and thus excluded from r. Following 9; 44, we employ Personalized PageRank (PPR) 11 on G with r as the restart distribution and the Profile Insights nodes vpv_p masked, which can be viewed as energy propagation on the memory graph: =(1ād)ā+dāmask,a=(1-d)\,r+d\,a\,P_mask, where a denotes the stationary PPR score vector, dā(0,1)dā(0,1) is the damping factor, and maskP_mask is the row-normalized transition matrix after masking profile nodes vpv_p (and their incident edges), ensuring that the propagation only flows through evidence-bearing nodes. Finally, we rank Episodic Traces vtv_t by their PPR scores, and apply a re-ranking model to return the top-k Episodic Traces as reasoning evidence for the LLM. 4 Experiments In this section, we evaluate our proposed HERO framework with respect to the following research questions: ⢠RQ1. Compared with methods based on compression or rewriting, can HERO provide a more accurate and faithful retrieval of fine-grained facts from long-term memory? ⢠RQ2. Can HERO better support reasoning across multiple sessions and events? ⢠RQ3. Can HERO capture usersā historical events, traits, and preferences to enable personalized responses? ⢠RQ4. How efficient is HERO during retrieval? Method Multi-hop Temporal Open-domain Single-hop Overall Average ACC F1 BLEU-1 ACC F1 BLEU-1 ACC F1 BLEU-1 ACC F1 BLEU-1 ACC F1 BLEU-1 HERO 85.11 43.52 32.57 86.60 63.63 57.82 72.92 34.67 30.13 91.20 59.81 52.15 87.99 56.06 48.38 CAM 76.60 29.89 14.72 76.32 40.34 35.51 66.67 19.37 15.57 87.40 30.70 24.55 81.82 31.85 24.48 EverMemOS 81.91 41.55 28.31 83.80 59.08 52.09 69.79 25.76 19.33 86.44 43.78 36.06 84.03 45.48 36.94 LinearRAG 52.13 28.83 21.11 53.27 41.50 36.82 55.21 22.44 16.73 66.35 44.70 39.24 60.32 39.74 34.01 MemoryOS 57.45 35.11 26.62 44.86 32.05 26.68 53.13 23.57 12.77 74.67 52.10 45.47 63.96 43.03 36.06 Mem0 67.02 34.99 24.07 40.19 32.88 29.02 63.54 21.83 15.98 73.48 39.79 33.30 64.74 36.35 29.64 Table 1: Performance Comparison on the LoCoMo benchmark. All values represent the performance metric for each task (e.g., accuracy %). Best results are highlighted in bold. Category R@5 R@10 Single-hop 0.935 0.960 Multi-hop 0.915 0.947 Temporal 0.935 0.953 Open-domain 0.604 0.667 Overall 0.910 0.938 Table 2: Retrieval quality on the LoCoMo benchmark. Question & Gold Answer Original Context Generated Memory Q: What did Evan start painting due to a friendās gift? A: forest scene Evan shared a photo of a painting of a forest scene on an easel, and said, āThanks, Sam! It all started when a friend of mine gave me this painting one day, it inspired me a lot and thatās when I started paintingā¦ā Memory Content: Evan thanked Sam and mentioned starting painting classes a few days ago. Evan shared a forest painting, inspired by a gift from a friend. Q: How often does Audrey take her pups to the park for practice? A: Twice a week Audrey shared a photo of a group of dogs sitting on a dirt road and said, āā¦itās a great physical and mental workout. I take them to the park twice a week for practiceāitās been a great bonding experienceā¦ā Memory Content: Audrey highlighted her twice-weekly agility classes and the positive impact on her dogsā social and physical development. Table 3: Case study comparing original context and generated memory on the LoCoMo benchmark. 4.1 Experimental Setup Datasets and Metrics. We evaluate HERO on two benchmarks. LoCoMo 24 contains 10 long-term conversations with about 600 turns, 16K tokens, and up to 32 sessions each, covering single-hop, multi-hop, temporal, and open-domain QA; we report F1, BLEU-1, and LLM-judged accuracy following the standard protocol 3; 12. PERSONAMEM-32k 14 evaluates personalized memory over 180 simulated userāagent histories across real-world scenarios, covering user facts, evolving preferences, update reasons, and preference-aligned recommendations; we report multiple-choice accuracy. Baselines. We compare HERO with state-of-the-art baselines. Mem03, MemoryOS16 and EverMemOS12 rely on LLM-based rewriting or memory updates to transform raw dialogue into compact memory representations. CAM21 builds hierarchical summary nodes through topic clustering. LinearRAG44 is a lightweight graph retrieval method. Implementation Details. For the main experiments, methods are evaluated using Qwen2.5-72B-Instruct 29 as the backbone LLM and Qwen3-Embedding-8B 41 as the embedding model. Mem0 is evaluated using its official hosted version in the main comparison. All methods share the same answer-generation prompts, as detailed in the Appendix. 4.2 Overall Performance RQ1. HERO achieves leading response correctness and fidelity by preserving raw episodic context. We compare HERO with baselines on the LoCoMo dataset. The four LoCoMo task types focus on fact-based question answering, where answers must be retrieved from the dialogue history or inferred by combining multiple clues. As shown in Table 1, HERO achieves the best overall performance across all metrics, reaching 87.99% accuracy, 56.06% F1, and 48.38% BLEU-1. These results indicate that HERO not only produces correct answers, but also stays closer to the source dialogue text in wording, because its generation is directly grounded in raw text. To further verify whether the gain comes from better evidence retrieval, we evaluate retrieval quality on LoCoMo using Recall@5 and Recall@10 against annotated supporting spans. As shown in Table 2, HERO achieves an overall Recall@10 of 0.938, indicating that the graph-based retriever can locate the relevant raw evidence in most cases. The lower recall on open-domain questions is expected, since such questions often require external commonsense or world knowledge not fully expressed in the dialogue history. These results highlight the importance of memory storage strategy. Methods based on LLM rewriting or summarization perform irreversible compression before the downstream query is known, which may discard details or introduce semantic drift. This is consistent with prior analyses of LLM-generated event summaries, which report missing temporal or causal links, hallucinated details, and incorrect speaker attributions 24. The case study in Table 3 further illustrates this issue: generated memories may preserve surface keywords while distorting causal links or event contexts. Method Generalize to New Scenarios Provide Preference-Aligned Recommendations Recall User Shared Facts Acknowledge Latest User Preferences Revisit Reasons behind Preference Updates Suggest New Ideas Track Full Preference Evolution Overall Avg HERO 82.46 80.00 68.99 76.47 87.88 37.63 72.66 70.63 CAM 70.18 54.55 65.89 76.47 75.76 36.56 61.87 61.63 Mem0 73.68 72.73 61.24 70.59 79.80 35.48 68.34 64.52 EverMemOS 80.70 72.73 68.99 76.47 83.84 22.58 71.22 66.38 LinearRAG 68.42 74.55 72.09 70.59 81.82 21.51 71.94 65.35 MemoryOS 82.46 67.27 65.12 70.59 86.87 22.58 71.94 65.70 Table 4: Performance comparison on the PERSONAMEM benchmark. All values represent the performance metric for each task. Best results are highlighted in bold. RQ2. HERO demonstrates cross-session reasoning capabilities. As shown in Table 1, HERO achieves an accuracy of 85.11% on the Multi-hop tasks, which require linking scattered clues across multiple sessions. This result indicates that HERO can recover long-range dependencies rather than relying only on locally similar dialogue snippets. For example, in a LoCoMo instance where the query asks āWho did John go to yoga with?ā, the relevant evidence is split across two temporally distant sessions. In an earlier dialogue on 2023-02-25, John stated that āmy colleague Rob invited me to a beginnerās yoga classā; in a later session on 2023-04-07, he mentioned that he āstarted a weekend yoga class with a colleagueā without naming the person. Neither utterance alone is sufficient to answer the query. HERO bridges them by following cue-based links from yoga class to colleague and then to Rob, thereby retrieving the cross-session evidence needed to infer the answer. This example illustrates how HEROās episodic graph supports multi-hop retrieval: HERO connects episodic traces through entity cues, allowing retrieval to follow the graph topology and perform multi-hop walks, which better captures long-range dependencies across sessions. Figure 2: Ablation Studies of HERO. RQ3. HERO is able to capture dynamic human profile and evolving preferences. We evaluate HERO on PERSONAMEM, which focuses on tracking user facts, evolving preferences, and preference-aligned responses across long-term interactions. As shown in Table 4, HERO achieves the best overall accuracy of 70.63%, outperforming all baselines. HERO shows clear advantages on preference-oriented categories, including Preference-Aligned Recommendations (80.00%), Revisit Reasons behind Preference Updates (87.88%), and Track Full Preference Evolution (72.66%). These results suggest that the profile layer helps identify user-specific cues that are not always explicit in the current query. Importantly, profiles in HERO are used as retrieval guidance rather than final evidence: they steer the retriever toward relevant raw dialogue traces, while the answer is generated from the retrieved original snippets. The ablation results in Figure 2 further support this design: removing the profile layer decreases PERSONAMEM accuracy from 65.70% to 63.67%, indicating that profile-enhanced retrieval provides complementary signals beyond query-only matching. This is consistent with the finding in 14 that relevant raw messages are important for personalized reasoning. Figure 3: Performanceāefficiency trade-off during retrieval on the LoCoMo benchmark. 4.3 Trade-off Analysis RQ4. HERO achieves an optimal trade-off between system efficiency and response performance. We further analyze the LLM token cost and time efficiency during retrieval on the LoCoMo benchmark. All efficiency metrics (latency and token usage) are reported as the average value per query. Figure 3 plots different methods along three dimensions: retrieval latency (x-axis, in log scale), F1 score (y-axis), and token consumption (bubble size). The bubble size represents the per-query LLM token consumption, including both input and output tokens. HERO achieves high effectiveness with low retrieval overhead. It obtains the highest F1 while using only 248 tokens on average, and its latency remains below one second. This efficiency comes from HEROās design: heavy semantic linking and structure building are moved to the memory construction and profile maintenance stages. During retrieval, HERO only performs lightweight cue extraction followed by graph traversal, avoiding long chains of online LLM reasoning. 4.4 Ablation Study To validate the effectiveness of HEROās components, we conduct an ablation study with two variants: (1) HERO w/o Profile, where the profile layer is deactivated to assess the impact of profile-enhanced retrieval; and (2) HERO w/o Cues Expansion, where iterative context expansion is disabled to evaluate multi-hop evidence retrieval. The results in Figure 2 demonstrate the importance of both components, with different effects across tasks. We also use HERO-retrieved raw dialogue segments as auxiliary evidence for existing baselines, which consistently improves their performance, further indicating the value of faithful raw-memory retrieval. 4.5 Hyperparameter Analysis We examine whether HERO requires careful hyperparameter tuning. As shown in Table 5, LoCoMo accuracy remains within 0.801ā0.829 and F1 within 0.546ā0.560 when varying the alias matching threshold, retrieval filtering threshold, and retrieval top-k. These results show that HERO is stable under moderate hyperparameter changes and does not rely on delicate threshold tuning. Hyperparameter Value Acc F1 Ļalias _alias 0.6 0.818 0.552 0.7 0.819 0.548 0.8* 0.816 0.549 0.9 0.816 0.546 Ļinit=Ļiter _init= _iter 0.3 0.801 0.548 0.4* 0.829 0.558 0.5 0.814 0.557 0.6 0.823 0.548 Top-k 5 0.814 0.556 10* 0.828 0.560 20 0.823 0.550 40 0.818 0.555 Table 5: Hyperparameter sensitivity on LoCoMo. Default values are marked with *. 5 Conclusion Long-term memory is a fundamental challenge for building personalized and coherent conversational agents. To empower episodic long-term memory for this task, we propose HERO, a novel human-profile enhanced retrieval optimization framework. HERO enables factually faithful reasoning through an episodic-centered heterogeneous memory graph and an iterative dual-cue activation mechanism, significantly improving personalized responses. Experiments on two benchmark datasets demonstrate encouraging performance gains, accurate retrieval capabilities, and robust cross-session reasoning. These results validate the effectiveness of our framework and suggest that preserving raw episodic context with structured retrieval is a promising direction for long-term agent memory. Limitations While HERO achieves promising results on long-term factual and personalized memory tasks, we acknowledge several areas for future exploration. First, although HERO organizes raw episodic traces through temporal chaining and semantic cue links, the current implementation does not include an explicit memory lifecycle mechanism, such as time-aware decay, stale-trace pruning, or user-controlled deletion. Future work could explore incorporating these strategies as lightweight local graph updates for longer-running deployments. Second, HERO relies on LLMs to extract cues and profile insights. These profiles guide retrieval, but are not directly used as evidence for generation, mitigating the risk of grounding responses in noisy abstractions; however, inaccurate profile cues may still affect the retrieval trajectory. Future work could introduce confidence calibration, and timestamp-aware profile updates to further improve robustness. Ethical Considerations This work studies long-term memory for conversational agents, which involves storing and retrieving user dialogue history and personal profiles. All datasets used in this work are publicly released for research purposes and do not require additional ethical approval. For real-world deployment, we recommend that systems built on HERO adopt explicit data governance policies, including user-controlled memory deletion and access transparency, consistent with applicable data protection regulations. We also note that inaccuracies in stored or retrieved memory could lead to misleading responses. HERO mitigates this risk by grounding generation in raw, unmodified dialogue text rather than LLM-rewritten summaries, reducing the chance of introducing hallucinated or distorted information. References Anokhin et al. (2025) P. Anokhin, N. Semenov, A. Y. Sorokin, D. Evseev, A. Kravchenko, M. Burtsev, and E. Burnaev AriGraph: learning knowledge graph world models with episodic memory for LLM agents. In Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence, IJCAI 2025, Montreal, Canada, August 16-22, 2025, p. 12ā20. External Links: Link, Document Cited by: §2. Borgeaud et al. (2022) S. Borgeaud, A. Mensch, J. Hoffmann, T. Cai, E. Rutherford, K. Millican, G. van den Driessche, J. Lespiau, B. Damoc, A. Clark, D. de Las Casas, A. Guy, J. Menick, R. Ring, T. Hennigan, S. Huang, L. Maggiore, C. Jones, A. Cassirer, A. Brock, M. Paganini, G. Irving, O. Vinyals, S. Osindero, K. Simonyan, J. W. Rae, E. Elsen, and L. Sifre Improving language models by retrieving from trillions of tokens. In International Conference on Machine Learning, ICML 2022, 17-23 July 2022, Baltimore, Maryland, USA, K. Chaudhuri, S. Jegelka, L. Song, C. SzepesvĆ”ri, G. Niu, and S. Sabato (Eds.), Proceedings of Machine Learning Research, Vol. 162, p. 2206ā2240. External Links: Link Cited by: §1. Chhikara et al. (2025) P. Chhikara, D. Khant, S. Aryan, T. Singh, and D. Yadav Mem0: building production-ready AI agents with scalable long-term memory. CoRR abs/2504.19413. External Links: Link, Document, 2504.19413 Cited by: §2, §4.1, §4.1. Dickerson and Eichenbaum (2009) B. Dickerson and H. Eichenbaum The episodic memory system: neurocircuitry and disorders. Neuropsychopharmacology : official publication of the American College of Neuropsychopharmacology 35, p. 86ā104. External Links: Document Cited by: §1. Edge et al. (2024) D. Edge, H. Trinh, N. Cheng, J. Bradley, A. Chao, A. Mody, S. Truitt, and J. Larson From local to global: A graph RAG approach to query-focused summarization. CoRR abs/2404.16130. External Links: Link, Document, 2404.16130 Cited by: §1, §2. Fang et al. (2025a) J. Fang, Y. Peng, X. Zhang, Y. Wang, X. Yi, G. Zhang, Y. Xu, B. Wu, S. Liu, Z. Li, Z. Ren, N. Aletras, X. Wang, H. Zhou, and Z. Meng A comprehensive survey of self-evolving AI agents: A new paradigm bridging foundation models and lifelong agentic systems. CoRR abs/2508.07407. External Links: Link, Document, 2508.07407 Cited by: §1. Fang et al. (2025b) J. Fang, X. Deng, H. Xu, Z. Jiang, Y. Tang, Z. Xu, S. Deng, Y. Yao, M. Wang, S. Qiao, H. Chen, and N. Zhang LightMem: lightweight and efficient memory-augmented generation. CoRR abs/2510.18866. External Links: Link, Document, 2510.18866 Cited by: §2. Guo et al. (2024) Z. Guo, L. Xia, Y. Yu, T. Ao, and C. Huang LightRAG: simple and fast retrieval-augmented generation. CoRR abs/2410.05779. External Links: Link, Document, 2410.05779 Cited by: §1, §2. Gutierrez et al. (2024) B. J. Gutierrez, Y. Shu, Y. Gu, M. Yasunaga, and Y. Su HippoRAG: neurobiologically inspired long-term memory for large language models. In Advances in Neural Information Processing Systems 38: Annual Conference on Neural Information Processing Systems 2024, NeurIPS 2024, Vancouver, BC, Canada, December 10 - 15, 2024, A. Globersons, L. Mackey, D. Belgrave, A. Fan, U. Paquet, J. M. Tomczak, and C. Zhang (Eds.), External Links: Link Cited by: §1, §2, §3.2. Han et al. (2025) H. Han, Y. Wang, H. Shomer, K. Guo, J. Ding, Y. Lei, M. Halappanavar, R. A. Rossi, S. Mukherjee, X. Tang, Q. He, Z. Hua, B. Long, T. Zhao, N. Shah, A. Javari, Y. Xia, and J. Tang Retrieval-augmented generation with graphs (graphrag). CoRR abs/2501.00309. External Links: Link, Document, 2501.00309 Cited by: §1, §2. Haveliwala (2002) T. H. Haveliwala Topic-sensitive pagerank. In Proceedings of the 11th international conference on World Wide Web, p. 517ā526. Cited by: §3.2. Hu et al. (2026) C. Hu, X. Gao, Z. Zhou, D. Xu, Y. Bai, X. Li, H. Zhang, T. Li, C. Zhang, L. Bing, and Y. Deng EverMemOS: A Self-Organizing Memory Operating System for Structured Long-Horizon Reasoning. arXiv e-prints, p. arXiv:2601.02163. External Links: Document, 2601.02163 Cited by: Table 6, §2, §4.1, §4.1. Huang et al. (2025) L. Huang, W. Yu, W. Ma, W. Zhong, Z. Feng, H. Wang, Q. Chen, W. Peng, X. Feng, B. Qin, and T. Liu A survey on hallucination in large language models: principles, taxonomy, challenges, and open questions. ACM Trans. Inf. Syst. 43 (2), p. 42:1ā42:55. External Links: Link, Document Cited by: §1. [14] B. Jiang, Z. Hao, Y. M. Cho, B. Li, Y. Yuan, S. Chen, L. Ungar, C. J. Taylor, and D. Roth Know me, respond to me: benchmarking llms for dynamic user profiling and personalized responses at scale. In Second Conference on Language Modeling, Cited by: §4.1, §4.2. Kang et al. (2025a) J. Kang, M. Ji, Z. Zhao, and T. Bai Memory OS of AI agent. CoRR abs/2506.06326. External Links: Link, Document, 2506.06326 Cited by: §2. Kang et al. (2025b) J. Kang, M. Ji, Z. Zhao, and T. Bai Memory os of ai agent. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, p. 25972ā25981. Cited by: §4.1. Kasap and Magnenat-Thalmann (2010) Z. Kasap and N. Magnenat-Thalmann Towards episodic memory-based long-term affective interaction with a human-like robot. In 19th IEEE International Conference on Robot and Human Interactive Communication, Viareggio, Italy, RO-MAN, 2010, September 13-15, 2010, C. A. Avizzano and E. Ruffaldi (Eds.), p. 452ā457. External Links: Link, Document Cited by: §1. Lee et al. (2024) K. Lee, X. Chen, H. Furuta, J. F. Canny, and I. Fischer A human-inspired reading agent with gist memory of very long contexts. In Forty-first International Conference on Machine Learning, ICML 2024, Vienna, Austria, July 21-27, 2024, External Links: Link Cited by: §1, §2. Lewis et al. (2020) P. Lewis, E. Perez, A. Piktus, F. Petroni, V. Karpukhin, N. Goyal, H. Küttler, M. Lewis, W. Yih, T. RocktƤschel, S. Riedel, and D. Kiela Retrieval-augmented generation for knowledge-intensive NLP tasks. In Advances in Neural Information Processing Systems 33: Annual Conference on Neural Information Processing Systems 2020, NeurIPS 2020, December 6-12, 2020, virtual, H. Larochelle, M. Ranzato, R. Hadsell, M. Balcan, and H. Lin (Eds.), External Links: Link Cited by: §1. Li et al. (2025a) H. Li, C. Yang, A. Zhang, Y. Deng, X. Wang, and T. Chua Hello again! llm-powered personalized agent for long-term dialogue. In Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies, NAACL 2025 - Volume 1: Long Papers, Albuquerque, New Mexico, USA, April 29 - May 4, 2025, L. Chiruzzo, A. Ritter, and L. Wang (Eds.), p. 5259ā5276. External Links: Link, Document Cited by: §2. Li et al. (2026) R. Li, Z. Zhang, X. Bo, Z. Tian, X. Chen, Q. Dai, Z. Dong, and R. Tang Cam: a constructivist view of agentic memory for llm-based reading comprehension. Advances in Neural Information Processing Systems 38, p. 113381ā113406. Cited by: §1, §2, §4.1. Li et al. (2025b) Z. Li, S. Song, H. Wang, S. Niu, D. Chen, J. Yang, C. Xi, H. Lai, J. Zhao, Y. Wang, J. Ren, Z. Lin, J. Huo, T. Chen, K. Chen, K. Li, Z. Yin, Q. Yu, B. Tang, H. Yang, Z. J. Xu, and F. Xiong MemOS: an operating system for memory-augmented generation (MAG) in large language models. CoRR abs/2505.22101. External Links: Link, Document, 2505.22101 Cited by: §2. Lu et al. (2023) J. Lu, S. An, M. Lin, G. Pergola, Y. He, D. Yin, X. Sun, and Y. Wu MemoChat: tuning llms to use memos for consistent long-range open-domain conversation. CoRR abs/2308.08239. External Links: Link, Document, 2308.08239 Cited by: §2. Maharana et al. (2024) A. Maharana, D. Lee, S. Tulyakov, M. Bansal, F. Barbieri, and Y. Fang Evaluating very long-term conversational memory of llm agents. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), p. 13851ā13870. Cited by: §4.1, §4.2. Packer et al. (2023) C. Packer, V. Fang, S. G. Patil, K. Lin, S. Wooders, and J. E. Gonzalez MemGPT: towards llms as operating systems. CoRR abs/2310.08560. External Links: Link, Document, 2310.08560 Cited by: §2. Pan et al. (2025) Z. Pan, Q. Wu, H. Jiang, X. Luo, H. Cheng, D. Li, Y. Yang, C. Lin, H. V. Zhao, L. Qiu, and J. Gao SeCom: on memory construction and retrieval for personalized conversational agents. In The Thirteenth International Conference on Learning Representations, ICLR 2025, Singapore, April 24-28, 2025, External Links: Link Cited by: §2. Pantiukhin et al. (2025) D. Pantiukhin, B. Shapkin, I. Kuznetsov, A. A. Jost, and N. Koldunov Accelerating earth science discovery via multi-agent LLM systems. Frontiers Artif. Intell. 8. External Links: Link, Document Cited by: §1. Pink et al. (2025) M. Pink, Q. Wu, V. A. Vo, J. Turek, J. Mu, A. Huth, and M. Toneva Position: episodic memory is the missing piece for long-term LLM agents. CoRR abs/2502.06975. External Links: Link, Document, 2502.06975 Cited by: §1. Qwen et al. (2025) Qwen, :, A. Yang, B. Yang, B. Zhang, B. Hui, B. Zheng, B. Yu, C. Li, D. Liu, F. Huang, H. Wei, H. Lin, J. Yang, J. Tu, J. Zhang, J. Yang, J. Yang, J. Zhou, J. Lin, K. Dang, K. Lu, K. Bao, K. Yang, L. Yu, M. Li, M. Xue, P. Zhang, Q. Zhu, R. Men, R. Lin, T. Li, T. Tang, T. Xia, X. Ren, X. Ren, Y. Fan, Y. Su, Y. Zhang, Y. Wan, Y. Liu, Z. Cui, Z. Zhang, and Z. Qiu Qwen2.5 technical report. External Links: 2412.15115, Link Cited by: §4.1. Rasmussen et al. (2025) P. Rasmussen, P. Paliychuk, T. Beauvais, J. Ryan, and D. Chalef Zep: A temporal knowledge graph architecture for agent memory. CoRR abs/2501.13956. External Links: Link, Document, 2501.13956 Cited by: §2. Rezazadeh et al. (2025) A. Rezazadeh, Z. Li, W. Wei, and Y. Bao From isolated conversations to hierarchical schemas: dynamic tree memory representation for llms. In The Thirteenth International Conference on Learning Representations, ICLR 2025, Singapore, April 24-28, 2025, External Links: Link Cited by: §1, §2. Sarthi et al. (2024) P. Sarthi, S. Abdullah, A. Tuli, S. Khanna, A. Goldie, and C. D. Manning RAPTOR: recursive abstractive processing for tree-organized retrieval. In The Twelfth International Conference on Learning Representations, ICLR 2024, Vienna, Austria, May 7-11, 2024, External Links: Link Cited by: §1, §2. Schlegel et al. (2025) K. Schlegel, N. Sommer, and M. Mortillaro Large language models are proficient in solving and creating emotional intelligence tests. Communications Psychology 3, p. . External Links: Document Cited by: §1. Svoboda et al. (2006) E. Svoboda, M. Mckinnon, and B. Levine The functional neuroanatomy of autobiographical memory: a meta-analysis. Neuropsychologia 44, p. 2189ā208. External Links: Document Cited by: §1. Tanguay et al. (2023) A. Tanguay, D. Palombo, B. Love, R. Glikstein, P. Davidson, and L. Renoult The shared and unique neural correlates of personal semantic, general semantic, and episodic memory. eLife 12, p. . External Links: Document Cited by: §1. Team (2023) L. Team Conversational rag. External Links: Link Cited by: §1, §2. Xu et al. (2026) W. Xu, Z. Liang, K. Mei, H. Gao, J. Tan, and Y. Zhang A-mem: agentic memory for llm agents. Advances in Neural Information Processing Systems 38, p. 17577ā17604. Cited by: §2. Yang et al. (2024) J. Yang, C. E. Jimenez, A. Wettig, K. Lieret, S. Yao, K. Narasimhan, and O. Press SWE-agent: agent-computer interfaces enable automated software engineering. In Advances in Neural Information Processing Systems 38: Annual Conference on Neural Information Processing Systems 2024, NeurIPS 2024, Vancouver, BC, Canada, December 10 - 15, 2024, A. Globersons, L. Mackey, D. Belgrave, A. Fan, U. Paquet, J. M. Tomczak, and C. Zhang (Eds.), External Links: Link Cited by: §1. Yu et al. (2024) W. Yu, H. Zhang, X. Pan, P. Cao, K. Ma, J. Li, H. Wang, and D. Yu Chain-of-note: enhancing robustness in retrieval-augmented language models. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, EMNLP 2024, Miami, FL, USA, November 12-16, 2024, Y. Al-Onaizan, M. Bansal, and Y. Chen (Eds.), p. 14672ā14685. External Links: Link, Document Cited by: §1, §2. Zhang et al. (2025a) G. Zhang, M. Fu, G. Wan, M. Yu, K. Wang, and S. Yan G-memory: tracing hierarchical memory for multi-agent systems. CoRR abs/2506.07398. External Links: Link, Document, 2506.07398 Cited by: §2. Zhang et al. (2025b) Y. Zhang, M. Li, D. Long, X. Zhang, H. Lin, B. Yang, P. Xie, A. Yang, D. Liu, J. Lin, F. Huang, and J. Zhou Qwen3 embedding: advancing text embedding and reranking through foundation models. arXiv preprint arXiv:2506.05176. Cited by: §4.1. Zhang et al. (2025c) Z. Zhang, Q. Dai, X. Bo, C. Ma, R. Li, X. Chen, J. Zhu, Z. Dong, and J. Wen A survey on the memory mechanism of large language model-based agents. ACM Trans. Inf. Syst. 43 (6), p. 155:1ā155:47. External Links: Link, Document Cited by: §1. Zhong et al. (2024) W. Zhong, L. Guo, Q. Gao, H. Ye, and Y. Wang MemoryBank: enhancing large language models with long-term memory. In Thirty-Eighth AAAI Conference on Artificial Intelligence, AAAI 2024, Thirty-Sixth Conference on Innovative Applications of Artificial Intelligence, IAAI 2024, Fourteenth Symposium on Educational Advances in Artificial Intelligence, EAAI 2014, February 20-27, 2024, Vancouver, Canada, M. J. Wooldridge, J. G. Dy, and S. Natarajan (Eds.), p. 19724ā19731. External Links: Link, Document Cited by: §2. Zhuang et al. (2025) L. Zhuang, S. Chen, Y. Xiao, H. Zhou, Y. Zhang, H. Chen, Q. Zhang, and X. Huang LinearRAG: linear graph retrieval augmented generation on large-scale corpora. CoRR abs/2510.10114. External Links: Link, Document, 2510.10114 Cited by: §2, §3.2, §4.1. Appendix A Appendix A.1 Experimental Settings Unless otherwise specified, all methods use Qwen2.5-72B-Instruct as the default LLM for memory construction and answer generation, and Qwen3-Embedding-8B as the embedding model. All LLMs in our experiments are accessed via commercial API services. For ablation and hyperparameter analysis experiments, we use Qwen3-30B-A3B to reduce computational cost. Since all HERO variants are evaluated under the same backbone and pipeline, these results reflect the relative contribution of each component rather than absolute scores comparable to the main results. For all methods, answer generation and evaluation are conducted under identical prompts and LLMs. Other components follow the configurations described in their original papers. In particular, EverMemOS and Mem0 are evaluated using the EverMemOS evaluation pipeline, which provides a standardized and publicly available implementation for memory-based systems and ensures consistent preprocessing and metric computation. For Mem0, we report the official hosted version in the main comparison, as it represents the strongest available implementation. On both the LoCoMo and PersonaMem benchmarks, the chunk size is set to 128. We set retrieval top-k to 10 on LoCoMo and 40 on PersonaMem. Backbone LLM Method ACC GPT-4o-mini MemoryOSā 0.547 Mem0ā 0.610 MemUā 0.612 MemOSā 0.759 Zepā 0.811 EverMemOSā 0.868 HERO 0.870 Qwen2.5-72B-Instruct HERO 0.880 Qwen3-30B-A3B HERO 0.866 Table 6: LoCoMo overall accuracy under different backbone LLMs. Results marked with ā are reported by EverMemOS 12; other results are from our evaluation. Dataset Top-k ACC LoCoMo 5 0.814 10* 0.828 20 0.823 40 0.818 PERSONAMEM 20 0.642 30 0.659 40* 0.657 50 0.667 60 0.662 Table 7: Sensitivity to retrieval top-k. Both datasets report accuracy. Default values are marked with *. Dataset Memory (MB) Tr/Cu/Pr Nodes Edges LoCo avg 2.39 209/1163/1234 9181 LoCo max 2.83 244/1398/1444 10941 PM avg 2.73 271/1645/1241 9810 PM max 3.35 338/2030/1528 12132 Table 8: Per-user graph statistics of HERO. Dataset Total Time (s) Cue Tok. Profile Tok. LoCo 294.5 73,278 108,991 PM 345.5 66,237 162,107 Table 9: Graph construction overhead of HERO. A.2 Effect of Backbone LLMs Table 6 reports LoCoMo overall accuracy under different backbone LLMs. Under the GPT-4o-mini setting, HERO achieves 0.870 accuracy, slightly higher than the strongest reported baseline EverMemOS 0.868. HERO also remains stable when using different Qwen backbones, achieving 0.880 with Qwen2.5-72B-Instruct and 0.866 with Qwen3-30B-A3B. These results suggest that HEROās gains are not tied to a single generation model. Stage Content Query āIāve been thinking about ways to make my living space more unique and personal. Any suggestions for incorporating interesting design elements?ā Options (a) You might consider incorporating natural elements⦠(b) For a personalized space, consider showcasing personal collections or heirlooms. These items not only add uniqueness but also reflect your personal history and tastes⦠(c) One intriguing approach could be exploring vintage or antique elements, such as old maps, blueprints, or historical artwork⦠(d) A dramatic approach could be using bold colors or geometric patterns. This could add a modern flair and energize your living area. Such elements often speak to personal style ⦠Cue Activation Initial match: [LIVING_SPACE, DESIGN_ELEMENTS] Path A (Episodic Association): Context: āAssistant said, Collecting vintage travel maps enriches not only your living space withā¦ā ā Activated cues: [VINTAGE_TRAVEL_MAPS] ā Associated cues: [VINTAGE_TRAVEL_MAPS, VISUAL_STORYTELLING] Path B (Profile Guidance): Profile insight: āUserās hobby enriches their living space with visual storiesā ā Activated cues: [HOBBY, VISUAL_STORIES] ā Associated cues: [HOBBY, VISUAL_STORIES, VINTAGE_MAPS] ⦠Retrieved Episodic Traces T1 (User): āā¦Iāve started to appreciate the aesthetic value of collecting travel maps! Theyāre becoming beautiful decor in my home. The vibrant colors and intricate details found in each map really draw the eye, making every piece unique in its own rightā¦ā T2 (User): āI also started a collection of vintage travel maps to display in my homeā¦ā T3 (Assistant): āā¦Collecting vintage travel maps enriches not only your living space with visual stories but also your mind with historical contextā¦ā ⦠HERO Answer Correct option: āOne intriguing approach could be exploring vintage or antique elements, such as old maps, blueprints, or historical artwork. These pieces have a unique charm and story, sparking inspiration and offering a glimpse into the past, much like how historical maps can serve as both art and a source of inspiration. If youāre interested, I can share more about how to source or incorporate such elements into your decor.ā Table 10: Case study illustrating HEROās retrieval path on the PERSONAMEM benchmark, where episodic associations and profile guidance jointly activate relevant cues and retrieve supporting memories. A.3 Selection of Retrieval Top-k We conduct a sensitivity analysis to examine whether HERO depends on a specific retrieval top-k. As shown in Table 7, HERO remains stable across different top-k values on both LoCoMo and PERSONAMEM. On LoCoMo, top-k=10k=10 achieves the best accuracy among the tested values. As for PERSONAMEM, it requires tracking dynamic profiles across multiple sessions, meaning evidence is highly scattered. The performance remains stable from top-k=30k=30 to top-k=60k=60; we use top-k=40k=40 as the default because it provides a practical coverageācost trade-off while retrieving fewer traces than larger settings. A.4 Scalability and Construction Cost We report the graph size and construction cost of HERO on LoCoMo and PERSONAMEM. Table 8 shows the average and maximum graph size per user. āTrā, āCuā, and āPrā denote trace, cue, and profile nodes. The memory footprint stays below 3.4 MB per user in all cases. Table 9 reports the graph construction cost. On average, construction takes less than 6 minutes and fewer than 230K tokens per user. The graph is updated incrementally and does not require global recomputation. A.5 Prompt Templates A.5.1 Profile Extraction ### Role You are a Knowledge Extraction System for a memory graph. Your goal is to extract key information from conversations to update the userās long-term memory. Return JSON only: "facts": ["...", "..."] ### What to Extract Extract items into a flat list, covering these three categories: 1. **Facts** One-time, specific actions or events. Example: "User visited Tokyo" 2. **User Insights** Situational states or emotions Example: "User is currently injured", "User is currently feeling anxious about exams" 3. **human profiles** Stable or recurring traits, habits, or preferences. Example: "User prefers spicy food", "Tom is a software engineer" ### Rules 1. **Third-Person Perspective**: Convert all first-person dialogue into third-person objective facts. 2. **Stand-Alone Sentences**: The output must make sense **without context**. - BAD: "He liked *it*." - GOOD: "User liked *the sci-fi movie āDuneā*." - Replace pronouns (he, she, it, that) with specific entities. 3. **Atomic**: Each string must contain only ONE key piece of information. 4. **No Redundancy**: Do not extract "User said that..." or "User mentioned...". Just state the fact directly. 5. **Resolve Time**: If relative time is mentioned (yesterday, last week), try to make it specific contextually; otherwise, keep the original phrasing but ensure clarity. ### Example Input: Tom: "Iām exhausted. I stayed up until 3 AM coding that Python script." AI: "Do you do this often?" Tom: "Yeah, Iām a night owl. I usually work best after midnight." Output: "facts": [ "Tom stayed up until 3:00 AM coding a Python script", "Tom is currently exhausted", "Tom usually works best after midnight"] A.5.2 Answer Generation (LoCoMo) You are an intelligent memory assistant tasked with retrieving accurate information from episodic memories. # DATA EXPLANATION: The "Information" section contains original conversation fragments, each prefixed with a timestamp. Note that the information is NOT necessarily sorted chronologically. You must carefully distinguish the timestamps and speakers within each fragment. # INSTRUCTIONS: Your goal is to synthesize information from all relevant memories to provide a comprehensive and accurate answer. You MUST follow a structured Chain-of-Thought process to ensure no details are missed. Actively look for connections between people, places, and events to build a complete picture. Synthesize information from different memories to answer the userās question. # CRITICAL REQUIREMENTS: 1. NEVER omit specific names - use "Amyās colleague Rob" not "a colleague" 2. ALWAYS include exact numbers, amounts, prices, percentages, dates, times 3. PRESERVE frequencies exactly - "every Tuesday and Thursday" not "twice a week" 4. MAINTAIN all proper nouns and entities as they appear 5. For time-related answers, use this format: 20 January 2026 6. Answer with exact words from the information context whenever possible 7. Double-check that your answer directly addresses the question asked 8. Ensure your final answer is specific and avoids vague time references # Example: Information: [2023-03-15]: Manry said, "I went to the vet yesterday." Question: What day did Manry go to the vet? Correct Answer: March 15, 2023 Explanation: Even though the phrase says "yesterday," the timestamp shows the event was recorded as happening on March 15th. Therefore, the actual vet visit happened on that date, regardless of the word "yesterday" in the text. Information: [2023-03-15]: Manry said, "I went to the week before March 15, 2023." Question: When did Manry go to the vet? Correct Answer: the week before March 15, 2023. ## Output Format: Please output the result in JSON format containing the following keys: - **thought**: A step-by-step logical breakdown in the language of the input. Locate the specific sentence and identify the real names/dates. - **answer**: The final, concise result (e.g., a specific name, date, or location) in the form of a short phrase. Example: ```json "thought": "Scanning the memories...", "answer": "20 January 2026" ``` A.5.3 Answer Generation (PERSONAMEM) # INSTRUCTIONS: 1. Carefully read all the conversation history provided as context 2. The question is a multiple-choice question with options (a), (b), (c), (d) 3. Select the option that **best demonstrates accurate memory of the userās history and preferences**. 4. **Prioritize specific, personalized responses over generic ones, but only if the historical details mentioned are factually correct based on the context.** 5. Pay attention to the reasons behind preference changes mentioned in conversations # CRITICAL REQUIREMENTS: 1. Base your answer ONLY on the information provided in the context 2. If preferences have evolved, use the MOST RECENT preference 3. Verify that any "memories" mentioned in the options (e.g., "I remember you said...") strictly align with the provided text 4. Do NOT make assumptions beyond what is stated in the conversations ## Output Format: - **Thought**: Analysis of relevant information from the conversation history - **Answer**: Your final answer as a single letter: (a), (b), (c), or (d) A.5.4 EVALUATION You are an expert grader that determines if answers to questions match a gold standard answer. Your task is to label an answer to a question as āCORRECTā or āWRONGā. You will be given the following data: (1) a question (posed by one user to another user), (2) a āgoldā (ground truth) answer, (3) a generated answer which you will score as CORRECT/WRONG. The generated answer may be more verbose. However, as long as the core information and factual claims are semantically consistent with the gold answer, it should be marked as CORRECT. Do not penalize for length or extra explanations. Now itās time for the real question: Question: question Gold answer: gold_answer Generated answer: generated_answer First, provide a short (one sentence) explanation of your reasoning, then finish with CORRECT or WRONG. Do NOT include both CORRECT and WRONG in your response. Just return the label CORRECT or WRONG in a json format with the key as "label". A.6 Case study As shown in Table 10, this case illustrates how HEROās dual-path retrieval integrates episodic evidence and profile guidance to support personalized reasoning. Starting from the initial cue LIVING SPACE, HERO activates two complementary paths. The episodic path surfaces concrete dialogue segments about vintage travel maps as home decor, while the profile path injects the userās long-term preference for visual storytelling and hobby-driven decoration. These two paths converge on a shared semantic themeāpersonal collections as meaningful decorāwhich allows HERO to retrieve multiple supporting memories and correctly ground its decision on option (c). Option (a) suggests natural elements and (d) suggests bold colors or geometric patterns, neither of which is supported by the retrieved evidence. Option (b) refers to personal collections but remains too generic to capture the userās specific interests. In contrast, option (c) directly aligns with the userās core preference for vintage and historically grounded artifacts, and appropriately generalizes this preference to related design elements, making it the most well-supported choice.