■ Change #126 · wiki.edited
A controlled DPO versus PPO comparison that attributes the gap to online sampling or to the reward model: Normalize Markdown to canonical form
explainer.student
**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:− 1. *Online sampling:* PPO learns from answers produced by the current model (on-policy); DPO learns from answers produced earlier, possibly by other models.− 2. *An explicit reward model:* PPO's reward model can score answers that were never in the preference data.− 3. *The optimiser:* clipped policy-gradient updates versus a classification-style loss.+ 1. _Online sampling:_ PPO learns from answers produced by the current model (on-policy); DPO learns from answers produced earlier, possibly by other models.+ 2. _An explicit reward model:_ PPO's reward model can score answers that were never in the preference data.+ 3. _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-$n$ distillation, i.e. fine-tuning on the reward model's favourite of $n$ 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.
hash df8ddbef8a5ab56fd8dddb3b561680c1fd3defa9774a686603aec75de55a4e90
previous c53a40f7be14058c48cdd9408ecfac2acb28d472466d558cda83cea805ada549