Paper deep dive
From Facts to Insights: A Persona-Driven Dual Memory Framework and Dataset for Role-Playing Agents
Rongsheng Zhang, Ruofan Hu, Weijie Chen, Jiji Tang, Junnan Ren, Wanying Wu, Xunuoyan Chen, Tangjie Lv, Tao Jin, Zhou Zhao
Intelligence
Status: succeeded | Model: Gemma-4-26B-A4B | Prompt: intel-v1 | Confidence: 91%
Last extracted: 7/8/2026, 8:23:07 PM
Summary
The paper addresses the limitation of persona-agnostic memory frameworks in long-term role-playing agents, which fail to retain persona-specific interpretations. It introduces RoleMemo, a large-scale dataset with 20,244 queries across 2,052 personas designed to evaluate persona-conditioned reconstructive memory. To solve the problem, the authors propose DualMem, a dual-stream memory framework that decouples memory into factual cognition and persona-conditioned insight. Trained on Qwen3-4B via SFT and RL, DualMem significantly outperforms zero-shot persona-agnostic baselines (e.g., DeepSeek-V3.2) in maintaining persona fidelity and constructing insightful memory over long contexts.
Entities (8)
Relation Signals (6)
RoleMemo â contains â 20,244 queries
confidence 95% ¡ By applying these checks to the entire dataset, we retain 20,244 queries along with the corresponding conversation histories.
DualMem â decoplesmemoryinto â Factual Cognition
confidence 95% ¡ DualMem, which decouples memory into two streams: factual cognition and persona-conditioned insight.
DualMem â decoplesmemoryinto â Insight Cognition
confidence 95% ¡ DualMem, which decouples memory into two streams: factual cognition and persona-conditioned insight.
DualMem â outperforms â DeepSeek V3.2
confidence 90% ¡ outperforms zero-shot persona-agnostic frameworks powered by DeepSeek-V3.2 for sustained persona fidelity.
DualMem-SFT â trainedvia â Supervised Fine-tuning
confidence 90% ¡ Trained through Supervised Fine-Tuning (SFT) and Reinforcement Learning (RL), our framework...
DualMem-RL â trainedvia â Reinforcement Learning
confidence 90% ¡ Trained through Supervised Fine-Tuning (SFT) and Reinforcement Learning (RL), our framework...
Cypher Suggestions (0)
No Cypher suggestions yet.
Abstract
Abstract:While role-playing agents excel in short-term interactions, long-term conversations overwhelm context windows, motivating external memory frameworks. Current systems typically rely on persona-agnostic summarization, which records facts without persona-specific interpretation, yielding generic responses that compromise persona fidelity. To bridge this gap, we introduce RoleMemo, a dataset featuring four reasoning tasks where the factual fragments must be interpreted through the persona to reach the correct answer. Evaluation on RoleMemo exposes critical limitations of persona-agnostic frameworks. We thus propose DualMem, which decouples memory into two streams: factual cognition and persona-conditioned insight. Trained through Supervised Fine-Tuning (SFT) and Reinforcement Learning (RL), our framework with a 4B-parameter model outperforms zero-shot persona-agnostic frameworks powered by DeepSeek-V3.2 for sustained persona fidelity. Our resources are available at this https URL.
Tags
Links
- Source: https://arxiv.org/abs/2605.25693v1
- Canonical: https://arxiv.org/abs/2605.25693v1
Trouble viewing inline? Open PDF directly â
Full Text
90,267 characters extracted from source content.
Expand or collapse full text
From Facts to Insights: A Persona-Driven Dual Memory Framework and Dataset for Role-Playing Agents Rongsheng Zhang1,2, Ruofan Hu1,211footnotemark: 1, Weijie Chen2, Jiji Tang2, Junnan Ren2, Wanying Wu1, Xunuoyan Chen1, Tangjie Lv2, Tao Jin1, Zhou Zhao1 1Zhejiang University 2Fuxi AI Lab, Netease Inc. njuzrs@163.com ruofanhu@zju.edu.cn Equal contribution.Corresponding author. Abstract While role-playing agents excel in short-term interactions, long-term conversations overwhelm context windows, motivating external memory frameworks. Current systems typically rely on persona-agnostic summarization, which records facts without persona-specific interpretation, yielding generic responses that compromise persona fidelity. To bridge this gap, we introduce RoleMemo, a dataset featuring four reasoning tasks where the factual fragments must be interpreted through the persona to reach the correct answer. Evaluation on RoleMemo exposes critical limitations of persona-agnostic frameworks. We thus propose DualMem, which decouples memory into two streams: factual cognition and persona-conditioned insight. Trained through Supervised Fine-Tuning (SFT) and Reinforcement Learning (RL), our framework with a 4B-parameter model outperforms zero-shot persona-agnostic frameworks powered by DeepSeek-V3.2 for sustained persona fidelity. Our resources are available at https://github.com/role2026/rolememo. From Facts to Insights: A Persona-Driven Dual Memory Framework and Dataset for Role-Playing Agents Rongsheng Zhang1,2â thanks: Equal contribution., Ruofan Hu1,211footnotemark: 1, Weijie Chen2, Jiji Tang2, Junnan Ren2, Wanying Wu1, Xunuoyan Chen1, Tangjie Lv2, Tao Jin1, Zhou Zhao1â thanks: Corresponding author. 1Zhejiang University 2Fuxi AI Lab, Netease Inc. njuzrs@163.com ruofanhu@zju.edu.cn 1 Introduction The rapid advancement of large language models (LLMs) has propelled role-playing agents beyond superficial style transfer toward deep emotional companionship Zhang et al. (2025b); Wang et al. (2025b); Zhang et al. (2025a). To achieve this, agents must filter the interaction history through their assigned persona, retaining what matters for in-character response. However, as conversation grows, the underlying LLMâs attention is diluted by trivial information, undermining this persona filter and compromising fidelity Wu et al. (2024). Existing methods tackle this challenge by adopting an agentic memory framework, where a persona-agnostic model summarizes past conversations into neutral facts, for the role-playing agent to retrieve and utilize at inference time. However, role-playing agents are designed to emulate human cognition, where memory is an active cognitive process rather than a neutral fact repository. Cognitive science describes this as reconstructive memory, where past experience is interpreted through oneâs perspective rather than literally recalled Bartlett (1995). As Fig. 1 illustrates, current persona-agnostic memory records âlate-night gamingâ as a neutral fact, while a psychologist agentâs memory should instead filter and store it as âbehavioral fatigueâ. Without that persona-conditioned interpretation in memory, the agent retrieves only the surface fact at inference time and must reinterpret it from scratch He et al. (2025). The reconstruction is unreliable He et al. (2025); Chen et al. (2026), as the persona cues are diluted in the retrieved long context. The psychologist then falls back to a generic âyou should rest moreâ reply that misses the persona-conditioned reading. Figure 1: Persona-agnostic memory stores the neutral fact, forcing the agent to reinterpret it at inference time and fall back to a generic reply. Persona-driven memory stores a persona-conditioned interpretation grounded in the fact, enabling an in-character response. Table 1: Comparison of RoleMemo with existing memory benchmarks. RoleMemo features: (1) Cross-Session Reasoning linking clues across distant turns, (2) Deep Persona Interpretation mapping facts to persona-specific insights, (3) In-Character Evaluation of role-playing fidelity, and (4) LLM Fine-Tuning data for memory construction. The Context Length column for RoleMemo reports the maximum evaluation length; training uses 32k contexts. Dataset Persona Topic Context Total Cross-Session Deep Persona In-Character LLM Fine-Tuning Count Count Length Query Reasoning Interpretation Evaluation Data LoCoMo 100 N/A 9k 7,512 Ă Ă Ă Ă LongMemEval N/A N/A 1.5M 500 â Ă Ă Ă MemAgentBench N/A N/A 1.44M 2,071 â Ă Ă Ă PrevEval N/A 20 100k 3,000 Ă Ă Ă Ă PersonaMem-v1 180 15 1.0M 2,700 â Ă Ă Ă PersonaMem-v2 1,000 335 128k 5,000 â Ă Ă â RoleMemo (Ours) 2,052 1,702 256k 20,244 â â â â Current evaluation systems for agentic memory further mask this flaw. Mainstream benchmarks primarily evaluate fact retrieval through needle-in-a-haystack paradigms Maharana et al. (2024); Hu et al. (2025). Persona-agnostic frameworks easily succeed by extracting universally salient facts, such as phone numbers or specific dates. As a result, these facts are sufficient to resolve queries regarding information localization tasks, bypassing the need for persona-conditioned interpretation. To bridge this gap, we introduce RoleMemo, a large-scale dataset for evaluating agentic memory in role-playing. RoleMemo targets what prior benchmarks miss: persona-conditioned reconstructive memory over long, cross-session histories, which we denote insight. As Tab. 1 illustrates, RoleMemo spans 1,702 topics with conversation histories up to 256k tokens, comprising a training set of 1,914 personas with 18,088 queries and an evaluation set of 138 personas with 2,156 queries. It features four query types inspired by social cognition frameworks Epley et al. (2004). To evaluate these tasks, we measure retrieval accuracy and memory-driven response quality with in-character evaluation following CharacterEval Tu et al. (2024). Evaluations on RoleMemo reveal that persona-agnostic memory frameworks struggle with these specialized tasks. We thus propose DualMem, a persona-driven dual memory framework for high-fidelity role-playing. Specifically, DualMem first captures objective events as factual cognition, then derives persona-conditioned interpretations from these facts as insight cognition. A memory-specialized 4B model trained via SFT Ouyang et al. (2022) and RL Guo et al. (2025) further drives this construction, yielding DualMem-SFT and DualMem-RL that outperform zero-shot persona-agnostic frameworks on role-playing quality. Our contributions are summarized as follows: ⢠We construct RoleMemo, the first benchmark for persona-conditioned reconstructive memory in role-playing scenarios. ⢠We evaluate nine zero-shot persona-agnostic frameworks on RoleMemo, revealing a structural insight bottleneck that persists regardless of driving model scale. ⢠We propose DualMem, which decouples memory into factual and insight cognition. With training, our 4B memory model outperforms baselines driven by 685B models on role-playing quality. 2 Related Work 2.1 Persona-Agnostic Memory Frameworks Role-playing agents aim to provide emotional companionship Zhang et al. (2025b); Wang et al. (2025b); Zhang et al. (2025a). However, as interaction history expands, these models suffer from attention dilution and struggle to maintain persona fidelity over long contexts. Early solutions employ Retrieval-Augmented Generation (RAG) to search uncompressed conversation histories Zerhoudi and Granitzer (2024); Yang et al. (2025b); Wang et al. (2025c); Park et al. (2025), imposing storage overhead. Recent studies shift toward agentic memory frameworks. They use persona-agnostic models to iteratively extract key facts from dialogues and update prior memory through hierarchical structuring Zhang et al. (2026); Wang et al. (2025a); Wang and Chen (2025), lightweight compression Fang et al. (2025); Liu et al. (2026), and task-driven predictive modeling Chhikara et al. (2025); Kim et al. (2025). Nevertheless, these approaches prioritize universally salient facts over persona-specific nuances, failing to provide the interpretation necessary for high-fidelity role-playing. A parallel line of work targets long-horizon task-solving agents, where higher-level memory is constructed by reflecting on execution traces like Reflexion Shinn et al. (2023); Zhai et al. (2025); Wu et al. (2025). Such memory abstracts experience for future task completion, a goal distinct from persona-conditioned interpretation in role-playing memory. We compare them in detail in App. A. Figure 2: The RoleMemo dataset and DualMem framework. Left: The four-phase dataset construction pipeline. We generate queries that require agents to synthesize scattered facts via persona-driven insights to formulate answers. Right: Our proposed DualMem framework. It maintains a unified Memory Bank that decouples factual and insight cognition while preserving their links. We explore two training mechanisms on RoleMemo: SFT and RL. 2.2 Memory and Role-Playing Benchmarks Benchmarking persona-driven agentic memory also remains underexplored. Current memory benchmarks Maharana et al. (2024); Wu et al. (2024); Pakhomov et al. (2025); Hu et al. (2025) evaluate agentic memory frameworks primarily through explicit fact retrieval. By adopting a needle-in-a-haystack paradigm Nelson et al. (2024), they prioritize literal matching between queries and keys, failing to evaluate how memory informs persona-conditioned responses. Conversely, role-playing benchmarks (Tu et al., 2024; Chen et al., 2024; Zhou et al., 2025) emphasize persona fidelity but confine memory evaluation to narrow conversation windows. They measure short-term conversational fluency rather than the retention of long contexts. This gap necessitates a benchmark to evaluate the fidelity of personas across extended interactions. 3 RoleMemo Dataset Construction We introduce RoleMemo, a dataset in which queries require reconstructing scattered facts into insights through persona-driven interpretation. As illustrated in the left part of Fig. 2, the construction process consists of four phases. We employ DeepSeek-V3.2 Liu et al. (2025) for dataset generation, detailing prompts and parameters in App. B. Effective evaluation of persona-driven interpretation requires insights that capture persona-specific stances grounded in lived experience. We instantiate 2,052 personas across 23 domains, each defined by professional backgrounds and hobbies, with details in App. C. Since identity-level profiles do not expose persona-specific judgments, we instantiate each persona as a set of concrete insights that can be queried and evaluated. For instance, an advocate for family equity might hold that âself-sufficient children are exploited for favored siblings,â a judgment that only this personaâs background would produce. This process yields 26,636 insights. To ground these insights, we generate discrete factual fragments that remain neutral in isolation but reveal meaning through persona-driven interpretation. For the insight regarding family equity, the factual fragments include âworks late to self-fund tuitionâ and âthe family provides assets to a siblingâ. These pairings of facts and insights form the core unit of RoleMemo. Answering any query requires the agent to interpret retrieved facts rather than relying on surface-level retrieval. 3.1 Query-Answer Pair Construction Using these fact-insight pairs, we design queries with ground-truth responses across four types inspired by social cognition frameworks Epley et al. (2004). Each query requires insight instead of scattered facts to generate answers. Specifically, Interpretive Attribution infers unstated motives from behavioral patterns, Contradiction Revelation detects inconsistencies between values and actions, Value Judgment evaluates situations through persona ethics, and Decision Guidance recommends actions aligned with principles. As shown in Fig. 2, the query âWhy am I so exhausted?â belongs to Interpretive Attribution type. No single fact reveals the underlying pattern, but combined they expose a motive recognizable only to a family equity advocate, producing the response âYour overtime is subsidizing the luxury of a sibling.â 3.2 Dense Conversational Weaving Facts must remain dormant within natural conversation until a query forces their retrieval. We embed these factual fragments into contexts by generating conversation histories through a layered process. The process begins by selecting topics from 1,702 topics aligned with the background of each persona, followed by the generation of conversational blocks comprising 24 turns between the persona and an interlocutor. To increase retrieval difficulty, we introduce multiple-entity distractions related to the selected topic within each block. Factual fragments are then injected under naturalistic constraints, ensuring they blend contextually, depend syntactically on surrounding utterances, and remain incidental to the focus. Finally, by interleaving evidence-rich blocks with casual conversation at varying densities, we scale histories from 32k to 256k tokens, with multiple queries per persona. 3.3 Quality Assurance RoleMemo validates each instance through four automated checks. First, we verify insight specificity by confirming that insight requires the persona rather than generic domain knowledge. Second, we verify memory-necessity by prompting the role-playing agent to answer queries without the history, ensuring all queries require retrieval and interpretation rather than common-sense reasoning. Third, we enforce difficulty control by confirming the evidence appears only in single turns, preventing the exploitation of high-frequency patterns. Fourth, we guarantee safety by filtering all conversations for violence and privacy violations. To validate the reliability of these automated checks, we randomly sampled 500 instances for human review across all criteria, achieving agreement with Cohenâs Îş=0.83Îş=0.83. By applying these checks to the entire dataset, we retain 20,244 queries along with the corresponding conversation histories. 4 Persona-Driven Memory Framework 4.1 Decoupled Dual Memory Framework High-fidelity role-playing requires agents to extract and interpret conversation details through their persona. However, mainstream memory frameworks adopt a neutral perspective, reducing interactions to isolated facts without persona-conditioned interpretation. To address this gap, as shown in Fig. 2, we design DualMem around two complementary cognition types. Specifically, factual cognition captures objective events and semantic details from conversation history, preserving the informational foundation maintained by existing approaches. Insight cognition, our core contribution, derives persona-driven interpretations from factual cognition. Each insight references its grounding facts to maintain interpretive traceability at inference time. These cognitions are jointly stored in a unified memory bank. 4.2 Persona-guided Memory Construction We propose an incremental memory construction process to operationalize the dual framework. Following Yu et al. (2025), we partition the conversation history into fixed-size chunks and process them sequentially. Along this pipeline, we maintain a global memory bank M=âi=1TMiM= _i=1^TM_i, accumulating cognitions MiM_i generated at each step i. To generate this step-wise cognition MiM_i, memory construction model fθf_θ processes persona profile p, chunk CiC_i, and prior memory M<iM_<i as prompt input. First, the model extracts factual cognition FiF_i, capturing objective events from CiC_i to ensure details relevant to the persona are retained. Then, the model constructs insight cognition IiI_i by interpreting FiF_i and relevant history from M<iM_<i through the persona. After processing all T chunks, a separate role-playing agent fĎf_Ď generates the response y y to query q using cognition retrieved from the complete memory M. Formally: Mi M_i =Fi,Ii=fθâ(Ci,M<i,p), =\F_i,I_i\=f_θ(C_i,M_<i,p), (1) y y =fĎâ(p,q,ââ(M,q)), =f_Ď(p,q,R(M,q)), where p denotes the persona, FiF_i and IiI_i are factual and insight cognition at step i, and ââ(â ,â )R(¡,¡) retrieves relevant cognition for query q. Notably, during retrieval, when an insight cognition is retrieved, its linked factual cognitions are also included to provide grounding evidence for fĎf_Ď. This design ensures interpretations remain anchored in factual evidence. 4.3 Training Mechanisms on RoleMemo We explore SFT and RL to endow fθf_θ with memory construction capabilities from RoleMemo, yielding DualMem-SFT and DualMem-RL respectively, both initialized from the base model. Under SFT, we train fθf_θ for dual memory operations through instruction tuning. Using conversation chunks from RoleMemo, we optimize two objectives. First, the model extracts factual cognition FiF_i from CiC_i and p. Second, given these facts and relevant information from M<iM_<i, the model generates insight cognition IiI_i through persona p. Furthermore, to mitigate forced interpretation hallucinations, we incorporate manually constructed negative samples into the training data: when the evidence from M<iM_<i and FiF_i is insufficient, the target insight is set to null (Ii=â I_i= ). Formalizing this decoupled generation, we maximize the log-likelihood across T independent chunks: âSFT(θ)=âi=1T( _SFT(θ)= _i=1^T ( logâĄPθâ(FiâŁCi,p)+ P_θ(F_i C_i,p)+ (2) logPθ(IiâŁFi,M<i,p)) P_θ(I_i F_i,M_<i,p) ) Under RL, we extend Memagentâs Yu et al. (2025) multi-turn conversation framework for dual memory construction. Given the entire long histories from RoleMemo, fθf_θ autonomously executes multiple rounds of cognition construction without intermediate supervision, generating a complete memory trajectory Ď=Mii=1TĎ=\M_i\_i=1^T, where Mi=Fi,IiM_i=\F_i,I_i\. The fixed role-playing agent fĎf_Ď then generates response y y to query q using cognition retrieved from the memory bank M. GPT-5.1 evaluates responses using two reward functions: Format Compliance and In-Character Quality Tu et al. (2024), yielding a combined scalar reward Râ(y^Ď)R( y_Ď). Following multi-turn DAPO, we treat each multi-round trajectory as a single rollout. By computing a group-normalized advantage A^Ď A_Ď from the scalar rewards and broadcasting it uniformly to all tokens across the trajectory, we update fθf_θ to maximize the expected return: RLâ(θ)=fθâ[1|Ď|ââi,tminâĄ(ri,tâA^Ď,clipâ(ri,t,1âĎľl,1+Ďľh)âA^Ď)],J_RL(θ)=E_f_θ\! [\, 1|Ď| _i,t \! (r_i,t\, A_Ď,\;clip(r_i,t,1- _l,1+ _h)\, A_Ď ) ], (3) where ri,tr_i,t is the token-level importance ratio and |Ď||Ď| is the trajectory token count. The same judge is used at evaluation time. Sec. 6.1 verifies that this introduces no judge bias, via cross-judge and human-agreement analyses. 5 Experiment Results 5.1 Experimental Setup Training Details We train memory construction models on 8 NVIDIA A800 GPUs using Qwen3-4B Yang et al. (2025a). For SFT, we use a 1Ă10â51Ă 10^-5 learning rate with cosine scheduling, 0.05 warmup ratio, and effective batch size 32 over 1000 steps. For RL training, we use a 1Ă10â61Ă 10^-6 learning rate, 20 warmup steps, batch size 32, and 8 rollouts per batch for 500 steps. Additional hyperparameters are provided in App. D. Implementation Details We evaluate on the RoleMemo evaluation split with 32k-token conversation histories, ensuring no persona overlap with the training set. Nine baselines are compared with their native zero-shot configurations, including a NoMem setting (context only) and eight persona-agnostic memory frameworks: HiMem Zhang et al. (2026), O-Mem Wang et al. (2025a), Mirix Wang and Chen (2025), LightMem Fang et al. (2025), SimpleMem Liu et al. (2026), Mem0 Chhikara et al. (2025), PreMem Kim et al. (2025), and Memalpha Wang et al. (2025d). Baselines use DeepSeek-V3.2 (685B) as the memory construction model, except Memalpha, which uses its fine-tuned checkpoint. We further validate robustness to the choice of memory construction model in App. E. For a fair comparison, we replace each methodâs retrieval component with Qwen3-Embedding-0.6B Zhang et al. (2025c), retrieving the top 10 most relevant entries per query, with ablations in App. F confirming this provides sufficient context breadth. Finally, each method employs the same role-playing agent ByteDance (2024) to generate responses. Evaluation Metrics Recall@10 measures whether the top 10 retrieved entries contain query-relevant ground-truth entries, evaluated separately for factual and insight memory. For role-playing, we adapt CharacterEval and employ GPT-5.1 OpenAI (2025) as an LLM judge to score responses on a 5-point scale (averaged over three independent judge calls on fixed model outputs) across four dimensions: information richness, logical quality, character consistency, and conversational attractiveness. More details of metric definitions are in App. G. Table 2: Memory construction quality (Fact and Insight Recall@10) across four task types. The symbol â denotes frameworks that impose a fixed hierarchical schema on memory organization. Framework Interpretive Attribution Contradiction Revelation Value Judgment Decision Guidance Average Fact Insight Fact Insight Fact Insight Fact Insight Fact Insight Baseline Agentic Memory Framework Memalphaâ 0.15 0.05 0.23 0.10 0.21 0.10 0.21 0.09 0.20 0.08 HiMemâ 0.37 0.22 0.35 0.36 0.37 0.27 0.38 0.23 0.37 0.27 Mirixâ 0.43 0.12 0.37 0.15 0.43 0.18 0.45 0.13 0.42 0.15 LightMem 0.70 0.31 0.72 0.35 0.68 0.39 0.65 0.29 0.69 0.33 O-Memâ 0.70 0.27 0.66 0.38 0.70 0.35 0.66 0.30 0.68 0.33 PreMem 0.69 0.37 0.70 0.35 0.65 0.37 0.70 0.31 0.69 0.35 SimpleMem 0.69 0.35 0.70 0.41 0.70 0.48 0.71 0.41 0.70 0.41 Mem0 0.74 0.30 0.72 0.36 0.74 0.45 0.76 0.34 0.74 0.36 DualMem Framework DualMem-SFT 0.76 0.69 0.77 0.61 0.74 0.65 0.77 0.65 0.76 0.65 DualMem-RL 0.80 0.78 0.74 0.71 0.75 0.76 0.79 0.67 0.77 0.73 5.2 Memory Quality Evaluation We first examine the memory construction quality of various frameworks via two dimensions: Fact and Insight. Specifically, fact recall evaluates whether the framework has extracted the necessary information to answer a query, while insight recall assesses whether the framework has constructed deeper interpretations from this information. Fact Extraction Quality Tab. 2 reveals that memory architecture significantly affects fact recall. Hierarchical frameworks, including HiMem and Mirix, achieve only 0.37 to 0.42 average recall, as their fixed-schema structures constrain retention of fine-grained facts. O-Mem reaches 0.68, while non-hierarchical frameworks attain 0.69 to 0.74. DualMem-RL and DualMem-SFT reach 0.77 and 0.76, exceeding all DeepSeek-V3.2-driven baselines. This fact extraction ability also generalizes beyond RoleMemo. On LoCoMo (Maharana et al., 2024), DualMem-RL improves over the untrained Qwen3-4B, confirming that RoleMemo training transfers to out-of-distribution factual recall, as detailed in App. H. Insight Construction Quality Despite high fact recall, all baselines struggle with insight construction. The best baseline reaches only 0.41 average insight recall, suggesting these frameworks do not generalize to cross-event persona-driven reasoning. In contrast, DualMem-RL reaches 0.73 and DualMem-SFT achieves 0.65, both above all baselines. To complement this matching-based metric, we score insight content with an independent LLM judge that does not observe RoleMemo annotations (App. I). Both DualMem variants produce high-quality insights approaching RoleMemoâs ground-truth under independent assessment. Moreover, RL training outperforms SFT on both insight recall and LLM-judge quality, consistent with trajectory-level optimization generalizing beyond individual examples. Task-Specific Performance Analysis Performance varies across task types, with Decision Guidance exhibiting the lowest insight recall across all frameworks. For instance, DualMem-RL achieves 0.73 insight recall on average but only 0.67 on Decision Guidance. We attribute this gap to construction difficulty rather than retrieval: fact recall remains comparable across tasks, but Decision Guidance requires inferring character choices from facts with indirect thematic relevance, making insight synthesis harder. 5.3 Role-playing Quality Evaluation Having established that our approach constructs higher-quality memory, we now evaluate its downstream impact on role-playing performance. Overall Performance and Dimension Analysis As shown in Tab. 3, despite top-performing baselines achieving fact recall comparable to our method, existing frameworks fail to translate memory quality into effective role-playing performance. This gap stems from the absence of interpretive guidance: without it, the role-playing agent cannot discern how to utilize retrieved facts from the personaâs perspective, leaving them underutilized. By contrast, our framework constructs insight cognition that provides directional context, enabling the agent to synthesize retrieved facts into character-consistent responses. Consequently, DualMem-RL achieves 4.22 information richness and 3.78 logical quality, outperforming the strongest baseline Mem0 by 0.12 and 0.23 points, respectively. This advantage extends to persona alignment, with 4.37 character consistency and 4.27 conversational attractiveness, yielding a 4.16 overall average that surpasses the 3.94 to 4.01 range of persona-agnostic frameworks. The ranking holds on a held-out subset of 200 queries regenerated by Claude-Sonnet-4.6, suggesting that the advantage stems from persona-conditioned interpretation rather than generator-specific style (App. J). Table 3: Role-playing quality evaluation. Info., Logic, Consis., and Attr. denote information richness, logical quality, character consistency, and conversational attractiveness. Per-cell standard deviations are in App. K. Framework Info. Logic Consis. Attr. Average Base Setting NoMem 3.65 3.29 4.08 4.02 3.76 Baseline Agentic Memory Framework Memalphaâ 4.05 3.51 4.15 4.08 3.95 HiMemâ 4.05 3.49 4.13 4.08 3.94 Mirixâ 4.06 3.54 4.16 4.13 4.01 LightMem 4.07 3.55 4.19 4.13 4.00 O-Memâ 4.07 3.54 4.17 4.12 3.98 PreMem 4.09 3.56 4.18 4.13 3.99 SimpleMem 4.10 3.53 4.15 4.13 3.97 Mem0 4.10 3.55 4.18 4.15 4.00 DualMem Framework DualMem-SFT 4.18 3.77 4.35 4.26 4.15 DualMem-RL 4.22 3.78 4.37 4.27 4.16 â w/o Insight 4.12 3.57 4.19 4.16 4.01 â w/o Fact 3.98 3.64 4.25 4.15 4.00 â w/o Training 4.12 3.62 4.12 4.19 4.02 Ablation Analysis Tab. 3 also presents ablation variants measuring the contribution of training and each memory component. Removing RoleMemo training (w/o Training) while retaining the dual-stream architecture yields only 4.02 on average, confirming that training rather than architecture alone drives the gains. Among trained variants, removing insight cognition (w/o Insight) drops logical quality from 3.78 to 3.57, within 0.02 of Mem0âs 3.55, confirming that inference-time reinterpretation is unreliable without stored insight He et al. (2025); Chen et al. (2026). Removing fact cognition (w/o Fact) reduces information richness from 4.22 to 3.98, with character consistency dropping modestly to 4.25 as insight partially compensates. Together, training, fact cognition, and insight cognition each contribute independently to high-fidelity role-playing. 6 Analysis 6.1 Reliability of LLM-based Evaluation We assess the validity of LLM-based evaluation on two dimensions: human-LLM agreement and cross-judge stability. This involves 200 randomly sampled queries from the evaluation set, with detailed protocols in App. L. Tab. 4 reports Pearson correlations among two human annotators and GPT-5.1 judge. The results show inter-annotator agreement (r=0.88r=0.88) and correlation between each annotator and the LLM judge (r=0.82r=0.82 and 0.840.84), indicating that GPT-5.1 scores track human judgment rather than reflecting optimization toward a specific reward signal. To further verify stability across different judge models, Tab. 5 compares GPT-5.1 scores against Gemini-3-Pro Team et al. (2023). Agreement rates exceed 99% (defined as mean relative score deviation; App. L), with absolute score differences below 0.04 across all dimensions. The relative performance hierarchy remains consistent across both judges. DualMem-RL maintains its ranking advantage across all baselines and dimensions, indicating that the evaluation results are stable across judge models. Table 4: Pearson correlation coefficients between human annotators and the LLM judge. Human1 Human2 LLM Judge Human1 â 0.88 0.82 Human2 0.88 â 0.84 LLM Judge 0.82 0.84 â Table 5: Cross-judge stability between GPT-5.1 and Gemini-3-Pro, measured as mean relative score deviation across four dimensions. Framework Judge Info. Logic Consis. Attr. Agreement NoMem GPT5.1 3.65 3.29 4.08 4.02 99.32% Gemini-3-Pro 3.68 3.32 4.10 4.04 O-Mem GPT5.1 4.07 3.54 4.17 4.12 99.29% Gemini-3-Pro 4.09 3.58 4.19 4.15 DualMem-RL GPT5.1 4.22 3.78 4.37 4.27 99.28% Gemini-3-Pro 4.25 3.81 4.39 4.31 Table 6: Qualitative comparison in a psychological counseling scenario. All responses are generated by the same role-playing agent conditioned on memory retrieved from each framework. GT Memory Facts: Ms. Zhang missed choir due to tuberculosis treatment; neighbors have been avoiding her lately. Insight: Social withdrawal stems from fear of stigma, not physical discomfort. Query Why is Ms. Zhang reluctant to participate in community activities lately? Role-playing Agent â with NoMem She might feel lonely. For example, she talks to herself at the TV. â with O-Mem She might still be recovering from tuberculosis. We should check if her symptoms have improved. â with DualMem-SFT Sheâs probably feeling down after being sick for so long. Letâs check if sheâs developing depression and might need medication. â with DualMem-RL Sheâs probably worried about how people see her now. Letâs talk about how it felt when neighbors started avoiding her. 6.2 Transferability of Insight Construction We investigate whether existing frameworks can reproduce these persona-task gains via prompt engineering alone. We experiment on O-Mem and PreMem, two frameworks using DeepSeek-V3.2 whose memory pipelines require no structural modification. Modified prompts are provided in App. M. As shown in Tab. 7, incorporating insights yields 0.09 (O-Memâ) and 0.05 (PreMemâ) point improvements, yet these gains are smaller than those of our 4B model trained on RoleMemo. Moreover, as shown in App. N, adding the insight slot does not degrade baselinesâ factual recall on external benchmark LoCoMo, confirming that insight interpretation adds capability without sacrificing factual performance. Table 7: Performance gains from incorporating persona-driven insights into existing frameworks. Methods with â use modified prompts to generate insights. Framework Info. Logic Consis. Attr. Average O-Mem 4.07 3.54 4.17 4.12 3.98 O-Memâ 4.15 (+0.08) 3.67 (+0.13) 4.29 (+0.12) 4.17 (+0.05) 4.07 (+0.09) PreMem 4.09 3.56 4.18 4.13 3.99 PreMemâ 4.11 (+0.02) 3.61 (+0.05) 4.25 (+0.07) 4.17 (+0.04) 4.04 (+0.05) 6.3 Robustness Across Context Lengths To evaluate the robustness of our framework under extended interactions, we scale the context length from 32k to 256k tokens. Fig. 3 illustrates the performance of different frameworks across varying context lengths. As context increases, all persona-agnostic baseline frameworks exhibit a significant performance decline. This suggests that accumulated noise progressively degrades the quality of extracted memories, hindering effective utilization by the role-playing agent. In contrast, our DualMem-RL demonstrates remarkable stability across all scales, maintaining a high average score of 4.12 even at 256k tokens. However, DualMem-SFT gradually declines, primarily because SFT optimization lacks the end-to-end trajectory learning that enables RL to maintain interpretive quality under noisy conditions. This underscores the importance of RL training for robust long-context memory construction. Figure 3: Performance across conversation lengths from 32k to 256k tokens. Our frameworks maintain stability while baselines degrade with increasing context. 6.4 Case Study Tab. 6 presents a psychological counseling case that illustrates how different memory frameworks support persona-driven conversation. When queried about recent social withdrawal, the role-playing agent without memory generates fabricated details due to absent historical context. O-Mem retrieves relevant factual evidence but lacks persona-driven insight as guidance, leaving the agent unable to generate high-fidelity responses. Conversely, DualMem-RL recognizes social avoidance patterns, applying anticipated stigma insights to diagnose underlying fear of judgment. Despite generating insights, DualMem-SFT attributes withdrawal to prolonged illness rather than social stigma, reflecting misaligned interpretation. We further examine the limitations of DualMem-RL in App. O. 7 Conclusion Existing agentic memory frameworks adopt persona-agnostic summarization, failing to provide the interpretive insight necessary for effective role-playing. We introduce RoleMemo, a dataset requiring persona-driven interpretation over conversation histories, revealing this limitation. To address this gap, we propose a dual memory framework constructing factual and insight cognition through specialized training. Results show our approach improves role-playing quality, surpassing persona-agnostic baselines. Future work will explore scaling to richer, longer contexts. 8 Limitations While RoleMemo advances persona-driven memory construction, several limitations remain. First, our evaluation extends conversation histories to 256k tokens, yet real-world applications may involve multi-million token histories requiring more efficient incremental processing. Second, our training encompasses 2,052 personas across 23 domains, but generalization to unbounded real-world persona diversity remains untested in naturalistic deployment. Moreover, since RoleMemo is generated by a single LLM, the dataset may encode that generatorâs particular style of persona reasoning, and performance on RoleMemo may partially reflect alignment with the generator rather than a fully model-agnostic notion of persona-driven interpretation. Third, RL training via DAPO is computationally intensive, which may limit accessibility for resource-constrained researchers. Fourth, our evaluation relies primarily on LLM-as-judge with subset human validation. Longitudinal user studies would provide complementary evidence for sustained persona fidelity. Finally, RoleMemo focuses on four cognitive reasoning tasks and does not exhaustively cover the full spectrum of companionship capabilities such as emotional regulation or multimodal interaction. 9 Ethics Statement RoleMemo uses entirely synthetic data generated by DeepSeek-V3.2 without real user information, with automated safety filtering to eliminate violence and privacy violations. However, we emphasize that systems trained on this dataset should not replace professional services in sensitive domains such as mental health counseling, and deployment in clinical settings requires rigorous validation and human oversight. We also caution that persona-driven insight generation may produce confident psychological or interpretive statements without sufficient evidential grounding; downstream applications should surface uncertainty and avoid presenting model inferences as authoritative judgments. The dataset may inadvertently encode stereotypes from the underlying LLM despite our quality controls. Training requires significant computational resources, contributing to environmental impact. To promote responsible research, we release complete training details, prompts, and evaluation protocols in the Appendix, and plan to open-source the dataset and code under permissive licenses with usage guidelines emphasizing research purposes. References Anthropic (2025) Anthropic. 2025. Claude. https://w.anthropic.com/claude. Bartlett (1995) Frederic Charles Bartlett. 1995. Remembering: A study in experimental and social psychology. Cambridge university press. ByteDance (2024) ByteDance. 2024. Doubao: AI character chat. https://w.doubao.com. Accessed: 2026-03-13. Chen et al. (2024) Hongzhan Chen, Hehong Chen, Ming Yan, Wenshen Xu, Gao Xing, Weizhou Shen, Xiaojun Quan, Chenliang Li, Ji Zhang, and Fei Huang. 2024. Socialbench: Sociality evaluation of role-playing conversational agents. In Findings of the Association for Computational Linguistics: ACL 2024, pages 2108â2126. Chen et al. (2026) Tiantian Chen, Jiaqi Lu, Ying Shen, and Lin Zhang. 2026. Es-memeval: Benchmarking conversational agents on personalized long-term emotional support. In Proceedings of the ACM Web Conference 2026, pages 5810â5821. Chhikara et al. (2025) Prateek Chhikara, Dev Khant, Saket Aryan, Taranjeet Singh, and Deshraj Yadav. 2025. Mem0: Building production-ready ai agents with scalable long-term memory. arXiv preprint arXiv:2504.19413. Epley et al. (2004) Nicholas Epley, Boaz Keysar, Leaf Van Boven, and Thomas Gilovich. 2004. Perspective taking as egocentric anchoring and adjustment. Journal of personality and social psychology, 87(3):327. Fang et al. (2025) Jizhan Fang, Xinle Deng, Haoming Xu, Ziyan Jiang, Yuqi Tang, Ziwen Xu, Shumin Deng, Yunzhi Yao, Mengru Wang, Shuofei Qiao, and 1 others. 2025. Lightmem: Lightweight and efficient memory-augmented generation. arXiv preprint arXiv:2510.18866. Guo et al. (2025) Daya Guo, Dejian Yang, Haowei Zhang, Junxiao Song, Peiyi Wang, Qihao Zhu, Runxin Xu, Ruoyu Zhang, Shirong Ma, Xiao Bi, and 1 others. 2025. Deepseek-r1: Incentivizing reasoning capability in llms via reinforcement learning. arXiv preprint arXiv:2501.12948. He et al. (2025) Junqing He, Liang Zhu, Rui Wang, Xi Wang, Gholamreza Haffari, and Jiaxing Zhang. 2025. Madial-bench: Towards real-world evaluation of memory-augmented dialogue generation. In Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers), pages 9902â9921. Hu et al. (2025) Yuanzhe Hu, Yu Wang, and Julian McAuley. 2025. Evaluating memory in llm agents via incremental multi-turn interactions. arXiv preprint arXiv:2507.05257. Kim et al. (2025) Sangyeop Kim, Yohan Lee, Sanghwa Kim, Hyunjong Kim, and Sungzoon Cho. 2025. Pre-storage reasoning for episodic memory: Shifting inference burden to memory for personalized dialogue. arXiv preprint arXiv:2509.10852. Liu et al. (2025) Aixin Liu, Aoxue Mei, Bangcai Lin, Bing Xue, Bingxuan Wang, Bingzheng Xu, Bochao Wu, Bowei Zhang, Chaofan Lin, Chen Dong, and 1 others. 2025. Deepseek-v3. 2: Pushing the frontier of open large language models. arXiv preprint arXiv:2512.02556. Liu et al. (2026) Jiaqi Liu, Yaofeng Su, Peng Xia, Siwei Han, Zeyu Zheng, Cihang Xie, Mingyu Ding, and Huaxiu Yao. 2026. Simplemem: Efficient lifelong memory for llm agents. arXiv preprint arXiv:2601.02553. Maharana et al. (2024) Adyasha Maharana, Dong-Ho Lee, Sergey Tulyakov, Mohit Bansal, Francesco Barbieri, and Yuwei Fang. 2024. 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), pages 13851â13870. Nelson et al. (2024) Elliot Nelson, Georgios Kollias, Payel Das, Subhajit Chaudhury, and Soham Dan. 2024. Needle in the haystack for memory based large language models. arXiv preprint arXiv:2407.01437. OpenAI (2025) OpenAI. 2025. GPT-5. https://openai.com/index/gpt-5-1/. Accessed: 2026-03-17. Ouyang et al. (2022) Long Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida, Carroll Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, and 1 others. 2022. Training language models to follow instructions with human feedback. Advances in neural information processing systems, 35:27730â27744. Pakhomov et al. (2025) Egor Pakhomov, Erik Nijkamp, and Caiming Xiong. 2025. Convomem benchmark: Why your first 150 conversations donât need rag. arXiv preprint arXiv:2511.10523. Park et al. (2025) Jeiyoon Park, Yongshin Han, Minseop Kim, and Kisu Yang. 2025. Dynamic context adaptation for consistent role-playing agents with retrieval-augmented generations. arXiv preprint arXiv:2508.02016. Park et al. (2023) Joon Sung Park, Joseph OâBrien, Carrie Jun Cai, Meredith Ringel Morris, Percy Liang, and Michael S Bernstein. 2023. Generative agents: Interactive simulacra of human behavior. In Proceedings of the 36th annual acm symposium on user interface software and technology, pages 1â22. Qiu et al. (2025) Jiahao Qiu, Xuan Qi, Hongru Wang, Xinzhe Juan, Yimin Wang, Zelin Zhao, Jiayi Geng, Jiacheng Guo, Peihang Li, Jingzhe Shi, and 1 others. 2025. Alita-g: Self-evolving generative agent for agent generation. arXiv preprint arXiv:2510.23601. Schwartz (1992) Shalom H Schwartz. 1992. Universals in the content and structure of values: Theoretical advances and empirical tests in 20 countries. In Advances in experimental social psychology, volume 25, pages 1â65. Elsevier. Shinn et al. (2023) Noah Shinn, Federico Cassano, Ashwin Gopinath, Karthik Narasimhan, and Shunyu Yao. 2023. Reflexion: Language agents with verbal reinforcement learning. Advances in neural information processing systems, 36:8634â8652. Team et al. (2023) Gemini Team, Rohan Anil, Sebastian Borgeaud, Jean-Baptiste Alayrac, Jiahui Yu, Radu Soricut, Johan Schalkwyk, Andrew M Dai, Anja Hauth, Katie Millican, and 1 others. 2023. Gemini: a family of highly capable multimodal models. arXiv preprint arXiv:2312.11805. Tu et al. (2024) Quan Tu, Shilong Fan, Zihang Tian, Tianhao Shen, Shuo Shang, Xin Gao, and Rui Yan. 2024. Charactereval: A chinese benchmark for role-playing conversational agent evaluation. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 11836â11850. Wang et al. (2025a) Piaohong Wang, Motong Tian, Jiaxian Li, Yuan Liang, Yuqing Wang, Qianben Chen, Tiannan Wang, Zhicong Lu, Jiawei Ma, Yuchen Eleanor Jiang, and 1 others. 2025a. O-mem: Omni memory system for personalized, long horizon, self-evolving agents. arXiv preprint arXiv:2511.13593. Wang et al. (2025b) Xintao Wang, Heng Wang, Yifei Zhang, Xinfeng Yuan, Rui Xu, Jen-tse Huang, Siyu Yuan, Haoran Guo, Jiangjie Chen, Shuchang Zhou, and 1 others. 2025b. Coser: Coordinating llm-based persona simulation of established roles. In Forty-second International Conference on Machine Learning. Wang et al. (2025c) Yongjie Wang, Jonathan Leung, and Zhiqi Shen. 2025c. Rolerag: Enhancing llm role-playing via graph guided retrieval. arXiv preprint arXiv:2505.18541. Wang and Chen (2025) Yu Wang and Xi Chen. 2025. Mirix: Multi-agent memory system for llm-based agents. arXiv preprint arXiv:2507.07957. Wang et al. (2025d) Yu Wang, Ryuichi Takanobu, Zhiqi Liang, Yuzhen Mao, Yuanzhe Hu, Julian McAuley, and Xiaojian Wu. 2025d. Mem-\\ \: Learning memory construction via reinforcement learning. arXiv preprint arXiv:2509.25911. Wu et al. (2024) Di Wu, Hongwei Wang, Wenhao Yu, Yuwei Zhang, Kai-Wei Chang, and Dong Yu. 2024. Longmemeval: Benchmarking chat assistants on long-term interactive memory. arXiv preprint arXiv:2410.10813. Wu et al. (2025) Xixi Wu, Kuan Li, Yida Zhao, Liwen Zhang, Litu Ou, Huifeng Yin, Zhongwang Zhang, Xinmiao Yu, Dingchu Zhang, Yong Jiang, and 1 others. 2025. Resum: Unlocking long-horizon search intelligence via context summarization. arXiv preprint arXiv:2509.13313. Yang et al. (2025a) An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Gao, Chengen Huang, Chenxu Lv, and 1 others. 2025a. Qwen3 technical report. arXiv preprint arXiv:2505.09388. Yang et al. (2025b) Diji Yang, Linda Zeng, Jinmeng Rao, and Yi Zhang. 2025b. Knowing you donât know: Learning when to continue search in multi-round rag through self-practicing. In Proceedings of the 48th International ACM SIGIR Conference on Research and Development in Information Retrieval, pages 1305â1315. Yu et al. (2025) Hongli Yu, Tinghong Chen, Jiangtao Feng, Jiangjie Chen, Weinan Dai, Qiying Yu, Ya-Qin Zhang, Wei-Ying Ma, Jingjing Liu, Mingxuan Wang, and 1 others. 2025. Memagent: Reshaping long-context llm with multi-conv rl-based memory agent. arXiv preprint arXiv:2507.02259. Zerhoudi and Granitzer (2024) Saber Zerhoudi and Michael Granitzer. 2024. Personarag: Enhancing retrieval-augmented generation systems with user-centric agents. arXiv preprint arXiv:2407.09394. Zhai et al. (2025) Yunpeng Zhai, Shuchang Tao, Cheng Chen, Anni Zou, Ziqian Chen, Qingxu Fu, Shinji Mai, Li Yu, Jiaji Deng, Zouying Cao, and 1 others. 2025. Agentevolver: Towards efficient self-evolving agent system. arXiv preprint arXiv:2511.10395. Zhang et al. (2025a) Haonan Zhang, Run Luo, Xiong Liu, Yuchuan Wu, Ting-En Lin, Pengpeng Zeng, Qiang Qu, Feiteng Fang, Min Yang, Lianli Gao, and 1 others. 2025a. Omnicharacter: Towards immersive role-playing agents with seamless speech-language personality interaction. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 26318â26331. Zhang et al. (2026) Ningning Zhang, Xingxing Yang, Zhizhong Tan, Weiping Deng, and Wenyong Wang. 2026. Himem: Hierarchical long-term memory for llm long-horizon agents. arXiv preprint arXiv:2601.06377. Zhang et al. (2025b) Xinliang Frederick Zhang, Nick Beauchamp, and Lu Wang. 2025b. Prime: Large language model personalization with cognitive dual-memory and personalized thought process. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, pages 33695â33724. Zhang et al. (2025c) Yanzhao Zhang, Mingxin Li, Dingkun Long, Xin Zhang, Huan Lin, Baosong Yang, Pengjun Xie, An Yang, Dayiheng Liu, Junyang Lin, and 1 others. 2025c. Qwen3 embedding: Advancing text embedding and reranking through foundation models. arXiv preprint arXiv:2506.05176. Zhou et al. (2025) Jinfeng Zhou, Yongkang Huang, Bosi Wen, Guanqun Bi, Yuxuan Chen, Pei Ke, Zhuang Chen, Xiyao Xiao, Libiao Peng, Kuntian Tang, and 1 others. 2025. Characterbench: benchmarking character customization of large language models. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 39, pages 26101â26110. Appendix Roadmap ⢠App. A â Relationship to Reflexion. Differentiates DualMem from Reflexion along task setting, signal source, and training paradigm. ⢠App. B â RoleMemo Construction Details. Generation hyperparameters and prompts for persona profiles, insights, factâinsight pairs, and dialogue blocks. ⢠App. C â Persona Domains and Schema. 23 social-thematic domains, five value-orientation axes, and full persona schema. ⢠App. D â Training Hyperparameters. SFT and DAPO hyperparameters not reported in the main text. ⢠App. E â Driving Model Generalization. Insight bottleneck of persona-agnostic baselines persists across GPT-5.4, Gemini-3.1-pro, and Qwen3-max, confirming framework-level limitations. ⢠App. F â Retrieval Strategy Ablation. Sweeps Kâ5,10,20Kâ\5,10,20\; confirms K=10K=10 provides sufficient context breadth. ⢠App. G â Evaluation Metrics. Semantic matching protocol for Recall@10 (Ď=0.7Ď=0.7, stable for Ďâ[0.65,0.75]Ďâ[0.65,0.75]) and four role-playing quality dimension definitions. ⢠App. H â Generalization to LoCoMo. RoleMemo training transfers to out-of-distribution factual recall without overfitting. ⢠App. I â Insight Quality under an Independent Judge. Blind GPT-5.1 judge confirms DualMem insights are not stylistic artifacts of the training distribution (4.62 vs. ground-truth 4.67). ⢠App. J â Cross-Generator Robustness. Ranking advantage of DualMem-RL holds on a Claude-Sonnet-4.6-regenerated subset, ruling out generator-specific style as a confound. ⢠App. K â Judge-Side Variance Analysis. Per-cell std â¤0.03⤠0.03 across three GPT-5.1 judge runs; judge stochasticity cannot account for inter-method gaps. ⢠App. L â LLM Judge Reliability Protocol. HumanâLLM agreement (r=0.82r=0.82â0.840.84) and cross-judge stability (GPT-5.1 vs. Gemini-3-Pro, >99%>99\%) validate automated evaluation. ⢠App. M â Prompt Engineering for Transferability. Insight-generating prompts yield only +0.05+0.05â+0.09+0.09 gains on baselines, confirming structural training is necessary. ⢠App. N â No-Regression on LoCoMo. Adding an insight slot does not reduce baseline factual recall; insight cognition is an additive capability. ⢠App. O â Failure Mode Analysis. Three recurring failure patterns in DualMem-RL: insight not recognized, facts ignored behind adopted insight, and surface-similarity conflation. ⢠App. P â Human Evaluation Details. Annotator recruitment, compensation (100 RMB/hr), and privacy protocols. ⢠App. Q â Glossary of Key Terms. Definitions of all paper-specific terminology. Appendix A Relationship to Reflexion This section addresses concerns about the differentiation between DualMemâs factualâinsight architecture and Reflexionâs observationâreflection pattern. While both adopt a two-level structure of base evidence plus a higher-order representation, the two frameworks differ along three dimensions. ⢠Task setting. Reflexion targets task-oriented reasoning (code generation, decision-making, QA) where success is objectively verifiable. DualMem targets persona-driven role-playing dialogue, where the goal is high-fidelity character expression rather than task completion. ⢠Signal source. Reflexionâs reflection is reactive: it is triggered by an external signal and reasons about what went wrong. DualMemâs insight cognition has no such failure signal at construction time. Insight is generated proactively from new facts through the persona lens, regardless of any downstream outcome. Reflexion reacts to failure; DualMem proactively interprets evidence. ⢠Training paradigm. Reflexion is an inference-time prompting framework with no parameter update. DualMem is trained end-to-end on RoleMemo via SFT and multi-turn trajectory RL (Sec. 4.3), internalizing persona-driven interpretation into model weights rather than relying on prompt scaffolding. More broadly, the observationâreflection structure has become a shared paradigm across modern agent systems, independently adopted by Generative Agents Park et al. (2023), AgentEvolver (Zhai et al., 2025), ReSum (Wu et al., 2025), and Alita-G (Qiu et al., 2025), each in a different domain. DualMemâs contribution lies within this paradigm: it is the first persona-driven instantiation, with persona-conditioned insight as the reflection layer, validated by a long-context role-playing benchmark and a trained 4B specialist. Appendix B RoleMemo Construction Details B.1 Generation Hyperparameters All dataset instances are generated using DeepSeek-V3.2 via the OpenAI-compatible API; full parameters are listed in Tab. 8. Table 8: DeepSeek-V3.2 Generation Parameters Parameter Value Model DeepSeek-V3.2 Temperature 0.8 Response Format JSON Object Stream False B.2 Cognitive Insight Generation Prompts The prompt for generating 20 persona-conditioned cognitive insights is shown below. Insight Generation Prompt Role: High-Quality Persona Insight Generator Task: You are an expert in psychology, sociology, and systems thinking. Generate cognitive insights aligned with the given NPC persona. These insights will serve as the foundation for designing memory evaluation queries. Input Format: The persona description includes: ⢠Core values ⢠Personality traits ⢠Background and experiences ⢠Domain expertise / professional perspective ⢠Key goals or conflicts ⢠Work and hobbies Insight Generation Principles: ⢠Perspective Uniqueness: Must reflect the personaâs unique cognitive framework, not common sense. ⢠Verifiability and Specificity: Insights must be derivable from specific user behaviors, dialogues, or event combinations. ⢠Counter-Intuitive Potential: Ideal insights exhibit counter-intuitive tension between surface phenomena and underlying truth. ⢠Reasoning Complexity: Insights should require at least two reasoning steps. ⢠Fact Combination Necessity: Each insight should require at least two different types of factual fragments for reliable derivation. Insight Categories: ⢠[Decision Guidance]: Provides concrete, actionable behavioral guidance based on the personaâs unique value hierarchy. ⢠[Interpretive Attribution]: Explains deep, systemic causes behind phenomena, beyond surface-level explanations. ⢠[Value Judgment]: Evaluates things, behaviors, or states based on the personaâs unique value system. ⢠[Contradiction Revelation]: Reveals systemic contradictions between surface phenomena and underlying logic. [Detailed application scope, generation workflow, and examples are omitted for brevity.] Output Format: ⏠"role_description": "BriefâŁsummaryâŁofâŁtheâŁinputâŁpersona", "core_values": ["CoreâŁvalueâŁ1", "CoreâŁvalueâŁ2"], "insights": [ "[Category]:âŁSpecificâŁinsightâŁdescriptionâŁ1", "[Category]:âŁSpecificâŁinsightâŁdescriptionâŁ2", "..." ] B.3 Fact-Insight Pair and Query Generation The prompt for generating factual fragments and queries from each insight is shown below. Fact-Insight Pair Generation Prompt Role: Persona-Driven Memory Test Designer Background: Generic memory models only record facts, while persona-driven memory models extract deep interpretations (insights) from facts based on specific values and reasoning patterns. This designer generates challenging test cases by examining whether models can derive key insights from two seemingly mundane facts aligned with the userâs identity. Task: Given the [Persona Insight], [NPC Persona], [User Profile], and [Reasoning Hints], design the following three components: 1. Two factual fragments that constitute the persona insight: user-mentioned personal experiences, observations, industry concerns, personal reflections, or media exposure that align with their identity. 2. A test question that requires the insight to interpret these two facts for the optimal answer. May incorporate reasoning hints or be entirely self-designed. 3. A logic connector explaining how fragments â insight â question are linked. Constraints & Rules (Core Requirements): ⢠Identity Anchoring: Facts must align with [User Profile] and occur across diverse settings. ⢠Factual Fragment Design: Facts must be neutral, mundane, and superficially irrelevant. Their combination, when interpreted through the personaâs reasoning, yields a notably stronger and more coherent insight than literal retrieval alone. ⢠Test Question Design: The question must not directly use core concepts from the insight, must explicitly rely on specific details from factual fragments, and should reward viewing both events through the insight with a more complete and persona-aligned response, while still admitting literal answers from facts alone. [Detailed examples, negative case prevention guidelines, and workflow are omitted for brevity.] Output Format: ⏠"insight": "TheâŁgivenâŁpersonaâŁinsight", "fragments": [ "FactualâŁfragmentâŁ1:âŁAâŁneutral,âŁmundaneâŁuserâŁstatement", "FactualâŁfragmentâŁ2:âŁAnotherâŁneutral,âŁmundaneâŁuserâŁstatement" ], "test_question": "text": "AâŁnaturalâŁquestionâŁthatâŁdoesnâtâŁdirectlyâŁhintâŁatâŁtheâŁinsightâŁandâŁrequiresâŁfactsâŁforâŁaâŁgoodâŁanswer", "type": "Decision/Attribution/ValueâŁJudgment/ContradictionâŁResolution" , "connector": "ConciseâŁexplanationâŁofâŁtheâŁlogicâŁchain" B.4 Conversational Block Generation The prompt for weaving facts into 24-turn dialogue blocks is shown below. Natural Conversation Generation Prompt Role: Natural Dialogue Generator (Topic-Anchored Deep Conversation) Core Principle: You must treat the casual topic as the sole backbone and core content of the conversation, expanding extensively around the topicâs multiple sub-dimensions (e.g., if topic is "urban landmarks and cultural connotations," extend to architectural styles, historical background, photo spots, cultural symbols). Factual fragments are merely incidental memories triggered when User discusses the topicâlike glancing at an old poster while walking, mentioned and passed over. They should be naturally embedded without warranting targeted responses or extensions. Core Task: Given a casual topic, User persona, NPC persona, and two factual fragments, generate approximately 24 rounds (48 messages, User and NPC alternating) of natural deep conversation. The dialogue must fully expand around the topicâs multiple sub-dimensions, with each turn tightly focused on topic-related details to achieve "thorough topic exploration." Individual utterances should be concise (1-2 sentences primarily). Generation Rules (Strict Compliance): ⢠Topic Priority with Deep Extension: Dialogue must revolve around the casual topic, with each utterance containing specific words directly related to the topic. ⢠Fragment Embedding (Four-No Principles): â No awkwardness: Fragments serve as background, merged into topic-related actions/scenarios. â No independence: Fragments must appear as subordinate clauses or parentheticals attached to topic-core main clauses. â No evaluation: Objectively state events without adding subjective evaluations. â No response: NPC absolutely must not extend, question, or comment on fragment content. ⢠NPC Behavior: Every NPC response must focus on the topic and advance topic depth. [Detailed case studies and generation steps are omitted for brevity.] Input Format: ⏠"user_persona": "UserâŁpersonaâŁdescriptionâŁ(personality,âŁoccupation,âŁspeakingâŁstyle)", "npc_persona": "NPCâŁpersonaâŁdescriptionâŁ(personality,âŁoccupation,âŁspeakingâŁstyle)", "talk_topics": "MainâŁcasualâŁtopicâŁ(e.g.,âŁâurbanâŁlandmarksâ,âŁâcollegeâŁlifeâ,âŁârecentâŁmealsâ)", "fragments": ["FactualâŁfragmentâŁ1", "FactualâŁfragmentâŁ2"] Output Format: ⏠"dialogue": [ "role": "User", "content": "UserâŁstatementâŁ(withâŁtopic-specificâŁwords)", "role": "Assistant", "content": "NPCâŁstatementâŁ(withâŁtopic-specificâŁwords,âŁadvancingâŁtopic)", // ... approximately 24 rounds (48 messages, User and Assistant alternating) ], "fragment_positions": "fragment_1": "CompleteâŁUserâŁstatementâŁcontainingâŁfragmentâŁ1", "fragment_2": "CompleteâŁUserâŁstatementâŁcontainingâŁfragmentâŁ2" Appendix C Persona Domains and Schema C.1 Domain Organization RoleMemo covers 23 social-thematic domains, organized along five value-orientation axes adapted from Schwartzâs basic human values framework (Schwartz, 1992). Tab. 9 lists the five groups. Table 9: Five-group organization of the 23 RoleMemo domains, aligned with axes of Schwartzâs human values. Group Value prior Domains G1. Rights and Equity universalism, protective fairness Public-Interest Law; Educational Equity; Disability Vocational Empowerment; Mental-Health and Vulnerable-Group Services; Public-Health Service G2. Community and Governance conservation, benevolence Community Cultural Development; Community Governance and Spatial Optimization; Urban Micro-Renewal; Rural Development and Grassroots Construction; Conflict Transformation and Collaboration G3. Culture, Heritage, and Identity tradition vs. self-direction Cultural Heritage Preservation; Traditional Culture Innovation; Minority Craft Inheritance; Niche and Subculture Scenes; Humanistic Observation and Social Research G4. Wellbeing and Sustainability stewardship-oriented universalism Healthy Living and Psychological Support; Silver Economy; Environment and Sustainability; Stray Animal Protection and Ecological Harmony G5. Frontier Work and Tech Ethics openness with responsibility Technology Ethics and Digital Civilization; Workplace and Personal Growth; Workplace Ecology and Vocational Empowerment; Educational and Public-Service Innovation C.2 Persona Schema Each persona is a structured record over the fields in Tab. 10, and all fields are strings. Table 10: Persona schema. The relational dimension is carried implicitly by dilemma and current_status. Dimension Field Role meta id, category identifier and sub-theme label identity role_name personaâs name identity title occupational or social role identity background formative experience leading to the role identity current_status current affiliation and focus areas identity hometown geographic grounding value core_values value prior that drives interpretation value goals persona-level objectives value dilemma recurring friction (implicit relational cue) behavioral personality overt and latent traits behavioral expression_style register of verbal output behavioral hobbies role-aligned professional habits behavioral daily_hobby off-duty lifestyle habit behavioral favorite_food/animal/plant grounding details for small talk behavioral preferred_travel_city grounding detail for small talk derived content concatenation used as the role-play system prompt Fig. 4 shows a representative persona from the Public-Interest Law domain, where lifestyle and derived fields are abbreviated for space. "id": 13001, "role_name": "Zhang Shumin", "title": "Legal-Aid Specialist for Elderly Rights", "core_values": "Legal dignity should not decline with age; services must adapt to the cognition and mobility patterns of older adults.", "personality": "Warm and patient when unpacking statutes; inwardly resilient, with strong empathy for the elderly.", "background": "Witnessed a family elder fail to obtain redress after a health-product scam; moved from corporate administration to law.", "current_status": "Deputy director of an elderly-rights legal-aid unit, focusing on property safety, consumer fraud, support disputes, and will planning.", "goals": "Build an age-friendly legal-aid service system.", "dilemma": "Tension between the weak evidence-awareness of older adults and the procedural rigor of rights enforcement.", "expression_style": "Firm and grounded.", "hometown": "Beijing", // lifestyle fields (favorite_food, favorite_animal, // favorite_plant, daily_hobby, preferred_travel_city) // and derived field (content) are omitted. Figure 4: Example persona (Public-Interest Law), translated to English. Keys are bolded. Lifestyle and derived fields are omitted for space. C.3 Construction Pipeline Stage 1: Seed scaffolding Authors fix the 23 domains and seed titles; an LLM expands the seed set, and authors screen every additional title before generation. Stage 2: LLM expansion For each retained title, we prompt DeepSeek-V3.2 (temperature 0.80.8, JSON-object response) to expand a full persona record over the fields in Tab. 10 (except content, which is a deterministic concatenation). The prompt is conditioned on the domain and title, and generates an internally consistent (core_values, personality, background, dilemma) tuple. Stage 3: Random-sample human curation The authors manually audit randomly sampled personas using a four-part rubric: internal coherence (no contradiction among value, personality, background, and dilemma), domain fit (title and current_status belong to the declared domain), value anchoring (a recognizable value prior is present; neutral AI-style personas are rejected), and diversity (title and dilemma angles do not collapse within a domain). Failing personas are regenerated or lightly revised. We release the rubric, the seed title list, and the expansion prompts alongside the dataset for reproducibility. Appendix D Training Hyperparameters Tab. 11 and Tab. 12 list the hyperparameters not stated in Sec. 5.1 (Experimental Setup); settings already given in the main text (base model, learning rates, schedulers, effective batch sizes, training steps) are not repeated here. vLLM rollout sampling uses the default configuration (temperature 1.0, top-p 1.0) and is omitted from the RL table. Table 11: Additional SFT training hyperparameters. Parameter Value Training Framework LLaMA-Factory Precision BF16 Per-device Batch Size 4 Gradient Accumulation Steps 8 Cutoff Length 6144 Gradient Checkpointing True DeepSpeed Stage 3 (Offload) Table 12: RL training hyperparameters. Parameter Value Training Framework verl Algorithm DAPO PPO Mini Batch Size 4 Max Prompt Length 8192 Max Response Length 1024 KL Loss Coefficient 0.001 Entropy Coefficient 0.0 Clip Ratio (high) 0.20 Clip Ratio (low) 0.10 Loss Aggregation token-mean Appendix E Generalization across Driving Memory Construction Models We further examine whether the observed structural limitation persists when the driving memory construction model changes. To answer this, we repeat the protocol of Sec. 5.1 with three additional memory construction models with GPT-5.4, Gemini-3.1-pro, and Qwen3-max, across seven baselines (HiMem, Mirix, SimpleMem, LightMem, O-Mem, PreMem, Mem0).111MemAlpha is excluded as it operates on its own task-specific trained checkpoint and is not driven by an external memory construction model. The retriever, role-playing agent, and judge (GPT-5.1) are held fixed across all runs. E.1 Memory Construction Quality Tab. 13 reports Fact and Insight Recall@10 for the four driving models. Across every model, two consistent patterns emerge: first, every baseline achieves lower Insight Recall than Fact Recall; second, the variation across driving models is small (within â¤0.10⤠0.10 for each row). This indicates that the insight bottleneck persists regardless of which driving model is used. Even strong commercial LLMs such as GPT-5.4 and Gemini-3.1-pro, when deployed in a persona-agnostic framework, fail to generate persona-driven interpretations. Among the baselines, SimpleMem achieves the highest Insight Recall on all four driving models (ranging from 0.39 to 0.42), yet it still lags far behind our 4B DualMem-RL (0.73). The relative ranking of baselines within each column remains largely stable across driving models, suggesting that the observed differences stem from the framework design rather than from artifacts of specific driving models. Table 13: Fact and Insight Recall@10 across four driving models. DS-V3.2 = DeepSeek-V3.2; Gem-3.1 = Gemini-3.1-pro. Best score per column in bold. For reference, our 4B DualMem-RL reaches 0.77 Fact / 0.73 Insight under the DS-V3.2 protocol (Tab. 2 in the main paper); DualMem-RL is itself the memory model and is not driven by an external LLM. Method DS-V3.2 GPT-5.4 Gem-3.1 Qwen3-max Fact Insight Fact Insight Fact Insight Fact Insight HiMem 0.37 0.27 0.40 0.26 0.40 0.25 0.32 0.25 Mirix 0.42 0.15 0.43 0.19 0.41 0.15 0.37 0.09 SimpleMem 0.70 0.41 0.68 0.39 0.70 0.42 0.69 0.40 LightMem 0.69 0.33 0.66 0.32 0.70 0.32 0.67 0.39 O-Mem 0.70 0.33 0.71 0.31 0.69 0.32 0.68 0.30 PreMem 0.72 0.35 0.70 0.33 0.72 0.36 0.70 0.32 Mem0 0.76 0.36 0.78 0.37 0.74 0.36 0.69 0.33 E.2 Role-Playing Quality Tab. 14 reports the overall role-playing score under the same setting. Across all driving models, every baseline falls within a narrow range of 3.923.92 to 4.054.05. Swapping the driving model leaves role-playing scores almost unchanged. This indicates that the bottleneck is structural: no driving model tested here provides the persona-driven interpretation that DualMemâs architecture is specifically trained to produce. Table 14: Overall role-playing score across four driving models. Model abbreviations follow Tab. 13. For reference, our 4B DualMem-RL reaches 4.16 Overall under the DS-V3.2 protocol (Tab. 3 in the main paper). Method DS-V3.2 GPT-5.4 Gem-3.1 Qwen3-max HiMem 3.94 3.96 3.92 3.94 Mirix 4.01 4.00 4.02 3.95 SimpleMem 3.97 3.96 3.98 3.97 LightMem 4.00 3.98 3.99 4.01 O-Mem 3.98 4.05 3.97 3.96 PreMem 3.99 4.03 3.99 3.95 Mem0 4.00 4.02 3.99 3.98 Appendix F Retrieval Strategy Ablation We sweep Kâ5,10,20Kâ\5,10,20\ on O-Mem and DualMem-RL. Performance remains stable when K increases from 10 to 20 (O-Mem: 3.98â4.013.98â 4.01; DualMem-RL: 4.16â4.174.16â 4.17), while K=5K=5 shows mild degradation (O-Mem: 3.923.92; DualMem-RL: 4.124.12). We adopt K=10K=10. Appendix G Evaluation Metrics G.1 Recall@10 Matching Protocol Since memory entries from different frameworks vary in surface form, we compute both Fact and Insight Recall@10 with semantic rather than exact matching. For each ground-truth entry gig_i and the top-10 retrieved entries rj\r_j\, we encode all entries with Qwen3-Embedding-0.6B and count gig_i as recalled if maxjâĄcosâĄ(embâ(gi),embâ(rj))âĽ0.7 _j (emb(g_i),emb(r_j))⼠0.7. Recall@10 is the fraction of ground-truth entries recalled, macro-averaged over queries. The threshold Ď=0.7Ď=0.7 was set via pilot inspection as the lowest value at which no semantically inequivalent pair was accepted; framework rankings in Tab. 2 are stable for Ďâ[0.65,0.75]Ďâ[0.65,0.75]. The same encoder, threshold, and aggregation are applied uniformly to every framework. G.2 Role-Playing Quality Each of the four dimensions is scored on a 5-point Likert scale (1=Poor, 5=Excellent). The judge receives the persona profile, query, ground-truth reference response, and candidate response, then returns a score with a brief justification per dimension. Information Richness Whether the response accurately incorporates key factual information from retrieved memory, naturally integrated into dialogue flow without forced concatenation. Responses containing irrelevant facts are penalized unless used as analogy or contextual example. Logical Quality Whether the response contains key insights that logically address the query, with reasoning naturally woven into the reply. We strictly penalize AI-style neutrality (e.g., âon one hand⌠on the other hand⌠it depends on youâŚâ), since such hedging fails to provide guidance aligned with the personaâs perspective. Character Consistency Adherence to the persona across behavior/identity alignment, utterance style and tone, and knowledge-scope adherence (no anachronistic knowledge, e.g., ancient personas referencing modern technology). Conversational Attractiveness Engagement quality, anchored primarily by human-likeness: responses must sound natural, strictly penalizing âAI formattingâ such as numbered lists (â1. 2. 3.â), bold emphasis (âimportantâ), or formulaic conclusions (âin summaryâŚâ); secondary criteria include varied, fluent expression and appropriate empathy with the userâs situation. Appendix H Generalization to LoCoMo We test whether DualMem is overfitted to RoleMemo using LoCoMo Maharana et al. (2024), a needle-in-a-haystack factual-recall benchmark; it cannot evaluate persona-driven interpretation and serves as an external generalization check only. Setup We evaluate four memory-construction checkpoints: the untrained Qwen3-4B and Qwen3-8B (included as an additional size reference not used in the main experiments), our DualMem-SFT (4B), and DualMem-RL (4B), with all other components fixed. We report F1 on the four LoCoMo question types (Multi-hop, Temporal, Open-domain, Single-hop) and the Overall score. Results Tab. 15 reports the LoCoMo scores. DualMem-RL (4B) reaches 34.0 Overall, achieving parity with the untrained Qwen3-8B (33.7) at half the parameter count, with DualMem-SFT and DualMem-RL respectively gaining +2.5 and +4.0 Overall over the same-size Qwen3-4B baseline. The largest gain appears on Multi-hop (+8.2 over Qwen3-4B), the dimension that most rewards cross-event interpretive reasoning, consistent with the design goal of DualMem. DualMem-RL trails Qwen3-8B on Temporal by 2.7 points. RoleMemo lacks explicit temporal-ordering objectives, and we leave time-aware retrieval to future work. Compared with DeepSeek-V3.2-driven persona-agnostic baselines on the same benchmark, our 4B DualMem-RL trails O-Mem (38.9) and PreMem (37.9) on Overall (App. N). This is expected and consistent with our scoped claim: DualMem targets persona-driven memory tasks with a small trained model, not general-purpose factual recall with a 685B-class driver. The relevant generalization signal here is the absence of regression and the parity with Qwen3-8B shown above, not absolute headroom against much larger drivers. Table 15: Generalization to LoCoMo. The memory construction model is varied across four checkpoints; the retriever, role-playing agent, and judge are held fixed. Best score per column in bold. Model Multi-hop Temporal Open-dom. Single-hop Overall Qwen3-4B 23.9 18.6 17.9 37.8 30.0 Qwen3-8B 28.9 22.9 15.3 41.6 33.7 DualMem-SFT (4B) 30.1 18.8 16.8 40.3 32.5 DualMem-RL (4B) 32.1 20.2 17.5 41.8 34.0 Appendix I Insight Quality under an Independent Judge The insight recall of DualMem in Tab. 2 could in principle reflect surface alignment with the annotation style of RoleMemo rather than the generation of high-quality persona-driven insights. We address this concern by evaluating insight content quality directly, using an independent judge that does not have access to the RoleMemo ground-truth annotations. Setup We evaluate the insights already constructed by each method on the full RoleMemo evaluation set, without resampling. Each insight is scored independently by GPT-5.1 at temperature =0=0. The judge receives only the persona profile, the relevant conversation excerpts, and the candidate insight. It has no access to the RoleMemo ground-truth insights and is not told which method generated the candidate. The judge rates each insight on three dimensions on a 1â5 scale: ⢠Persona Plausibility. The insight fits this personaâs identity, values, and situation, not a generic statement. ⢠Evidential Grounding. The insight is derivable from the provided conversation evidence, not unsupported or contradicted. ⢠Specificity. The insight is a substantive, non-trivial interpretation, not a platitude applicable to any persona. We compare four methods that produce explicit insight outputs: the prompt-engineered baselines O-Memâ and PreMemâ (Tab. 7), and our DualMem-SFT and DualMem-RL (other baselines in Tab. 2 produce no explicit insight field). As an upper-bound reference, we additionally score the RoleMemo ground-truth insight annotations under the same judge. Results Table 16: Insight quality under an independent GPT-5.1 judge that does not see RoleMemo ground-truth annotations. Plaus., Ground., Spec. denote Persona Plausibility, Evidential Grounding, and Specificity, each scored on a 1â5 scale. The last row is the RoleMemo ground-truth as an upper-bound reference. Method Plaus. Ground. Spec. Avg O-Memâ 4.25 4.29 4.24 4.26 PreMemâ 4.30 4.26 4.32 4.29 DualMem-SFT 4.58 4.55 4.57 4.57 DualMem-RL 4.62 4.60 4.63 4.62 RoleMemo GT (ref.) 4.67 4.70 4.65 4.67 Tab. 16 reports the per-dimension averages. Both DualMem variants outperform the prompt-engineered baselines on all three dimensions; since the judge does not see RoleMemo annotations, this gap reflects the intrinsic quality of DualMemâs insights rather than their stylistic match to the training distribution. DualMem-RL approaches the ground-truth upper bound (4.62 vs. 4.67), indicating that the trained model produces insights of near-annotation quality even under independent assessment. The ground-truth annotations score 4.67, below the ceiling, consistent with the judge applying the rubric strictly rather than rewarding provenance. Appendix J Cross-Generator Robustness Setting We regenerate a held-out evaluation subset using Claude-Sonnet-4.6 Anthropic (2025) to isolate the data generator as a potential confound. Following the same protocol as App. B, we instantiate 20 new personas disjoint from both training and original evaluation splits, and produce 200 queries approximately balanced across the four task types, grounded in 32k-token conversation histories. All baselines and our DualMem variants are evaluated under the identical retriever, role-playing agent, and GPT-5.1 judge as in Tab. 3. Result As shown in Tab. 17, the relative ranking across methods is preserved on this Claude-generated subset. DualMem-RL maintains a 0.20-point overall lead over the strongest baselines (LightMem/SimpleMem at 3.95), with the insight-recall margin remaining substantial (0.78 vs. 0.38). Absolute scores are uniformly 0.01â0.06 points lower than the in-distribution evaluation in Tab. 3, consistent with the natural distribution shift introduced by a different generator; the uniformity of this decline across baselines and DualMem indicates the gap is structural rather than stylistic. Table 17: Cross-generator robustness on a subset regenerated by Claude-Sonnet-4.6. Info., Logic., Consis., and Attr. denote information richness, logical quality, character consistency, and conversational attractiveness, each averaged over three GPT-5.1 judge runs. Framework Insight R@10 Info. Logic Consis. Attr. Base Setting NoMem â 3.56 3.20 4.04 4.02 Baseline Agentic Memory Framework Memalphaâ 0.04 3.99 3.48 4.08 3.92 HiMemâ 0.14 4.05 3.54 4.08 3.96 Mirixâ 0.11 4.05 3.54 4.15 3.94 LightMem 0.38 4.07 3.55 4.14 4.02 O-Memâ 0.25 4.07 3.52 4.12 3.95 PreMem 0.30 4.06 3.56 4.12 4.00 SimpleMem 0.34 4.08 3.54 4.16 4.03 Mem0 0.35 4.05 3.52 4.14 4.04 DualMem Framework DualMem-SFT 0.77 4.12 3.76 4.36 4.16 DualMem-RL 0.78 4.24 3.79 4.40 4.17 Appendix K Judge-Side Variance Analysis We isolate one source of variance, LLM-judge stochasticity, and quantify its scale relative to inter-method gaps. Tab. 18 reports the per-cell standard deviation across three independent GPT-5.1 judge runs, covering all methods in Tab. 3 and Tab. 7. Std stays at or below 0.03 for every method, small relative to the inter-method gaps. We do not claim per-query significance here. The narrower claim is that judge noise alone cannot account for the observed ranking. Table 18: Per-cell standard deviation of the average role-playing score across three independent GPT-5.1 judge runs, covering all methods in Tab. 3 and Tab. 7. Methods with â use modified prompts to generate insights, matching the notation in Tab. 7. Method std NoMem 0.02 Memalpha 0.03 HiMem 0.03 Mirix 0.02 LightMem 0.02 O-Mem 0.02 PreMem 0.02 SimpleMem 0.03 Mem0 0.02 O-Memâ 0.03 PreMemâ 0.03 DualMem-SFT 0.02 DualMem-RL 0.02 w/o Insight 0.02 w/o Fact 0.03 Appendix L LLM Judge Reliability Protocol We use the same 200 queries randomly sampled from the evaluation set, with all LLM judges run at temperature=0=0 for deterministic scoring. HumanâLLM agreement Two independent annotators score responses using identical inputs as the LLM judge. Inter-annotator and humanâLLM agreement (Tab. 4) are reported as Pearson correlations between the per-query scores of each pair, averaged across the four dimensions. Cross-judge stability We compare GPT-5.1 against Gemini-3-Pro on the same 200-query sample and report a per-framework agreement score (Tab. 5). Let D=Info, Logic, Consis, AttrD=\Info, Logic, Consis, Attr\ denote the four scoring dimensions; the agreement is defined as Agreement=1â1|D|ââdâD|sdGPTâsdGem|sdGPT,Agreement=1- 1|D| _dâ D |s^GPT_d-s^Gem_d|s^GPT_d, defined as one minus the mean relative score deviation across the four dimensions. Across all (framework, dimension) cells, the absolute per-dimension difference |Î|| | remains within 0.040.04. Appendix M Prompt Engineering for Transferability To test whether persona-agnostic frameworks can achieve similar benefits through prompt engineering without structural changes, we augment O-Mem and PreMemâs memory construction prompts to generate dual memory similar to our framework. For example, O-Mem originally maintains three memory categories (core, semantic, episodic) without persona-driven interpretation. We introduce two key modifications: (1) redefine core_memory to store interpretive insights derived from the personaâs perspective across multiple events, rather than generic summaries; (2) provide few-shot examples demonstrating how to extract insights. The modified prompt instructs the model to: O-mem Modified Prompt Role Context: Your identity and perspective in the conversation is: [PERSONA_TEXT] You are O-Mem, a memory consistency controller. Your core responsibility is maintaining memory bank consistency. You must operate in "retrieve-conflict detection-edit" mode. Three Memory Categories (Redefined): (1) core_memory (Core Insight Layer) ⢠What to store: Interpretive conclusions derived from the personaâs perspective by cross-comparing multiple recorded events. It must be a judgment that "would not hold without the personaâs background," not mere fact restatement. ⢠Typical content: Pattern summaries, contradiction revelations, decision principles, value blind-spot alerts. ⢠Trigger condition: Only generate a core entry when two or more semantic/episodic memories point to the same deep pattern. ⢠Format: One sentence starting with action verbs or judgment words ("RevealsâŚ", "IndicatesâŚ", "Should prioritizeâŚ", "BewareâŚ"). ⢠Forbidden: Do not use for storing single events or pure objective data points. (2) semantic_memory (Semantic Knowledge Layer) ⢠What to store: Stable attributes, opinions, preferences, and regularities extracted from dialogueâstatements that remain valid without temporal context. ⢠Format: Subject + predicate + object, stating a retrievable, long-term valid knowledge point. (3) episodic_memory (Episodic Event Layer) ⢠What to store: Specific one-time events, scenarios, encounters mentioned in dialogueânarratives with temporal or scene-based context. ⢠Format: Subject + scenario + what happened, preserving details (location, people, actions) for evidence retrieval. [Few-Shot Examples are omitted for brevity.] Constraints: ⢠core_memory must be based on existing semantic/episodic evidence; do not generate from thin air. ⢠The same event cannot be written into both episodic and semantic simultaneously. ⢠Do not force-elevate single event significance to fill core entries. ⢠Only generate core when cross-event deep patterns are genuinely discovered. These modifications enable O-Memâ to construct dual memory without altering its underlying architectures. PreMem adopts a similar approach to achieve this. Appendix N No-Regression of Insight Cognition on LoCoMo We re-run O-Mem and PreMem on LoCoMo, a factual-recall benchmark, with and without an insight slot to check whether attaching insight degrades baseline factual recall. DeepSeek-V3.2 is used as the memory construction model, with the retriever, role-playing agent, and judge held fixed. Tab. 19 reports per-dimension and Overall scores. Adding insight cognition raises O-Mem from 38.9 to 39.0 and PreMem from 37.9 to 38.1 on Overall; per-dimension shifts stay within Âą2.4Âą 2.4 points and net out positively in both cases. Table 19: No-regression check on LoCoMo. * denotes the variant with an insight slot added. DeepSeek-V3.2 is used as the memory construction model. Best Overall score within each baseline pair in bold. Method Multi-hop Temporal Open-dom. Single-hop Overall O-Mem 40.3 23.9 26.4 45.6 38.9 O-Mem* 37.9 24.0 29.6 46.2 39.0 PreMem 35.0 27.3 29.4 44.0 37.9 PreMem* 37.4 27.3 26.5 43.8 38.1 Combined with Tab. 7 in the main paper, where the same prompt-only insight extension lifted persona dialogue scores by +0.05+0.05 to +0.09+0.09, these results indicate that the insight mechanism adds capability without reducing factual performance: it brings clear gains where persona-driven interpretation is required, while leaving factual recall on neutral benchmarks intact. Appendix O Failure Mode Analysis Beyond the comparison in Tab. 6, manual inspection of DualMem-RL outputs surfaces three recurring failure modes: two in memory utilization (F1, F2) and one in memory construction (F3). F1: Retrieved Insight Not Recognized as Relevant ⢠Persona: disability vocational counselor. Core value: professional confidence stems from self-identity, not external pity. ⢠Insight: organizations default coordination and team-building roles to women based on structural bias rather than ability assessment. ⢠Query: âif my leader assigns team-building again, should I refuse?â ⢠Response: generic both-sides advice (âit depends; team building improves communication; workplace relationships matterâ). ⢠Diagnosis: the insight reframes the query from a scheduling conflict into a career-equity issue. The agent retreats to AI-style neutrality and leaves the core value entirely unutilized. F2: Insight Adopted but Supporting Facts Ignored ⢠Persona: animal welfare coordinator. Core value: sustainable support networks require rescuersâ own psychological resilience. ⢠Insight: the one-directional giving pattern systematically depletes psychological resilience. ⢠Supporting facts: the station leader funds all supplies and medical costs out of pocket without seeking external help; a young volunteer with a wrist injury kept working to avoid burdening others, then quietly withdrew. ⢠Query: âHow should I design a psychological support activity so that rescuers are willing to attend?â ⢠Response: set up a relaxation corner at adoption events with meditation guidance and photo sharing. ⢠Diagnosis: the response implicitly adopts the insightâs direction but cites none of the grounding facts. Without the concrete evidence of self-funded exhaustion and injury-driven withdrawal, the recommendation addresses participation logistics rather than the deeper barrier of rescuersâ internalized obligation to give without receiving. F3: Surface Similarity Conflation in Insight Construction ⢠Persona: ancient manuscript restorer. Core value: minimal intervention, restoring artifacts without subjective alteration. ⢠Facts: the persona passively noticed deterioration in a late-Qing account book found at an old residence; separately, when selecting koi, the persona actively handled fish before purchase as hands-on verification. ⢠Constructed insight: the persona acquires first-hand information through direct sensory contact, reflecting a hands-on practical spirit. ⢠Diagnosis: the two facts differ fundamentally in behavioral nature, passive discovery versus deliberate active verification. The model conflates them on the surface similarity of physical contact and promotes an unwarranted stable trait, misrepresenting the personaâs decision process and risking overgeneralized responses when retrieved. Appendix P Human Evaluation Details For the human evaluation phase, we recruited two annotators with prior experience in NLP annotation tasks. Both annotators are native speakers based in mainland China. To ensure ethical research practices and high-quality data, we provided compensation at a rate of 100 RMB (approximately $14 USD) per hour. This rate is higher than the local minimum wage and is commensurate with the expert nature of the task. Furthermore, we adhered to privacy protocols: no personally identifiable information was collected, and all evaluation data were anonymized. Appendix Q Glossary of Key Terms To aid readers unfamiliar with the terminology introduced throughout the paper, Tab. 20 consolidates the key concepts of DualMem and RoleMemo, grouped by their conceptual role. Each entry lists the term (with its symbol where used in the paper), a one-sentence definition, and the section where the term is formally introduced. Table 20: Glossary of key terms used throughout the paper, grouped by conceptual role. Symbols in parentheses follow the notation adopted in the main text. Term (Symbol) Definition First Appearance Persona & Data Persona (p) A role-playing agentâs assigned character, defined by professional background, hobbies, and persona-specific stances rooted in concrete life experiences. Sec. 3.1 Persona Profile The set of attributes used to specify a persona, including professional background, hobbies, and (in dataset construction) core values, personality traits, key goals, and domain expertise. Sec. 3.1 Conversation History The complete multi-turn dialogue (up to 256k tokens) between the persona and an interlocutor, serving as raw input to memory construction prior to chunking. Sec. 4.2 Conversational Block A 24-turn segment obtained by partitioning the conversation history; the unit at which factual fragments are embedded and extracted. Sec. 3.3 Memory Framework Factual Cognition (FiF_i) Objective events and semantic details extracted from a conversational block, preserving the informational foundation as ground evidence for interpretation. Sec. 4.1 Insight Cognition (IiI_i) Persona-driven interpretations derived from factual cognition, each explicitly linked to its grounding facts to maintain interpretive traceability. Sec. 4.1 DualMem Our proposed dual memory framework that decouples memory into factual and insight cognition; trained on RoleMemo via SFT and RL to yield two variants, DualMem-SFT and DualMem-RL. Sec. 4.1 Query Types Interpretive Attribution A query type that infers unstated motives behind behaviors by synthesizing scattered facts through the personaâs cognitive framework. Sec. 3.2 Contradiction Revelation A query type that exposes systemic inconsistencies between the personaâs stated values and observed actions across sessions. Sec. 3.2 Value Judgment A query type that evaluates situations, behaviors, or states through the ethical framework and value hierarchy of the assigned persona. Sec. 3.2 Decision Guidance A query type that recommends concrete actions aligned with the personaâs principles and value hierarchy. Sec. 3.2 Evaluation Metrics Fact Recall Recall@10 measuring whether the top-10 retrieved memory entries contain the ground-truth facts required to answer a query. Sec. 5.1 Insight Recall Recall@10 measuring whether the framework has constructed the persona-driven interpretations needed to answer a query, beyond mere factual retrieval. Sec. 5.1