WARP: On the Benefits of Weight Averaged Rewarded Policies

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Ramé, Alexandre, Ferret, Johan, Vieillard, Nino, Dadashi, Robert, Hussenot, Léonard, Cedoz, Pierre-Louis, Sessa, Pier Giuseppe, Girgin, Sertan, Douillard, Arthur, Bachem, Olivier
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866911930690568192
author Ramé, Alexandre
Ferret, Johan
Vieillard, Nino
Dadashi, Robert
Hussenot, Léonard
Cedoz, Pierre-Louis
Sessa, Pier Giuseppe
Girgin, Sertan
Douillard, Arthur
Bachem, Olivier
author_facet Ramé, Alexandre
Ferret, Johan
Vieillard, Nino
Dadashi, Robert
Hussenot, Léonard
Cedoz, Pierre-Louis
Sessa, Pier Giuseppe
Girgin, Sertan
Douillard, Arthur
Bachem, Olivier
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2406_16768
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle WARP: On the Benefits of Weight Averaged Rewarded Policies
Ramé, Alexandre
Ferret, Johan
Vieillard, Nino
Dadashi, Robert
Hussenot, Léonard
Cedoz, Pierre-Louis
Sessa, Pier Giuseppe
Girgin, Sertan
Douillard, Arthur
Bachem, Olivier
Machine Learning
Artificial Intelligence
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.
title WARP: On the Benefits of Weight Averaged Rewarded Policies
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2406.16768