Personalized Language Modeling from Personalized Human Feedback
Xinyu Li, Ruiyang Zhou, Zachary C. Lipton, Liu Leqi
TL;DR
The paper tackles the limitation that vanilla RLHF assumes a single distribution of human preferences, hindering personalization of LLM outputs. It introduces Personalized-RLHF (P-RLHF), which couples a lightweight, learnable user model with a base LLM, using both explicit textual user information and implicit feedback to tailor responses via a Personalized Direct Preference Optimization objective. The authors demonstrate that P-RLHF can learn individualized or cluster-based user embeddings, enabling scalable personalization across large user bases and improving alignment with diverse preferences on synthetic, semi-synthetic, and real-world datasets. This approach reduces the need for multiple models or rewarders, supports unseen users via generic embeddings, and offers a flexible framework compatible with various RLHF variants; code is open-source.
Abstract
Personalized large language models (LLMs) are designed to tailor responses to individual user preferences. While Reinforcement Learning from Human Feedback (RLHF) is a commonly used framework for aligning LLMs with human preferences, vanilla RLHF assumes that all human preferences share the same distribution, preventing fine-tuned LLMs from generating personalized content when user preferences are diverse. In this work, we propose Personalized-RLHF (P-RLHF), an efficient framework that utilizes a lightweight user model to capture individual user preferences and jointly learns the user model and the personalized LLM from human feedback. P-RLHF exhibits the following three characteristics: (1) It enables an LLM to generate personalized content and scale efficiently with growing number of users. (2) It handles both explicit user preferences described as textual input and implicit user preferences encoded in the feedback data. (3) It eliminates the need for users to fully articulate their preferences, which are normally needed for prompting LLMs to generate personalized content yet are often impractical to obtain in real-world scenarios. Our experimental results show that personalized LLMs trained using P-RLHF generate responses that are more closely aligned with individual user preferences, outperforming vanilla, non-personalized RLHF and prompting-based personalization approaches across different tasks. We opensource our code at https://github.com/HumainLab/Personalized_RLHF.
