Language Model Personalization via Reward Factorization

Idan Shenfeld, Felix Faltings, Pulkit Agrawal, Aldo Pacchiano

TL;DR

This paper introduces PReF, a novel framework for personalizing Large Language Models (LLMs) by factoring user preferences into a linear combination of base reward functions. This approach significantly reduces the data needed to personalize LLMs, achieving strong results with as few as 10 user interactions, and outperforms standard RLHF and per-user models.

What Problem Does This Paper Address?

Modern LLMs are often fine-tuned using Reinforcement Learning from Human Feedback (RLHF) to align their outputs with human preferences. However, existing RLHF methods typically assume a single, universal preference model for all users. This is a major limitation for personalization, as individual users have diverse needs and preferences (e.g., using an LLM for professional tasks versus casual conversation). Training a separate LLM for each user is computationally infeasible due to the massive amount of data (thousands of examples) and resources required. The paper addresses this gap by proposing an efficient method to personalize LLMs without needing to train separate models per user or collect extensive user-specific data.

Methods

The core of the proposed framework, PReF (Personalization via Reward Factorization), is to represent each user's reward function as a linear combination of a fixed set of "base" reward functions. Mathematically, for user i, their reward function $r_i(x, y)$ is expressed as $r_i(x, y) = \sum_{j=1}^{J} \lambda_{ij} \phi_j(x, y)$, where $\phi_j$ are the base reward functions and $\lambda_{ij}$ are user-specific coefficients that determine the weight of each base function for that user.

The framework involves two main stages:

  1. Learning Base Reward Functions: The paper first learns a set of $J$ base reward functions ($\phi_j$) and user embeddings ($\lambda$) from a dataset of pairwise preferences annotated with user identities. This is achieved using a Maximum Likelihood Estimator (MLE) objective, adapted for a matrix factorization problem. To address training instabilities arising from the bilinear dependency between user weights and base functions, they employ a two-step approach: Singular Value Decomposition (SVD) for initialization, followed by MLE refinement with L2 regularization on user vectors.
  2. Adapting to New Users: For a new user, PReF infers their specific preference coefficients ($\lambda$) by collecting a small number of pairwise comparisons. An active learning strategy is used to select the most informative prompt-response pairs, minimizing the number of interactions needed. This process leverages a logistic bandit algorithm and uncertainty-based selection to efficiently estimate the user's coefficients, requiring only about 10-20 user responses.

Datasets

The paper uses the following datasets:

  • Attributes: A synthetic dataset created by simulating user preferences using LLMs as roleplay judges. Seven preference attributes were defined, and users were assigned two random traits, resulting in 84 unique simulated users. Preference data was collected using prompts from the AlpacaEval dataset.
  • PRISM: A real-world dataset containing user preferences for LLM-generated content. To make it suitable for their method, they augmented it with synthetic annotations following the PERSONA protocol, as the original dataset lacked sufficient overlap between users and prompts.

Key Insights and Ideas

  • Low-Dimensional User Preferences: The core assumption that user preferences can be represented in a low-dimensional space (as a linear combination of base functions) is key to achieving data efficiency. This allows for generalization across users and avoids the need for massive per-user datasets.
  • Factorization for Efficiency: Decomposing the reward function into base functions and user-specific weights is a powerful way to disentangle general preference patterns from individual nuances, leading to significant data savings.
  • Active Learning for Data Efficiency: Using uncertainty-based active learning to select which prompt-response pairs to present to a new user is crucial for quickly and accurately inferring their preferences. This dramatically reduces the interaction burden on the user.
  • SVD Initialization for Stability: The bilinear nature of the reward factorization problem makes it prone to instabilities. Using SVD for initialization provides a structured starting point, significantly improving training stability and reducing variance.

Key Results

  • Data Efficiency: PReF requires significantly fewer user responses (e.g., ~10) to achieve comparable or better performance than standard RLHF methods that need hundreds or thousands of examples. In human evaluations, PReF achieved a 67% win rate over default GPT-4o responses, learned from just 15 interactions.
  • Performance Superiority: On both synthetic (Attributes) and real-world (PRISM) datasets, PReF consistently outperformed standard RLHF and a "Model per User" baseline, achieving higher AUC-ROC scores and win rates. For instance, PReF achieved a 10-15% AUC-ROC gain with fewer than 10 user responses.
  • Comparison to Other Personalization Methods: PReF outperformed other personalization frameworks like Variational Preference Learning (VPL) and Pluralistic Alignment (PAL) in terms of AUC-ROC, especially when using a moderate number of user responses.
  • Interpretability: The learned base reward functions captured meaningful dimensions of user preferences, aligning well with the attributes used for data generation (e.g., "Informal vs. Formal," "Conciseness vs. Elaborateness").

Limitations and Future Work

  • Dataset Limitations: A major limitation acknowledged is the scarcity of available datasets with preference feedback from multiple users for the same generation pairs. This necessitated the use of synthetically generated data for many experiments, which might not fully capture real-world user behavior.
  • Future Work: The authors suggest collecting large datasets with overlapping annotations as an important goal for future research. They also highlight that the current framework's base functions are learned from data and could potentially be predefined or learned more efficiently. Further exploration into more sophisticated active learning strategies and more expressive base function representations could also be beneficial.

Summary updated

BibTeX
@inproceedings{shenfeld2025language,
  author = {Idan Shenfeld and Felix Faltings and Pulkit Agrawal and Aldo Pacchiano},
  title = {{Language Model Personalization via Reward Factorization}},
  booktitle = {COLM},
  year = {2025},
  url = {https://openreview.net/forum?id=E7Tu5yjqXw},
}
Figure