RLHF vs RLVR vs DPO — What’s the Difference?
The three in one table
If you remember nothing else, remember this table. The three methods differ in exactly three places: where the reward comes from, whether there is an RL loop, and what kind of task they are for.
| RLHF | DPO | RLVR | |
|---|---|---|---|
| What it optimizes | Alignment to human preference | Alignment to human preference | Capability on verifiable tasks |
| Reward source | Learned reward model, trained on human rankings | Implicit — the policy itself, from preference pairs | Deterministic verifier (math checker, unit tests) |
| RL loop? | Yes — usually PPO, with a KL penalty to the reference model | No — a supervised-style loss on fixed pairs | Yes — usually GRPO, no critic needed |
| Best for | Chat, tone, safety, helpfulness | Same as RLHF, cheaper and simpler | Math, code, reasoning, tool use |
| Cost / complexity | Highest: three stages, online rollouts | Lowest: one loss, one training run | Medium: RL loop, but no reward model to train |
RLHF: the original recipe
RLHF is the method that turned base models into chatbots. It was sketched by Christiano et al. in 2017 and made famous by InstructGPT in 2022, and it runs in three stages. First, supervised fine-tuning: teach the model the format of helpful answers. Second, train a reward model on human preference pairs — show people two answers, record which they prefer, and fit a model to those rankings (the Bradley–Terry model). Third, run RL — almost always PPO — to push the policy toward outputs the reward model scores highly, with a KL penalty that keeps it from drifting too far from the reference model.
That KL penalty is doing real work. Without it, the policy quickly learns to exploit the reward model’s blind spots and produce fluent nonsense that scores well — reward hacking, the field’s oldest failure mode. The full story of the judge, including how it gets gamed, is in our reward model guide.
RLHF’s strength is also its weakness: the reward is a learned guess about what humans want, so the ceiling is the quality of the preference data and the reward model. It is the right tool whenever the task itself needs human judgment — tone, helpfulness, safe refusals — because there is no program that can check those things.
DPO: the shortcut that skipped the loop
DPO (Rafailov et al., 2023) asks an impolite question: if the policy already implies a reward model, why train a separate one? The math says the optimal policy under RLHF can be rewritten so the reward is just a log-ratio of the policy and the reference model. So DPO skips stages two and three entirely and trains the policy directly on the preference pairs: increase the likelihood of the preferred answer, decrease the rejected one, and a β parameter controls how far the policy is allowed to move from the reference — the same job the KL penalty did in RLHF.
What you gain is simplicity. One loss, one training run, no rollout sampling, no value network, no reward model to maintain and debug. For many alignment tasks DPO is now the default, and it is the first thing to try on a small team. What you lose is exploration: DPO only ever sees the fixed preference pairs you collected, so it cannot discover behaviors the data never shows. It also inherits the preference data’s biases wholesale — there is no separate judge to blame when it goes wrong, because the policy is the judge. If DPO plateaus and you suspect the data is the limit, that is when the full RLHF loop earns its cost.
RLVR: a different reward, not a different goal
RLVR changes the reward, not the alignment idea. Instead of a learned model of human taste, the reward comes from a verifier you can run: does the math answer match, do the unit tests pass, does the proof check out? The reward is ground truth, not a guess — which removes the whole reward-hacking problem in its classic form, and removes the reward model from the pipeline entirely.
DeepSeek-R1 popularized RLVR in early 2025, training reasoning ability with rule-based rewards on math and code, and it has since become the default post-training recipe for open reasoning models — Qwen, Kimi, and most others use RLVR-style post-training, typically with GRPO as the RL algorithm. The details of that algorithm are in our GRPO guide, and the method itself in our RLVR guide.
But RLVR has a hard boundary: it only works where verification exists. A checker can tell you whether code passes its tests; it cannot tell you whether an answer is kind, clear, or safe. And the verifier can still be gamed — a model that finds a vacuous test or a loophole in the checker gets full reward for a wrong answer. A paper in today’s briefing makes the subtler point: RLVR mostly sharpens reasoning the model already has rather than teaching it new reasoning, so the base model’s capability still sets the ceiling.
The three confusions worth clearing up
- “RLVR vs RLHF — which wins?” Neither. They are not rivals; they are complementary, and the best reasoning models use both. RLVR builds capability on checkable tasks; RLHF or DPO shapes behavior on everything else. Arguing about which is “better” is like arguing whether the engine or the steering is better.
- “DPO replaces RLHF.” Half true. DPO replaces the RL step of RLHF, not RLHF as a whole — it still needs the same preference data, and it still optimizes the same alignment objective. Think of it as RLHF with the middle of the pipeline deleted, not a different goal.
- “Is DPO reinforcement learning?” Not in the usual sense: no environment, no rollouts, no reward signal during training. It is a supervised-style loss on fixed preference pairs, derived from the same math as RLHF. That is why it is simpler — and why it cannot explore.
- “Does RLVR mean no more reward models?” Only for verifiable tasks. For open-ended chat, somebody — a human, or a model trained on human judgments — still has to decide what “good” means. The reward model doesn’t disappear; it just isn’t needed where a checker exists.
Which one should you use?
Decide by the reward you have, not by the acronym you like:
- Correctness can be checked by a program (unit tests, a math answer, a formal proof) → RLVR with GRPO. It is the honest tool for that job, and the reward is ground truth.
- The goal is style, tone, or safety, and you have preference data → DPO first. Cheapest to run, easiest to debug, and good enough for most alignment work.
- DPO has plateaued, or you need online exploration → full RLHF with PPO. The extra machinery buys you the ability to discover behaviors your preference data never showed.
- You have no preference data and no verifier → you have a data problem, not an algorithm problem. Collect the data first; no acronym fixes that.
How to try it yourself
- Run all three from one library: HuggingFace’s TRL ships PPO, DPO, and GRPO trainers with the same interface, so the same preference data can be run through each and compared honestly.
- Train RLVR on real verifiable tasks: SWE-Gym (software-engineering tasks with test-based rewards) and LIFT-Bench (instruction-following with per-section verifiable constraints) are both in the directory, in the LLM Agents category.
- Read the cluster: the RLVR guide for verifiable rewards, the GRPO guide for the algorithm RLVR usually runs on, and the reward model guide for the judge at the heart of RLHF.
- New to RL training itself? The first-timer’s recipe gets a CartPole agent learning in an afternoon — the loop is the same, only the environment changes.
Frequently asked questions
What is the difference between RLHF and RLVR?
The reward. RLHF learns its reward from human preferences: people rank outputs, a reward model is trained on those rankings, and RL maximizes it. RLVR gets its reward from a verifier — a math checker or a test suite — so the reward is ground truth, not a learned guess. RLHF is for tasks where a human has to judge quality; RLVR is for tasks where correctness can be checked by a program.
What is the difference between RLHF and DPO?
DPO is a shortcut through RLHF. Classic RLHF trains a reward model on preference pairs and then runs RL (usually PPO) to maximize it. DPO skips both the reward model and the RL loop: it trains the policy directly on the same preference pairs, with a loss that pushes preferred outputs up and rejected ones down relative to a reference model. Same data, same goal, much simpler pipeline — but no online exploration, so it can’t discover behaviors the preference data never shows.
Is DPO reinforcement learning?
Not in the usual sense. DPO has no environment, no rollouts, and no reward signal during training — it’s a supervised-style loss computed on fixed preference pairs. It comes from the same math as RLHF (the policy implicitly defines a reward), which is why it sits in the same family, but if you run DPO you are not running an RL loop. That simplicity is the point — and also its limit.
Can RLVR replace RLHF?
No — they cover different tasks. RLVR only works where an answer can be verified by a program: math, code, formal proofs, tool use with checkable outcomes. Most of what people want from a chat model — helpful tone, good judgment, safe refusals — can’t be verified by a checker, so it still needs human preference data, which means RLHF or DPO. In practice the best reasoning models use both: RLVR for capability, RLHF or DPO for behavior.
Which one should I use for my project?
Start with the reward you actually have. If correctness can be checked by a program — unit tests, a math answer — use RLVR with GRPO. If the goal is style, tone, or safety and you have preference data, use DPO first: it’s the cheapest to run and the easiest to debug. Reach for full RLHF with PPO when DPO plateaus or you need online exploration. And if you have no preference data and no verifier, you have a data problem, not an algorithm problem — collect that first.
What do you think?
Which one have you actually run — and what broke? Did DPO plateau where PPO kept climbing, or did RLVR’s verifier get gamed? Tell us the task and the failure mode; the best stories get featured in a future briefing.
The lab notebook is rlenvlab’s blog — guides and the daily RL Briefing on the environments ecosystem. More from the lab notebook →