Healthcare · · 8 min read
RLHF vs DPO: which post-training method fits expert preference data?
Acumen Editorial · Updated November 26, 2026
RLHF trains a reward model on human preference pairs, then optimizes the language model against it with reinforcement learning. DPO skips the reward model and trains directly on the same pairs with a classification-style loss. DPO is simpler and cheaper. RLHF with PPO often wins on hard tasks. Both depend on the quality of the preference data.
What is the difference between RLHF and DPO?
Both methods start in the same place: a fine-tuned model and a set of preference pairs. Each pair is a prompt, two responses and a label saying which response is better.
RLHF (reinforcement learning from human feedback) uses those pairs in two steps. First it trains a reward model to predict which response a human would prefer. Then it fine-tunes the language model with a reinforcement learning algorithm, usually PPO, to produce responses the reward model scores highly. A KL penalty keeps the model close to where it started.
DPO (direct preference optimization) was introduced by Rafailov et al. in 2023 (arXiv 2305.18290). The authors showed that the RLHF objective can be solved with a reparameterized reward, so the optimal policy falls out in closed form. Training then needs only "a simple classification loss" on the preference pairs. There is no separate reward model and no sampling from the model during training. The paper reported that DPO matched or beat PPO-based RLHF on summarization and single-turn dialogue, and controlled sentiment better.
| RLHF (PPO) | DPO | |
|---|---|---|
| Training stages | Reward model, then RL | One supervised-style stage |
| Uses preference pairs | Yes, to train the reward model | Yes, directly |
| Samples from the model during training | Yes | No (offline) |
| Compute and engineering cost | High | Low |
| Hyperparameter sensitivity | High; needs careful tuning | Lower, but sensitive to reference model |
| Behavior outside the data | Constrained by KL to the reference model | Can drift toward unseen responses |
| Reusable reward signal | Yes, the reward model | No |
| Typical fit | Hard reasoning, code, safety-critical tuning | Fast alignment, style and tone, smaller teams |
Is DPO better than RLHF?
Not across the board. The strongest head-to-head study we know of is Is DPO Superior to PPO for LLM Alignment? by Xu et al. (ICML 2024, arXiv 2404.10719). Their findings are worth reading closely.
DPO can favor responses it never saw. The authors prove that every policy PPO can reach also minimizes the DPO loss, but DPO admits extra solutions. In their words, DPO "is prone to generating a biased policy that favors out-of-distribution responses." In a controlled test, DPO raised the probability of a response absent from the preference data from 0.11 to 0.23. PPO's KL constraint held it back.
Data coverage changes the result. On the HH-RLHF dataset, DPO scored 0.615 and PPO 0.718 on the full set. On a narrower subset, DPO fell to 0.544, close to the supervised baseline of 0.532, while PPO reached 0.602.
Hard tasks favor PPO. On CodeContests, PPO with Code Llama 34B reached 22.4%. DPO scored 0.0%, and iterative DPO 3.2%.
Iterative DPO closes some of the gap. Sampling fresh responses from the current model, labeling them and retraining lifted DPO's safety rate on SafeRLHF to 99.9%, comparable to PPO. Helpfulness stayed below PPO.
The pattern is consistent. DPO is only as good as the coverage of its preference pairs. RLHF is more forgiving because the reward model generalizes and the RL step explores.
Why does preference data quality matter more for DPO?
DPO learns directly from your pairs. There is no reward model in between to smooth noise or extrapolate. That makes three data properties critical.
On-policy coverage. Pairs should come from responses your current model actually produces. Pairs written for a different model teach DPO about a distribution it will not see at inference time. This is why iterative DPO works: it keeps the data on-policy.
Label accuracy. A wrong preference is a direct gradient in the wrong direction. Xu et al. found that filtering noisy or contested pairs improved DPO's safety rate from 71.8% to 80.8% on SafeRLHF, though removing too much data hurt helpfulness.
Meaningful contrast. Two responses that are both wrong, or both fine, teach little. The most useful pairs differ on the thing you care about: a correct versus subtly incorrect dosing recommendation, an appropriate versus missing escalation.
In healthcare, life sciences and pharma, all three require domain experts. A generalist can judge tone. Only a clinician can tell which of two plausible answers to a medication question is safer. Our guide to pairwise evaluation for clinical AI shows how to design those comparisons.
When should you choose RLHF, DPO or rubric-based rewards?
Use this checklist as a starting point.
Choose DPO when:
- You need to adjust style, tone, format or refusal behavior quickly
- Compute or RL engineering capacity is limited
- You can generate fresh pairs from the current model each round
- Expert labels are available on a recurring cadence
Choose RLHF with PPO when:
- The task involves multi-step reasoning, code or tool use
- You need a reusable reward signal across model versions
- Safety behavior must hold on inputs outside your labeled set
- You have the engineering depth to tune PPO well
Consider rubric-based rewards when:
- Experts can write explicit criteria for a good answer
- You need graders to explain why a response failed
- You want the same rubrics to drive evaluation and training
The third option is growing fast in health AI. OpenAI's HealthBench grades responses against conversation-specific rubrics written by 262 physicians, with 48,562 unique criteria. Rubrics like these can serve as reward signals as well as tests. We cover this approach in rubric-based RL for medical AI.
Many teams combine methods: supervised fine-tuning on expert-written answers, DPO for fast alignment rounds, then PPO or rubric rewards for the hardest behaviors.
How do you collect expert preference data that works for both?
The same pairs can feed DPO directly and train a reward model for RLHF, if they are built well.
- Sample from your current model. Generate two or more responses per prompt from the checkpoint you plan to tune.
- Match reviewers to the domain. Oncology prompts go to oncologists, pharmacology prompts to pharmacists.
- Collect the reason with the label. A short rationale or rubric score makes the pair auditable and reusable.
- Use multiple reviewers on a sample. Measure agreement and adjudicate disagreements before training.
- Record ties and "both unsafe." These are signals, not noise. Do not force a preference.
- Refresh every round. On-policy data goes stale as soon as the model changes.
How Acumen helps
We deliver expert-labeled preference pairs, rationales and rubrics from verified clinicians, scientists and pharma specialists, sampled from your model and refreshed each training round. Every pair carries reviewer credentials and agreement data, so the same dataset can feed DPO, a reward model or an evaluation set. Learn more about our RLHF preference data service, or see how we compare on our provider comparison page.
For related reading, see our guides to RLHF data providers for healthcare, pairwise evaluation for clinical AI and rubric-based RL for medical AI.
FAQ
What is the difference between RLHF and DPO?
RLHF trains a reward model on human preference pairs, then fine-tunes the language model with reinforcement learning, usually PPO, against that reward. DPO trains directly on the same preference pairs with a classification-style loss, with no reward model and no sampling during training. DPO is simpler and cheaper; RLHF is more robust on hard tasks.
Is DPO better than PPO?
Not in general. DPO is easier to run and performs well on style and dialogue tasks. An ICML 2024 study by Xu et al. found PPO outperformed DPO across dialogue and code benchmarks, and DPO scored 0.0% on CodeContests where PPO reached 22.4%. Iterative DPO narrows the gap on some tasks.
Why does DPO drift toward out-of-distribution responses?
DPO optimizes only on the pairs it is given and has no explicit penalty for moving probability toward responses outside that data. Xu et al. showed it can raise the likelihood of unseen responses. PPO's KL constraint to the reference model limits that drift. Keeping preference data on-policy reduces the problem.
What is iterative DPO?
Iterative DPO repeats the cycle of sampling responses from the current model, labeling them and retraining. Each round keeps the preference data close to what the model actually produces. In one study it lifted a safety rate on SafeRLHF to 99.9%, comparable to PPO, though helpfulness stayed lower.
Can the same preference data be used for RLHF and DPO?
Yes. Both methods consume prompt and response pairs with a preferred label. Well-built pairs, sampled from your current model, labeled by matched experts and checked for agreement, can train a reward model for RLHF or feed DPO directly. Adding rationales or rubric scores makes the data reusable for evaluation too.
Who should label preference data for medical AI?
Credentialed experts matched to the prompt: physicians for clinical questions, pharmacists for medication questions, scientists for research tasks. Generalists can judge tone but not clinical safety. Use multiple reviewers on a sample, measure agreement and adjudicate disagreements before the pairs are used for training.