cs.AISep 28, 2026

PersMem: Internalizing Personality into Dual-Pathway Memory for LLM Agents

Authors: Hanzhong Zhang, Ziwei Xiang, Weicheng Xie, Shizhe Liu, Siyang Song

Organizations: Department of Computer Science, University of Exeter, United Kingdom · School of Marxism, Nanjing University, China · Shenzhen University, China · Department of Computer Science, University of Oxford, United Kingdom

Abstract

The profile of a role-playing agent usually depends on the pre-defined personality in a system prompt, whereas its memory processing pipeline, including prioritisation of stored memories and subsequent retrieval, remains independent of this personality. This separation causes the agent's memory processing to be inconsistent with the pre-defined personality, and makes it difficult to validate whether agent behaviours follow this personality. In this paper, we propose Personality-Integrated Memory (PersMem), which integrates personality into the agent's memory processing pipeline, making it consistently personality-dependent. PersMem processes memory using four steps, where the personality is mapped to operation-specific parameters controlling: (i) affective appraisal annotating emotion states of the user input; (ii) retention of previously stored memories along with the current input; (iii) passive affect-driven memory retrieval exploring memories similar to user input in semantics and personality-guided emotions; and (iv) active goal-driven memory retrieval that refines and selects passively retrieved memories for the reply. Consequently, consistency with the pre-defined personality can be examined by inspecting memory-processing traces during human-agent interactions. We evaluate these personality-dependent differences in attachment and Big Five settings. PersMem exceeds the chance baseline for four-way attachment classification by 23.1 percentage points. In Big Five dialogue comparisons, PersMem achieves 67.5% accuracy, 6.7 percentage points above a baseline using uniformly sampled memories. On CoSER, PersMem achieves an average score of 66.13, with scores of 69.33 for Character Fidelity and 84.33 for Storyline Quality. Together, these results show that PersMem produces distinguishable personality-related memory-processing patterns.

Figures & tables

Appendix figures & tables11 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. PGMem: Tightly Coupled Persona-Memory Graph for Lifelong Personalized Agents

    Aug 3, 2026Wonjun Choi, Yerim Kim, Yukyung Lee +1Agentic MemoryPeak Memory

  2. PersonaTree: Structured Lifecycle Memory for Person Understanding in LLM Agents

    Jun 3, 2026Yubo Hou, Jingwei Song, Hongbo Zhang +4Persona ConsistencyLarge Language Model Agents

  3. From Facts to Insights: A Persona-Driven Dual Memory Framework and Dataset for Role-Playing Agents

    May 25, 2026Rongsheng Zhang, Ruofan Hu, Weijie Chen +7Role-Playing AgentsLong-Term Memory