Abstract
Standard Reinforcement Learning from Human Feedback (RLHF) often fails when Large Language Models (LLMs) encounter out-of-distribution (OOD) scenarios, leading to policy drift. This paper proposes a meta-learning framework that treats reward modeling as a bilevel optimization problem. By optimizing a Reward Model (RM) to serve as an effective "teacher" for language policies across diverse distributions, the proposed method ensures robust alignment with human preferences even in unseen domains. Experimental results on sentiment and knowledge generation tasks demonstrate that this approach significantly outperforms traditional in-distribution methods like PPO and DPO.
Introduction
Aligning Large Language Models (LLMs) with human values typically involves Reinforcement Learning from Human Feedback (RLHF). While effective in-distribution (ID), these models often struggle when deployed in new, out-of-distribution (OOD) domains. In such cases, standard Reward Models (RMs) fail to provide accurate guidance, causing the policy to drift away from human preferences. The fundamental challenge lies in developing an RM that acts as a generalized judge rather than a simple lookup table for training examples.
Methodology: Meta-Learning for Preference Alignment
The authors introduce a meta-learning-based bilevel optimization algorithm to address the OOD challenge. This approach shifts the focus from simple classification to training an RM that optimizes the learning trajectory of the language policy.
Bilevel Optimization Framework
The problem is structured as a nested optimization:
- Inner Loop (Policy Learning): A language policy $\pi_\theta$ is fine-tuned using the current Reward Model $r_\phi$. To ensure computational efficiency, the authors utilize Karush-Kuhn-Tucker (KKT) conditions to derive an approximate closed-form solution for this step.
- Outer Loop (Reward Meta-Training): The Reward Model $r_\phi$ is updated based on the performance of the resulting policy on a separate "query set." The goal is to optimize the RM such that any policy trained under its guidance aligns closely with human preferences.
To maintain stability and prevent the model from deviating too far from the base language distribution, a Kullback-Leibler (KL) divergence regularization term is integrated into the objective.
Theoretical Convergence
The paper provides a theoretical analysis proving that this bilevel approach converges to a stationary point. The convergence rate is shown to be influenced by the number of iterations and a "reward controlling factor" ($\beta$), which manages the sharpness of the reward distribution.
Experimental Evaluation
The proposed method, termed OODPL, was evaluated across 22 held-out distributions in two main tasks:
- Controlled Sentiment Generation (CSG): Using the Amazon Review dataset across four domains (books, DVD, electronics, kitchen) in a leave-one-out cross-validation setup.
- Knowledge Answer Generation (KAG): Utilizing the Stanford Human Preferences (SHP) dataset, which spans 18 Reddit Q&A domains.
Evaluation was conducted using GPT-4 as a judge to generate pairwise comparisons and calculate win rates against baselines.
Key Results and Insights
OODPL consistently outperformed strong baselines, including Supervised Fine-Tuning (SFT), Proximal Policy Optimization (PPO), and Direct Preference Optimization (DPO).
- Superior Accuracy: In the CSG task, OODPL achieved a Preference Learning (PL) accuracy of 0.86, significantly higher than standard RLHF variants. In the KAG task, it reached 0.75.
- Robustness to Policy Drift: By explicitly modeling OOD scenarios during meta-training, the RM learns to penalize generations that stray from target distribution characteristics.
- The Impact of $\beta$: The reward controlling factor $\beta$ was found to be critical for stability. A larger $\beta$ flattens the reward distribution, providing smoother gradients that lead to better generalization.
Discussion and Future Work
While OODPL shows significant promise, it faces challenges regarding computational complexity due to the nature of bilevel optimization. Additionally, the reliance on GPT-4 for evaluation introduces potential model-specific biases. Future research could explore more efficient meta-learning architectures and the incorporation of diverse feedback types beyond pairwise preferences to further enhance OOD robustness.
Summary updated