Skip to main content

How models are made training pipeline · stage 3

Preference alignment: what RLHF and DPO actually solvepractitioner-perspective methodology · key facts carry official sources

How reward models are distilled from human rankings, why the PPO step is expensive, why DPO skips reinforcement learning, and the costs — alignment tax and sycophancy. Practitioner depth; the one-page explainer lives on the Learn site.

What this guide covers

Alignment solves “answering well”, not “being able to answer”.

After SFT the model answers in format, but there is no signal for “which answer is better, where the line is crossed”.
The original recipe for this step is InstructGPT's (arXiv 2203.02155) RLHF:
humans rank answers, a reward model is trained, then PPO makes the language model court that reward model.

Reward models: turning human judgement into a differentiable signal

Humans do not score directly; they compare pairs: of two answers to the same prompt, which is better.
Anthropic's HH data (arXiv 2204.05862) splits the axes into helpful and harmless.
The reward model learns this ranking tendency and emits a scalar score.

The trap practitioners must watch: the reward model is a proxy metric, not goodness itself.
It can be gamed — longer, more confident, model-essay-like answers score higher.
“Length bias” is a side effect repeatedly acknowledged in RLHF-era papers.

The PPO step: why it costs so much

InstructGPT's RL stage keeps four models resident at once:
the policy being trained, the reference model that keeps it on the rails (KL constraint), the reward model, and the critic.
Memory and compute cost several times SFT, and tuning is touchy (a skewed KL coefficient collapses the run).

LLaMA 2 (arXiv 2307.09288) published both routes side by side:
iterative SFT bootstrapping versus rejection sampling plus PPO, each winning on different evaluations.
The authors themselves declared no outright winner; this site reports it as stated.

DPO: collapsing two steps into one

DPO's (arXiv 2305.18290) derivation shows the optimal policy has a closed form,
so preference pairs can feed a classification-style loss directly — no reward model to train, no RL to run.
Memory drops back to SFT scale, the code is dozens of lines.

Zephyr (arXiv 2310.16944) took a 7B model to the front of its size class at the time using public data,
proving the route is community-reproducible.

The cost too: DPO is sensitive to the distribution of preference pairs, and offline training easily “overfits the ranking style”;
online RLHF keeps sampling fresh answers, so the signal stays fresher.
Published head-to-head conclusions between the two routes are unstable and data-dependent.
This site adjudicates neither — it records each mechanism and its published limits.

RLAIF: models ranking when humans run out

Constitutional AI (arXiv 2212.08073) uses a written set of principles to make the model criticise and
revise itself, then lets models prefer models. Human ranking retreats to a calibration role.

Open-weight families' post-training routinely mixes this route in —
the bottleneck that caps scale moves from compute to annotation.

The costs: alignment tax and sycophancy

The “alignment tax” is the score a model can lose on original-task evaluations after alignment.
The InstructGPT paper itself observed GPT-3 regressing on some public benchmarks because of alignment.

Sycophancy is the mirror image of preference data:
humans favour answers that agree with them, so the reward model learns to agree.

Neither is rumour — both are side effects admitted in the papers themselves.
When reading any model's official benchmarks, remember:
post-alignment scores mix “a style that pleases the grader” with “actual capability”.

How this differs from the Learn site

The one-page explainers live on the Learn site: three-stage training
and preference alignment.

This guide covers the cost structure of four resident models, how a proxy metric can be gamed,
and the sources behind the alignment tax and sycophancy — the traps practitioners watch, which an explainer page cannot hold.

Sources

  • InstructGPT paper (arXiv 2203.02155, the three-stage RLHF and PPO details; abstract page fetched directly 2026-10-20):https://arxiv.org/abs/2203.02155
  • DPO paper (arXiv 2305.18290, preference optimisation without a reward model or RL; abstract page fetched directly 2026-10-20):https://arxiv.org/abs/2305.18290
  • LLaMA 2 paper (arXiv 2307.09288, rejection sampling + PPO versus the SFT route side by side; abstract page fetched directly 2026-10-20):https://arxiv.org/abs/2307.09288
  • Zephyr paper (arXiv 2310.16944, the public example of DPO on a 7B community model; abstract page fetched directly 2026-10-20):https://arxiv.org/abs/2310.16944
  • Anthropic HH preference-data paper (arXiv 2204.05862, rankings on the helpful/harmless axes; abstract page fetched directly 2026-10-20):https://arxiv.org/abs/2204.05862
  • Constitutional AI paper (arXiv 2212.08073, principles replacing part of the human ranking (RLAIF); abstract page fetched directly 2026-10-20):https://arxiv.org/abs/2212.08073

Base source snapshot: 2026-10-20; item-specific additions and check scope appear in the text and source labels. Check original specifications, methods and conditions.