MetaRM: Shifted Distributions Alignment via Meta-Learning
Shihan Dou, Yan Liu, Enyu Zhou, Tianlong Li, Haoxiang Jia, Limao Xiong, Xin Zhao, Junjie Ye, Rui Zheng, Tao Gui, Qi Zhang, Xuanjing Huang
TL;DR
MetaRM addresses the distribution-shift problem in reward models during iterative RLHF by meta-learning a shifted-distribution-aware RM. It performs a one-step gradient ascent on a difference loss $\,\mathcal{J}_{\theta}$ computed from a meta-set drawn from the shifted environment, producing $ heta'$, then optimizes the vanilla preference loss on original data and updates $ heta$ with a descent. The method yields a gradient that includes a dot-product term between the meta and vanilla gradients, encouraging data that are jointly informative for both objectives. Across dialogue and summarization tasks on HH-RLHF and OOD datasets, MetaRM improves RM discrimination and language model performance over SFT, PPO, and DPO, particularly in early RLHF rounds, and demonstrates robustness to distribution shift without requiring additional labeled data. These results suggest MetaRM can enable more reliable, label-efficient adaptation of reward models during iterative RLHF with enhanced sensitivity to subtle, shifted-distribution differences.
Abstract
The success of Reinforcement Learning from Human Feedback (RLHF) in language model alignment is critically dependent on the capability of the reward model (RM). However, as the training process progresses, the output distribution of the policy model shifts, leading to the RM's reduced ability to distinguish between responses. This issue is further compounded when the RM, trained on a specific data distribution, struggles to generalize to examples outside of that distribution. These two issues can be united as a challenge posed by the shifted distribution of the environment. To surmount this challenge, we introduce MetaRM, a method leveraging meta-learning to align the RM with the shifted environment distribution. MetaRM is designed to train the RM by minimizing data loss, particularly for data that can improve the differentiation ability to examples of the shifted target distribution. Extensive experiments demonstrate that MetaRM significantly improves the RM's distinguishing ability in iterative RLHF optimization, and also provides the capacity to identify subtle differences in out-of-distribution samples.
