PrLM: Learning Explicit Reasoning for Personalized RAG via Contrastive Reward Optimization

Kepu Zhang, Teng Shi, Weijie Yu, Jun Xu

Introduction

Personalized Retrieval-Augmented Generation (RAG) is a critical frontier in making Large Language Models (LLMs) truly useful for individual users. The goal is to tailor outputs—such as news headlines, tweets, or scholarly titles—to match a specific user's stylistic preferences and historical context. Traditionally, this has been approached by retrieving a user's profile and providing it as context, expecting the model to implicitly adapt. However, this "black box" approach often fails when faced with noisy retrieval data or complex stylistic nuances.

This paper introduces PrLM (Personalized Reasoning Language Model), a framework that shifts the paradigm from implicit adaptation to explicit reasoning. By training models to generate intermediate reasoning paths, PrLM improves personalization accuracy, enhances transparency, and demonstrates remarkable robustness to irrelevant information.

The Problem: Implicit Guessing vs. Explicit Thinking

Existing personalized RAG systems suffer from two primary limitations:

  1. Sensitivity to Noise: When a retriever pulls in irrelevant history (a common occurrence in real-world scenarios), the LLM often struggles to distinguish signal from noise, leading to generic or misaligned outputs.
  2. Lack of Transparency: Because the model's "thought process" is hidden, it is difficult to verify whether the model is actually utilizing the user's profile or simply relying on its internal parametric knowledge.

PrLM addresses these issues by requiring the model to reflect on the retrieved context—identifying key patterns and stylistic markers—before producing the final response.

Methodology

PrLM utilizes a reinforcement learning (RL) framework to teach the model how to reason over user data without requiring expensive, human-annotated reasoning chains.

Explicit Reasoning Traces

The model is trained to generate an intermediate reasoning path enclosed within <think>...</think> tags. This step forces the model to analyze the retrieved user history and formulate a strategy for the final generation.

Group Relative Policy Optimization (GRPO)

To optimize the model, the authors employ Group Relative Policy Optimization (GRPO), an algorithm popularized by models like DeepSeek-R1. GRPO samples multiple outputs for a single query and rewards those that follow the correct format, maintain factual accuracy, and exhibit high personalization fidelity.

Contrastive Personalization Reward

A key innovation of PrLM is the Contrastive Personalization Reward. To ensure the model doesn't just produce a generic high-quality response, the authors trained a BERT-based reward model. This model compares a "personalized" response (generated with user history) against a "generic" response (generated without history). It learns to reward the specific "delta" or unique stylistic elements that align with the user's profile, effectively penalizing generic outputs that ignore the provided context.

Composite Reward Function

The RL process is guided by a tripartite reward system:

  • Format Reward: Ensures the model correctly utilizes the <think> tags.
  • Correctness Reward: Measures the alignment with the ground truth using standard metrics like ROUGE and BLEU.
  • Personalization Reward: Evaluates how well the response captures the user's specific style via the contrastive model.

Experimental Setup and Datasets

The framework was evaluated using three subsets of the LaMP (Language Model Personalization) benchmark:

  • LaMP-4: Personalized News Headline Generation.
  • LaMP-5: Personalized Scholarly Title Generation.
  • LaMP-7: Personalized Tweet Paraphrasing.

These datasets require the model to mimic specific writing styles and thematic interests, providing a rigorous test for personalization capabilities.

Key Insights and Results

Superior Performance

PrLM consistently outperformed state-of-the-art baselines, including ROPG and CFRAG. On the LaMP-5 dataset, PrLM achieved a ROUGE-1 score of 36.74, a significant improvement over the previous best baseline (CFRAG at 31.41).

Robustness to Noise

One of the most significant findings is PrLM's resistance to retrieval noise. In standard RAG setups, adding more user profiles often leads to a performance plateau or decline as the model becomes overwhelmed. In contrast, PrLM’s performance continues to scale with more profiles because the explicit reasoning step allows the model to effectively filter out irrelevant information.

Zero-Label Reasoning Discovery

The study demonstrates that models can "discover" effective reasoning strategies through RL even without human-annotated "thought" samples. By rewarding the final outcome and the structural format, the model learns to use the reasoning space to improve its own accuracy.

Limitations and Future Work

While PrLM shows great promise, the authors note several areas for further exploration:

  • Scaling: The current experiments used a 1.5B parameter model (DeepSeek-R1-Distill-Qwen-1.5B). Future research should investigate how these techniques scale to larger models (e.g., 70B+ parameters).
  • Computational Overhead: Training with GRPO is more resource-intensive than standard supervised fine-tuning.
  • Reasoning Analysis: While the reasoning traces improve performance, further analysis is needed to ensure the logical consistency of the "thoughts" themselves rather than just their utility in reaching the correct answer.

Conclusion

PrLM represents a significant step forward for personalized RAG. By moving from implicit pattern matching to explicit reasoning, the framework provides a more robust, transparent, and accurate way to tailor AI responses to individual users. The use of contrastive rewards ensures that the model remains focused on the unique characteristics of the user, paving the way for more sophisticated and reliable personalized AI assistants.

Summary updated

BibTeX
@inproceedings{zhang2025prlm,
  author = {Kepu Zhang and Teng Shi and Weijie Yu and Jun Xu},
  title = {{PrLM: Learning Explicit Reasoning for Personalized RAG via Contrastive Reward Optimization}},
  booktitle = {ACM International Conference on Information and Knowledge Management},
  year = {2025},
  doi = {10.1145/3746252.3760851},
}
Figure