TL;DR
This paper introduces the Preference Pretrained Transformer (PPT), a novel framework for personalizing large language models (LLMs) using in-context learning. PPT adapts to individual user preferences dynamically during interaction, outperforming existing methods in a contextual bandit setting while being computationally more efficient.
What Problem Does This Paper Address?
Reinforcement Learning from Human Feedback (RLHF) is a powerful technique for aligning LLMs with human preferences. However, standard RLHF typically learns a single, general policy that caters to the average user, neglecting the diverse preferences of individuals. This can lead to suboptimal user experiences, especially for those whose preferences deviate from the majority. Existing personalization methods often require training multiple models or complex aggregation strategies, which can be computationally expensive and difficult to scale. The paper aims to address this by developing a method that can efficiently and effectively personalize LLMs to individual users on the fly.
Methods
The proposed approach, Preference Pretrained Transformer (PPT), has two main phases:
- Offline Phase: A single policy model is trained using a history-dependent loss function. This phase leverages a Direct Preference Optimization (DPO) approach, which avoids the need to explicitly learn a separate reward model. The goal is to train a model that can predict preferred responses based on past interactions.
- Online Phase: During inference, the pretrained model interacts with a user. For each prompt, it generates two potential responses and asks the user to rank them. This interaction history is then appended to the model's context, allowing it to dynamically adapt to the user's preferences through in-context learning. This process enables personalized adaptation without retraining or complex model selection for each new user.
The core idea is that a transformer's in-context learning capabilities can be harnessed to infer and adapt to user preferences after just a few interactions.
Datasets
The paper describes an experimental setup using synthetic data for evaluation.
- Training Data: Generated by sampling context vectors (questions) and creating preference data based on subpopulation-specific reward models. The data is stratified by preference groups.
- Evaluation Data: A separate set of test contexts is used to evaluate the model's performance over simulated interaction turns.
The authors do not introduce new benchmark datasets but rather use a simulated environment to mimic real-world user interactions and preferences.
Key Insights and Ideas
- In-Context Learning for Personalization: The paper demonstrates that transformers' in-context learning abilities are highly effective for dynamic, personalized adaptation, eliminating the need for explicit user profiling or separate models per user.
- Single Model Efficiency: Training a single, adaptable policy model (PPT) is significantly more computationally efficient than methods requiring multiple specialized models (like Personalized Soups).
- History as Context: The interaction history with a user is treated as context, allowing the model to continuously refine its understanding of that user's preferences.
- DPO for Preference Learning: Using Direct Preference Optimization simplifies the training process by directly optimizing the policy based on preferences, bypassing the intermediate step of reward modeling.
Key Results
- Superior Performance: PPT consistently outperforms the Personalized Soups (PS) baseline across different user groups (including those with mixed preferences) in terms of accumulated rewards over interaction turns.
- Scalability and Efficiency: PPT significantly reduces computational costs by training only one policy model, making it more scalable for personalization compared to methods that require multiple models.
- Dynamic Adaptation: The rewards for PPT increase with the number of interaction turns, indicating effective and continuous adaptation to user preferences. In contrast, PS showed more fluctuations.
Limitations and Future Work
- Limited LLM Scale: The authors acknowledge that a key limitation is the lack of experiments with large language models. They suggest that future work should explore PPT's application to more complex language tasks and its performance with larger LLMs.
- Synthetic Data: The experiments were conducted on synthetic data. Real-world evaluation with actual users and diverse LLM tasks would be crucial.
- Uniform Prior for User Profiles: The assumption of a uniform distribution over preference groups for unknown user profiles is a simplification. While empirically effective, exploring more sophisticated ways to infer user profiles could further improve performance.
Summary updated