PRIME: Large Language Model Personalization with Cognitive Memory and Thought Processes

Xinliang Frederick Zhang, Nick Beauchamp, Lu Wang · OpenReview

Abstract

Large language model (LLM) personalization aims to align model outputs with individuals' unique preferences and opinions. While recent efforts have implemented various personalization methods, a unified theoretical framework that can systematically understand the drivers of effective personalization is still lacking. In this work, we integrate the well-established cognitive dual-memory model into LLM personalization, by mirroring episodic memory to historical user engagements and semantic memory to long-term, evolving user beliefs. Specifically, we systematically investigate memory instantiations and introduce a unified framework, PRIME, using episodic and semantic memory mechanisms. We further augment PRIME with a novel personalized thinking capability inspired by the slow thinking strategy. Moreover, recognizing the absence of suitable benchmarks, we introduce a dataset using Change My View (CMV) from Reddit, specifically designed to evaluate long-context personalization. Extensive experiments validate PRIME's effectiveness across both long- and short-context scenarios. Further analysis confirms that PRIME effectively captures dynamic personalization beyond mere popularity biases.

Introduction

Personalization in Large Language Models (LLMs) has often felt like a surface-level coat of paint—mimicking a user's writing style or retrieving a few past chat logs. But true personalization requires understanding a user’s underlying beliefs, evolving preferences, and the specific context of their history. Current approaches are often piecemeal, relying on either Retrieval-Augmented Generation (RAG) for past context or fine-tuning to bake user data into model weights. This paper introduces PRIME (Personalized Reasoning with Integrated MEmory), a framework that moves beyond simple retrieval to give LLMs a cognitive architecture for personalization.

The PRIME Framework

PRIME draws direct inspiration from the Atkinson-Shiffrin cognitive model, implementing a dual-memory system that separates specific events from abstracted knowledge.

Overview of the PRIME framework, illustrating the memory instantiation process (left) and the active memory utilization at test-time (right).

Dual-Memory System

  • Episodic Memory (EM): This component mirrors human recall of specific events. In PRIME, it is implemented via recency-based retrieval of raw historical user engagements, providing the model with concrete examples of past behavior.
  • Semantic Memory (SM): This mirrors abstracted knowledge and beliefs. PRIME realizes this parametrically using LoRA (Low-Rank Adaptation) weights. By internalizing a user’s long-term traits into its parameters rather than just reading them as text, the model develops a more robust "understanding" of the user.

Personalized Thinking: The "Slow Thinking" Approach

Most personalized models suffer from a "fast thinking" trap, mapping inputs directly to outputs. PRIME introduces a novel personalized thinking process inspired by Chain-of-Thought (CoT) reasoning. Through a self-distillation process, the model is taught to generate intermediate reasoning traces. Before providing a final answer, the model explicitly generates a user profile summary, sketches a reasoning outline based on that profile, and evaluates candidate responses through the user's unique lens.

Evaluation and Datasets

The researchers evaluated PRIME on two distinct benchmarks:

  1. CMV (Change My View): A newly introduced dataset derived from the Reddit forum r/changemyview. CMV focuses on long-context personalization and deep beliefs, requiring the model to identify which reply would be most persuasive to a specific user based on years of posting history.
  2. LaMP: A standard public benchmark for LLM personalization covering diverse tasks such as news headline generation and product rating.

Results and Discussion

PRIME was tested across various model families, including Llama 3, Qwen 2.5, Mistral, and Phi-4, consistently demonstrating superior performance over non-personalized and standard retrieval baselines.

Performance comparison of PRIME against various memory components and baselines on the LaMP benchmark tasks.

Key Insights

  • Semantic Memory Robustness: The study found that semantic memory (abstracting beliefs into weights) is generally more robust than episodic memory (retrieving raw text). Understanding a user's underlying stance is more effective than simply remembering what they said.
  • Memory Conflict: Interestingly, combining EM and SM (the "DUAL" approach) sometimes performed worse than SM alone, suggesting that raw history can occasionally introduce noise that conflicts with abstracted profiles.
  • Tailored Reasoning: Generic Chain-of-Thought can hinder personalization if the model uses "general" logic that ignores idiosyncratic preferences. PRIME’s personalized thinking ensures the "inner monologue" remains aligned with the user.
  • Efficiency: On the LaMP benchmark, PRIME outperformed all non-SOTA baselines while using 100x less training data than specialized systems like OPPU, highlighting its efficiency for real-world deployment.

Conclusion

PRIME offers a principled framework for LLM personalization by mimicking human cognitive structures. By integrating dual-memory systems with a personalized "slow thinking" process, it achieves significant gains in both long- and short-context scenarios. Future work will focus on scaling the framework to larger models (70B+) and addressing the inference overhead associated with generating detailed reasoning traces.

Summary updated

BibTeX
@inproceedings{zhang2025prime,
  author = {Xinliang Frederick Zhang and Nick Beauchamp and Lu Wang},
  title = {{PRIME: Large Language Model Personalization with Cognitive Memory and Thought Processes}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2025},
  url = {https://openreview.net/forum?id=TIwx9RMHpR},
}
Figure