A controlled DPO versus PPO comparison that attributes the gap to online sampling or to the reward model
On this page17 sections
Difficulty 25: a controlled experiment with known ingredients; the barriers are matched compute and confounder control. Application value 42: concrete for teams choosing between offline losses and online RL. Leverage 28: a methodological result within post-training.
The problem
Two ways to teach chatbots what people like: which is better, and why?
- 1Fix model, data and prompts
- 2Train with DPO and with PPO
- 3Add online variants as controls
- 4Match compute, repeat seeds
- 5Compare against noise
Why it matters. Teams that align language models with human preferences choose between two families. DPO trains on a fixed dataset of preferred and rejected answers with a simple supervised loss. PPO-based RLHF trains a reward model, then repeatedly samples fresh answers from the current model, scores them and updates the model. PPO costs much more engineering and compute. If it is genuinely better, the cost is worth paying; if not, the effort is wasted.
What differs between them. At least three things change at once:
- Online sampling: PPO learns from answers produced by the current model (on-policy); DPO learns from answers produced earlier, possibly by other models.
- An explicit reward model: PPO's reward model can score answers that were never in the preference data.
- The optimiser: clipped policy-gradient updates versus a classification-style loss.
A comparison that changes all three cannot say which one matters.
Evidence so far. Xu et al. (2024) report PPO beating other alignment methods across their test settings, including code competitions. Ivison et al. (NeurIPS 2024) report PPO ahead of DPO by up to 2.5% in maths and 1.2% in general domains, and rank the factors: preference-data quality matters most, then the algorithm, then reward-model quality, then extra unlabelled prompts. Different studies use different data, reward models and benchmarks, and gaps of a few percent are comparable to the noise between training runs.
Why it is hard. Randomness matters. The random seed (the starting number of the random-number generator) changes the data order and the sampling, and two runs of the same method can differ by a percent or more. To claim that a 1–2% gap is real, each method must be run several times and the gap compared with the spread across runs, measured by the standard deviation (roughly the typical distance of results from their average). Matching compute is also hard, because PPO spends much of its budget generating answers.
The design. Hold fixed the starting model, one public preference dataset (for example UltraFeedback), the prompts and the total GPU-hours. Compare four arms: (i) DPO; (ii) PPO with a reward model trained on the same data; (iii) online or iterative DPO that labels fresh samples with that same reward model; (iv) best-of- distillation, i.e. fine-tuning on the reward model's favourite of samples. Arm (iii) separates the effect of online sampling from the effect of the PPO optimiser.
The target. At least three seeds per arm, an evaluation suite of at least eight tasks covering instruction following, reasoning, maths, code and safety, a difference counted only if it exceeds twice the standard deviation across seeds, and an independent replication on a second base model.
Go deeper
The full technical text.
Hold the SFT initialisation, preference dataset, prompt set and total compute fixed. Compare (i) DPO, (ii) PPO against a reward model trained on the same preference data, (iii) iterative or online DPO using that same reward model to label fresh samples, and (iv) best-of- distillation. Which of online sampling, the presence of an explicit reward model, and the optimiser accounts for the measured difference, and is the difference larger than seed variance on a broad evaluation suite?
Words on this page (11)
- language model
- A neural network trained to predict text, which can then write answers and code.
- DPO
- Direct Preference Optimization: trains on pairs of preferred and rejected answers.
- PPO
- Proximal Policy Optimization: an RL algorithm that limits how far each update moves the model.
- reward model
- A network scoring how much people would like a response.
- on-policy
- Using data generated by the current version of the model rather than a fixed older dataset.
- random seed
- The starting number of a random process. Different seeds give different training runs.
- GPU-hour
- One graphics processor running for one hour, a common unit for how much computing a training run used.
- standard deviation
- A measure of spread: roughly the typical distance of values from their average.
- best-of-n
- Generate n answers, score them with the reward model and keep the highest-scoring one.
- distillation
- Training a model on outputs selected or produced by another model or procedure.
- supervised learning
- Training a model on inputs paired with target outputs to reduce its error on them.
New to this? Read first (3)
- Unpacking DPO and PPO (arXiv preprint)A component-by-component comparison.
- Is DPO Superior to PPO for LLM Alignment? (arXiv preprint)The study that favours PPO.
- Illustrating RLHFBackground on the PPO pipeline.
Path to understanding
foundations → problemThe research entries this problem rests on, in the order to read them. Each links to its explainer.
- Start with
- Fast matrix multiplicationAlgorithm
- Reverse-mode automatic differentiationAlgorithm
- Step 2
- The transformer architectureAlgorithm
- Policy gradient methods and PPOAlgorithm
- Step 3
- RLHF and preference optimization (DPO)Algorithm · host
- Then
- A controlled DPO versus PPO comparison that attributes the gap to online sampling or to the reward modelThe problem
State of the art
Two preprints favour PPO: Xu et al. report PPO surpassing other alignment methods across their testbeds including code competitions; Ivison et al. report PPO ahead of DPO by up to 2.5% in math and 1.2% in general domains, with preference-data quality the largest factor, followed by algorithm choice, reward-model quality and extra prompts. Preference data, reward models, evaluations and prompt sets vary between studies and mix several effects, and gains are small relative to evaluation noise on some benchmarks. Which factor explains the gap is not isolated.
Realistic applications
Reduces wasted compute in post-training by showing whether the cost of online RL is justified over simpler offline losses.
What counts as solved
A matched-budget study with at least 3 seeds per arm in which the arm differences are resolved against seed variance and replicated by an independent group on a second base model.
How it gets verified
To verify: ReproductionA training run, experiment or computation rerun by someone else.
Benchmark: the evaluation suite of Ivison et al. (open-instruct evaluations) or a stated equivalent with at least 8 tasks covering instruction following, reasoning, math, code and safety, plus a human or judge-model win rate. Data: one public preference dataset (for example UltraFeedback) used identically by all arms. Compute: equal total GPU-hours including generation, stated for each arm. Seeds: at least 3 training seeds per arm; the claim holds only if the difference in aggregate score exceeds twice the standard deviation across seeds. Repos: open-instruct and TRL implementations.
Claims
No claimed results on this problem.
Where the work is
Mainly compute and careful engineering to match arms; evaluation noise is the empirical limit.
Connected problems
- This problem is related to Do reward-model overoptimization laws hold for modern RLHF and DPO-style training?Whether offline preference losses overoptimise like online RL is part of the DPO versus PPO comparison.