TensorX
返回文献探索

Paper · arXiv 2406.16768

WARP: On the Benefits of Weight Averaged Rewarded Policies

Alexandre Ramé, Johan Ferret, Nino Vieillard, Robert Dadashi, Léonard Hussenot, Pierre-Louis Cedoz, Pier Giuseppe Sessa, Sertan Girgin, Arthur Douillard, Olivier Bachem

23 upvotesJune 24, 2024arXiv 预印本
AI 摘要

A new alignment strategy named Weight Averaged Rewarded Policies (WARP) enhances reinforcement learning from human feedback by merging policies at multiple stages to balance KL regularization and reward optimization, improving large language model quality and alignment.

reinforcement learning from human feedbacklarge language modelsreward modelKL regularizationexponential moving averagespherical interpolationlinear interpolationKL-reward Pareto frontLLMsGEMMA 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.

北京市昌平区探索星信息技术及软件开发工作室

京ICP备2026059466号