Preference tuning aligns a model using pairwise judgments of the form "response A is better than B". RLHF trains a reward model and then optimizes with reinforcement learning (PPO). DPO (Direct Preference Optimization) skips the separate reward model and optimizes the preference objective directly.
Reward model and PPO in RLHF
RLHF starts with a dataset of ranked outputs: human raters mark which of two responses they prefer. That data trains a reward model that predicts the quality of a response. Proximal Policy Optimization (PPO) then fine-tunes the model's policy to produce responses the reward model scores highly. A KL penalty keeps the new policy close to the original, so the model keeps its base knowledge while adapting.
- Collect ranked outputs from raters.
- Fit the reward model.
- Run PPO against the reward model, with a KL penalty.
DPO as a classification loss
DPO turns the same preference pairs into a classification-style loss. Each pair of chosen and rejected responses is treated as a binary classification, and the model is optimized directly. There is no reward model and no RL loop, and it avoids sampling from the model during fine-tuning, which is a source of instability in RL. With a pair of Response A and Response B, RLHF learns rewards from many such comparisons first, while DPO optimizes the model to rank A above B straight away. DPO has no separate reward model to exploit, though the model can still overfit the preference data.
Variants include IPO, KTO and ORPO. Open-source frameworks such as TRL and Axolotl support DPO and related preference methods.
Choosing DPO or RLHF after SFT
Supervised fine-tuning (SFT) copies good examples. It cannot express "avoid this" or rank two plausible answers, so it can produce acceptable output without learning which of two valid answers is better. Preference tuning supplies that relative signal, which matters for safety and alignment work.
- Start with DPO when you want a simpler, more stable and cheaper method with a clear preference dataset. It is a common first choice.
- Move to RLHF with PPO when you need online reward signals, multi-objective shaping, or you work at the frontier with a mature reward-modeling team.
The comparison to software is tuning a ranking system from A/B data. The difference is that the target is a model of human taste instead of clicks, and a reward model of human taste can drift in unintended directions, for example when the policy learns to exploit it.
Alignment drop after new preference data
Example scenario: alignment accuracy falls from 85% to 65% after the training data is updated. These numbers are illustrative.
One cause is overfitting to the learned preferences, so the model generalizes poorly to unseen cases. It is likelier when the preference data lacks diversity, which biases outputs away from what broader users expect.
- Check the training preferences for diversity.
- Log user satisfaction scores across query types.
- A/B test a subset of users on tuned variants.
Remedies are more diverse data or a switch of method, at the cost of training time and complexity. Keep watching user satisfaction scores against whatever target your team sets.
The result is a model that better matches expectations for helpfulness, tone and safety, and picks the better of several plausible answers.