sagelearnai

Preference Tuning: RLHF & DPO

SFT teaches a model to imitate demonstrations. But for many qualities — helpfulness, honesty, harmlessness, conciseness — it's far easier for people to compare two answers than to write the perfect one. Preference tuning learns from those comparisons.

In this lesson

  • Preference data
  • RLHF: the classic pipeline
  • DPO: preference tuning without RL
  • RL with verifiable rewards
  • Constitutional AI / RLAIF
  • Practical guidance for engineers

This lesson is part of AI Engineering. Unlock the full course to read it, take the quiz and track your progress.

See plans →

Last reviewed 2026-11-05.