WARP: On the Benefits of Weight Averaged Rewarded Policies
Abstract
Reinforcement learning from human feedback (RLHF) aligns large language models (LLMs) by encouraging their generations to have high rewards, using a reward model trained on human preferences. To prevent the forgetting of pre-trained knowledge, RLHF usually incorporates a KL regularization; this forces the policy to remain close to its supervised fine-tuned initialization, though it hinders the reward optimization. To tackle the trade-off between KL and reward, in this paper we introduce a novel alignment strategy named Weight Averaged Rewarded Policies (WARP). WARP merges policies in the weight space at three distinct stages. First, it uses the exponential moving average of the policy as a dynamic anchor in the KL regularization. Second, it applies spherical interpolation to merge independently fine-tuned policies into a new enhanced one. Third, it linearly interpolates between this merged model and the initialization, to recover features from pre-training. This procedure is then applied iteratively, with each iteration's final model used as an advanced initialization for the next, progressively refining the KL-reward Pareto front, achieving superior rewards at fixed KL. Experiments with GEMMA policies validate that WARP improves their quality and alignment, outperforming other open-source LLMs.
Community
Introducing Google Deepmind’s WARP (Weight Averaged Rewarded Policies), a novel alignement procedure using model merging to optimize the reward while mitigating forgetting/hacking. WARP boosts RLHF and allows the training of a Gemma LLM surpassing all previous releases.
Following WARM (Weight Averaged Reward Models, https://arxiv.org/abs/2401.12187), we now use 3 variants of weight averaging at 3 different stages of the policy optimization procedure, applied iteratively. First use the exponential moving average as the anchor in the KL, then merge the independently fine-tuned policies, and linearly interpolate towards the init. Applying this procedure iteratively consistently improves the KL-reward Pareto front of solutions.
Models citing this paper 0
No model linking this paper
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper