PrefReward: Learning User Preference Matrix for Personalized Text Generation

Yue Wu, Chengbing Wang, Yimeng Bai, Xiaoyan Zhao, Yang Zhang, Fuli FengarXiv 2026

TL;DR

PrefReward is a novel, training-free framework that personalizes Large Language Model (LLM) text generation by explicitly modeling user style as an interpretable preference matrix. By evaluating candidate generations against this matrix using a KL-divergence-based reward function at the decoding stage, it achieves superior stylistic alignment and text quality without the need for costly model retraining.

What Problem Does This Paper Address?

While LLMs excel at general text generation, tailoring their output to match an individual user's unique writing style, tone, or formatting preferences (personalization) remains a challenge.

Current approaches typically fall into two categories, both of which have major drawbacks:

  1. Implicit Parameter Tuning: Methods like supervised fine-tuning or reinforcement learning embed user preferences directly into model weights. This is computationally expensive, hard to scale to millions of users, and creates an "opaque" model where it is impossible to see or control what stylistic dimensions have actually been learned.
  2. Prompt Engineering & RAG: Passing historical user context into the prompt at inference time avoids retraining but struggles with long-context dependencies, introduces retrieval noise, and quickly exhausts the model's context window.

The authors introduce PrefReward to bridge this gap, providing a personalization method that is both train-free (operates entirely during decoding) and highly interpretable (uses explicit, human-readable style matrices).

Methods

PrefReward splits the personalization process into two distinct, lightweight stages:

1. Preference Matrix Extraction

Instead of relying on abstract latent embeddings, the framework defines a fixed set of explicit, human-understandable stylistic labels $\mathcal{P}$ (e.g., formal, concise, vivid, humor).

  • Profile Selection: A BM25 retriever selects the top-$K$ most relevant historical text samples from a user's profile to minimize noise.
  • Token-Level Extraction: For each historical sample, the system runs a forward pass through a frozen LLM. At each token step, it extracts the next-token logit distribution and filters it to retain only the probabilities of the words belonging to the predefined style categories $\mathcal{P}$.
  • Matrix Construction: These token-level distributions are averaged across the sequence to form a sequence-level preference vector. Aggregating these vectors across the $K$ historical samples yields the final User Preference Matrix $\mathbf{P}_u$.
Preference Matrix Approximation Pipeline

2. Preference-Guided Generation

During inference, the model uses a Best-of-$N$ sampling strategy to generate $N_c$ candidate outputs for a given prompt.

  • For each candidate, a preference vector is calculated using the same token-level extraction method.
  • The framework computes the KL-divergence between the candidate’s style distribution and the user's average historical preference distribution ($\bar{\mathbf{P}}_u$).
  • The negative KL-divergence serves as a reward signal: $$R_i = -\text{KL}(\mathbf{p}_y^{(i)} \parallel \bar{\mathbf{P}}_u)$$
  • The candidate that minimizes this divergence (highest reward) is selected as the final personalized output.
Figure 1: Overview of the proposed PrefReward framework, which consists of (1) Preference Matrix Approximation from user profiles and (2) Preference-Guided Decoding using KL- divergence reward.

Datasets

The authors evaluated their framework on the LongLaMP dataset, a benchmark specifically designed for personalized, long-form text generation. They focused on the personalized review writing task, using $K=2$ historical profiles per user to extract stylistic preferences.

Key Insights and Ideas

  • Logits as Style Proxies: The core "aha moment" is realizing that an LLM's raw next-token logit distributions over specific vocabulary subsets can act as an incredibly precise, training-free style classifier.
  • Decoupling Content from Style: By using a standard prompt to generate candidate texts and then filtering them via a stylistic reward function, PrefReward decouples factual/task instruction following from stylistic alignment.
  • The Sweet Spot for Label Size: You don't need hundreds of style attributes to capture a user's essence. The authors found that increasing the number of stylistic labels improves performance up to a point, but plateaus around 20 labels, striking an ideal balance between expressiveness and computational efficiency.
Figure 2: Effect of different preference label size on model performance

Key Results

PrefReward was tested across two distinct backbone architectures: Llama2-7B-Chat (zero-shot setting) and an aligned Gemma-2B-IT model. It was compared against standard generation (NonPers), Retrieval-Augmented Generation (RAG with BM25 and Contriever), and Context Steering (CoS).

  • Consistent Performance Gains: PrefReward consistently outperformed all baselines across ROUGE-1, ROUGE-L, and METEOR metrics.
  • Superiority over RAG: On the aligned Gemma-2B-IT backbone, PrefReward achieved a ROUGE-1 score of 0.3387, outperforming the strongest RAG baseline (Contriever) at 0.3277.
  • Mitigating Hallucinations: Qualitative case studies showed that while RAG methods often hallucinate details from retrieved historical contexts into the new text, PrefReward successfully copies the style without mixing up the factual content of the histories.
Table 1: Overall performance comparison on the LongLaMP dataset across two backbone LLMs. Best results under each model are highlighted in bold.

Limitations and Future Work

While PrefReward avoids the massive compute costs of fine-tuning, its reliance on Best-of-$N$ sampling introduces a different computational overhead at inference time, as the model must generate multiple candidate outputs before selecting the best one.

To address this, the authors note that promising future directions include leveraging these explicit preference matrices to fine-tune LLMs using preference-aware reinforcement learning (like PPO or DPO) for direct, end-to-end optimized personalized decoding.

Summary updated

BibTeX
@misc{wu2026prefreward,
  author = {Yue Wu and Chengbing Wang and Yimeng Bai and Xiaoyan Zhao and Yang Zhang and Fuli Feng},
  title = {{PrefReward: Learning User Preference Matrix for Personalized Text Generation}},
  year = {2026},
  eprint = {2607.21067},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.21067},
}
Figure