Frontier Foundry

RLHF & Preference Optimization

The Training Gym · Post-training, RL & Reasoning

Tuning models toward outputs people (or AI raters) prefer.

Also called: RLHF, RLAIF, human feedback, preference optimization, DPO, GRPO, PPO, GSPO, DAPO, preference data. In the glossary.

RLHF & Preference Optimization is cooling this week (×0.56 against the eight weeks before). What is moving.

How it works, as a machineThe Rating Hall · reply pairs

Follow one reply pair from two replies to one prompt to a policy tuned toward the winner, in a rating hall, with a reward room and a tuning press behind it.

  1. Draw two replies
  2. Pick the better reply
  3. Fit the scores
  4. Push toward the winner
  5. Ship on a clear win
Play RLHF & Preference Optimization

RLHF & Preference Optimization in plain words

RLHF tunes a model toward the outputs that people prefer. Raters compare pairs of answers, a second model learns to predict which they would pick, and the first is trained to score well with it. This is how a raw model becomes a polite, helpful assistant, and also how it learns to please.

An analogy

A stand-up comic working new material in small clubs. Each night two versions of a joke go out, the louder laugh wins, and the act drifts toward whatever the room rewards. After a year it is polished, and shaped as much by what crowds clap for as by what is true.

How RLHF & Preference Optimization connects

5 typed relations in the knowledge graph

Builds on

Built on by

A kind of

Often in the same sources

RL with Verifiable Rewards, Optimizers & Training Recipes, Reinforcement Learning, Fine-Tuning, Pretraining, Benchmarks & Leaderboards

See RLHF & Preference Optimization in the knowledge graph

What the sources say

3 parts · 12 sources · updated 2026-11-27

RLHF turns people's choices between two replies into a score a model can be pushed toward. Raters pick the better reply, a reward model is fitted on the picks, and the policy is tuned toward what the scale rates higher (or straight toward the chosen reply, as in DPO) and shipped on a live test. The break is a model that learns to look right, not be right.

The rating hall: two replies, one ranking

Human feedback starts as a comparison. The model writes two or more replies to one prompt, a person says which is better, and the pair is kept as chosen and rejected. Who the raters are, and whether they agree, shapes everything after.

  1. The reply pair tray draws two replies from the model for one prompt.
  2. At the rater's ballot desk a person picks the better reply; the pair becomes chosen and rejected.
52% less annotation time
Median time saved by a token-level correction tool against manual post-editing, in a small controlled study by the tool's authors Hugging Face
  • In one pipeline the model being tuned wrote several candidate answers for each of 23,726 training documents, and a judge model scored them to build the pairs. Hugging Face
  • In one open recipe each round samples K replies per prompt, ranks them with the reward model, and trains on the best. Nathan Lambert
  • A preference pair is a chosen and a rejected output for the same input, with a quality gap clear enough to learn from; in chat alignment human annotators rate replies as more or less helpful, accurate or safe. Hugging Face

When it breaksPreferences averaged into slop. A founder who runs expert raters for labs says preference data gathered from many unknown people collapses to the average: the most likely answer wins, not the best one, and the output turns generic and repetitive. Thais Castello Branco

The reward room: pairs become a score

A reward model is fitted on the ranked pairs so that it can score any reply, and the score is what the model is later pushed toward. Whatever the scale likes, the model learns to produce, so written checks beside the scale guard against a reply that only looks right.

  1. The reward model scale is fitted on the ranked pairs and gives every reply one score.
  2. The rubric gate holds back replies that fail a written checklist, however high the scale rates them.
+69 Elo
Gain of an image model post-trained on a composed preference and rubric reward over its base model on a public arena leaderboard, reported by the authors Hugging Face
  • One reward model was trained on large-scale human preference data with a Bradley-Terry objective, which fits a score so that the chosen reply scores above the rejected one. Hugging Face
  • The first recipe called RLHF had three steps: supervised fine-tuning on human demonstrations, a reward model trained on human comparisons, then PPO against that reward model. Nathan Lambert
  • A later recipe used two reward models, one for helpfulness and one for safety. Nathan Lambert

When it breaksRight-looking and wrong. A coauthor of the first instruction-tuning paper argues that a reward model fitted on human comparisons is asymmetric: it cannot punish a wrong answer that sounds right, so a tuned model errs toward what people would like and sounds sure when it is wrong. Diogo Almeida

The press: tune the policy, ship on a win

The tuned policy is pushed toward the replies the scale rates higher, or straight toward the chosen reply of each pair, in rounds. A tuned policy ships only when a live test shows a clear win, and the people who then use it supply the next pairs.

  1. The policy tuning press pushes the model toward the chosen replies, or toward what the scale rates higher.
  2. The test board ships the tuned policy only when a live test shows a clear win.
6 rounds
Rounds of reward-model ranking and tuning that one open recipe ran, each round's best model seeding the next, as summarised in a podcast review slide Nathan Lambert
59.4% lower degeneration
Average drop in repetition-loop failures when a DPO stage was added after supervised tuning, across five model families (best case 87.6%), reported by the model's authors Hugging Face
53% accepted as written
Share of a product's AI-written drafts that users accept without changes, reported by the product's maker OpenAI
  • DPO trains on whole outputs labelled chosen or rejected, where supervised tuning scores one token at a time and never marks a failed completion as wrong. Hugging Face
  • In one family, degeneration rose from 0.60% to 3.23% after supervised tuning and fell to 1.41% after DPO, so supervised tuning does not reliably remove the failure. Hugging Face
  • One open model's post-training runs five stages in order: supervised tuning, long-context tuning, RL, DPO with judge-scored pairs, then alignment to a written charter. Hugging Face

Open questionIs human preference the right thing to optimise?

  • RLHF optimises for pleasing people and engagement, so tuned models look right when wrong; the field will see it as a detour on the way to calibrated decisions. Diogo Almeida
  • Preference tuning is under-respected: one lab's traditional RLHF stage gave pretty massive gains, and dropping it follows fashion more than rigorous ablations. Nathan Lambert

Sources

12 in all

More in Post-training, RL & Reasoning

The Training Gym: the whole area
  • Reinforcement LearningTraining by trial and reward instead of copying examples.
  • RL with Verifiable RewardsRL where a program can check the answer (tests pass, math is right), so rewards are cheap and honest.
  • RL EnvironmentsSimulated tasks with graders that models practice in during RL; now a market of its own.
  • Reasoning ModelsModels trained to think step by step before answering.
  • Test-Time ComputeSpending more compute at answer time (longer thinking, more samples) for better results.
  • DistillationTraining a small model to imitate a big one.
  • Fine-TuningFurther training a base model on your own data for a task or style.
  • Synthetic DataTraining data generated by models instead of collected from people.
  • Self-Play & Self-ImprovementModels generating their own practice and getting better from it, up to recursive self-improvement.
  • Continual LearningModels that keep learning after deployment instead of freezing at training time.