atlas

Research map / Reinforcement learning / RL from feedback

Vanishing Gradients in Reinforcement Finetuning of Language Models

ICLR 2024 · Reinforcement learning › RL from feedback · approach: RL for LLM reasoning · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Shows that RFT (policy gradient, incl. PPO) gradients for an input vanish when its pretrained reward standard deviation is small, demonstrates prevalence and harm on GRUE and controlled settings, and finds an initial SFT phase (even on 1% of inputs) overcomes it.

Problem

Reinforcement finetuning of language models with policy gradient methods (e.g., PPO) can make very slow progress on some inputs even when their expected reward is suboptimal; the cause of this optimization failure is unclear.

Approach

Proves that the expected policy gradient for an individual input is bounded by a term proportional to the reward standard deviation under the model (to the 2/3 power), so small reward variance implies vanishing gradients regardless of expected reward; shows this extends to PPO clipped and KL-regularized variants and that an initial SFT phase, even on a small fraction of inputs, mitigates it.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
add an initial SFT phase before RFTRFT · NarrativeQA train rewardreward: 0.101 ± 0.009 -> 0.537 ± 0.005Helped
add an initial SFT phase before RFTRFT · NarrativeQA test rewardreward: 0.116 ± 0.000 -> 0.544 ± 0.003Helped
increase the learning rate, across the tested settingsRFT · NarrativeQAreward: Train: 0.101 ± 0.009 -> 0.012 ± 0.010, 0.053 ± 0.010, 0.039 ± 0.018; test: 0.116 ± 0.000 -> 0.020 ± 0.017, 0.048 ± 0.016Hurt
apply temperature to the logitsRFT · NarrativeQAreward: Train: 0.101 ± 0.009 -> 0.077 ± 0.021, 0.060 ± 0.018, 0.044 ± 0.004; test: 0.116 ± 0.000 -> 0.118 ± 0.002, 0.104 ± 0.009No clear effect
add entropy regularizationRFT · NarrativeQAreward: Train: 0.101 ± 0.009 -> 0.080 ± 0.006, 0.024 ± 0.005, 0.011 ± 0.000; test: 0.116 ± 0.000 -> 0.113 ± 0.002, 0.019 ± 0.007Hurt
use 40% of SFT optimization steps and 1% of input samples before RFT (ablation)RFT · NarrativeQAreward relative to full-SFT reward: 96%Helped
RFT rather than SFT finetuningfinetuning on NarrativeQA, ToTTo, and IMDB train samples · NarrativeQAPearson correlation: 0.05 -> 0.48Mixed
RFT rather than SFT finetuningfinetuning on NarrativeQA, ToTTo, and IMDB train samples · ToTToPearson correlation: 0.16 -> 0.46Mixed
RFT rather than SFT finetuningfinetuning on NarrativeQA, ToTTo, and IMDB train samples · IMDBPearson correlation: 0.72 -> 0.72No clear effect

Surprising findings

Limitations

Experimental setup

Datasets: GRUE NarrativeQA ToTTo CommonGen IWSLT 2017 CNN/Daily Mail DailyDialog IMDB STS-B MNIST CIFAR10

Benchmarks: GRUE NarrativeQA ToTTo CommonGen STS-B MNIST CIFAR10

Metrics: mean reward reward standard deviation gradient norm Pearson correlation 10th percentile of pretrain reward std

Baselines: PPO RFT with default hyperparameters SFT increased learning rate temperature scaling entropy regularization

Builds on: PPO GRUE benchmark NLPO Adam

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy