What do SFT, reward models and RLHF each solve?

Move from text prediction to demonstrations and preferences.

Content revision 4 · 2026-10-24

T04 · Revision 1 · 2026-10-21

  1. Demonstrations → SFT
  2. Comparisons → reward model
  3. Sample → reward and KL
  4. Policy update → reevaluate
FieldToFit redraw: Simplified redraw of InstructGPT post-training.

The bottleneck

Pretraining learns text continuation rather than directly optimizing instruction fulfillment. InstructGPT adds demonstrations and comparative feedback during post-training. Demonstration quality, annotator preferences and task coverage shape behavior.

The mechanism

SFT learns from demonstrated answers. A reward model learns scores from answer rankings for the same prompt. RL then samples answers and optimizes reward, typically constraining deviation from a reference policy. This is one concrete pipeline; RLHF does not uniquely imply PPO.

J(π) = E[r(x,y)] − β · D_KL(π ∥ π_ref)

Examples and evidence

This simplified objective rewards better scores but penalizes deviation. Too little regularization can exploit reward errors; too much can prevent useful change. KL estimators, sampling and optimization details belong to the specific implementation.

New constraints

A learned reward is not proof of factual correctness. Preferences may favor length or tone, and optimization can amplify scoring loopholes. Validate using independent tasks, human review and out-of-distribution tests.

Primary sources

Manual browser reading records and interactive calculators are available with JavaScript.

Keep exploring

T05 · Why can DPO omit a separate reward model?

T06 · How do verifiable rewards shape reasoning?

All 18 questions