CLDec 6, 2023

Language Model Alignment with Elastic Reset

MILA
arXiv:2312.07551v141 citationsh-index: 8Has CodeNIPS
Originality Incremental advance
AI Analysis

This addresses alignment issues in language models for applications like chatbots and sentiment analysis, but it is incremental as it builds on existing RLHF methods.

The paper tackles the problem of reward hacking and language drift in RLHF-aligned language models by proposing Elastic Reset, an algorithm that periodically resets the model to an EMA and the initial model, achieving higher reward with less drift and state-of-the-art performance on benchmarks like pivot-translation and IMDB sentiment tasks.

Finetuning language models with reinforcement learning (RL), e.g. from human feedback (HF), is a prominent method for alignment. But optimizing against a reward model can improve on reward while degrading performance in other areas, a phenomenon known as reward hacking, alignment tax, or language drift. First, we argue that commonly-used test metrics are insufficient and instead measure how different algorithms tradeoff between reward and drift. The standard method modified the reward with a Kullback-Lieber (KL) penalty between the online and initial model. We propose Elastic Reset, a new algorithm that achieves higher reward with less drift without explicitly modifying the training objective. We periodically reset the online model to an exponentially moving average (EMA) of itself, then reset the EMA model to the initial model. Through the use of an EMA, our model recovers quickly after resets and achieves higher reward with less drift in the same number of steps. We demonstrate that fine-tuning language models with Elastic Reset leads to state-of-the-art performance on a small scale pivot-translation benchmark, outperforms all baselines in a medium-scale RLHF-like IMDB mock sentiment task and leads to a more performant and more aligned technical QA chatbot with LLaMA-7B. Code available at github.com/mnoukhov/elastic-reset.

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes