Skip to content
mentoor

Topic 6 of 6 · 5 min read

Choosing among SFT, DPO and RL

Goal: Pick a tuning method for a stated goal, dataset and budget and justify it against the alternatives.

Choose the simplest method that matches the data you have: SFT when you have good examples, DPO when you have comparisons, RL when you have a checker. Each step up costs more and breaks in new ways.

Check yourself · 1 of 3

Which method fits best when you have a few thousand ideal input and output examples?

Choose one answer

Why it matters

These methods are not rungs of one ladder. They need different data and teach different things. Picking by fashion wastes weeks. Picking by data and goal gets a working model sooner. First ask whether prompting or retrieval already solves the problem.

The comparison

SFT DPO and relatives RLHF (PPO) RLVR (GRPO)
Data Input and ideal output Prompt, chosen, rejected Ranked pairs plus prompts Prompts plus a checker
Models in memory 1 (plus adapters) 2 (policy, reference) 4 2 to 3
Stability High Medium Low Medium
Best for Format, style, domain facts Tone, safety, taste Open-ended quality at scale Math, code, structured tasks

How to choose

  1. Can you write the right answer? If yes and you have a few thousand examples, start with SFT. It teaches the format and the skill.
  2. Can you only say which of two answers is better? Use DPO on pairs, ideally sampled from your SFT model.
  3. Can a program verify the answer? Use RL with verifiable rewards. Check that tasks sit at mixed difficulty.
  4. Is quality fuzzy, you have many raters and large compute? Consider the full RLHF pipeline. Most teams do not need it.
  5. Combine in order. The usual order is SFT, then preference tuning, then RL, as in the Tulu 3 recipe (2024).

Before and after

Goal: a support assistant that answers in your company's voice, with 3,000 past agent replies and 400 flagged bad replies.

Weak choice: run PPO because it is what the big labs do. You would need a reward model, labellers and four models in memory.

Better: SFT on the 3,000 replies for voice, then DPO using the 400 flagged replies as rejected answers paired with fixed versions. Evaluate on 200 held-out tickets.

What goes wrong

  • Using DPO to teach new facts. Preference tuning reorders behaviours the model has; it is a weak way to add knowledge.
  • Using RL with no reliable checker, which becomes reward hacking.
  • Skipping the baseline. A better prompt or retrieval may already match the tuned model.
  • No held-out eval, so you cannot tell which method actually helped.

Examples

Three goals, three methods

  • Output must be strict JSON with 12 fields: SFT on a few thousand correct examples, plus a schema check.
  • Replies should sound calmer, and you have 2,000 A/B comparisons from reviewers: DPO.
  • Model should solve SQL tasks and you can run queries against a test database: RL with a result-matching reward, after SFT.

A budget check

A team with one GPU node and no labelling budget wants PPO for a tone change. They have 1,500 example replies. PPO would need a reward model and four models loaded at once. Decision: SFT first. If the tone is still off, build pairs from the model's own samples and run DPO.

Key points

  • SFT needs good examples, DPO needs ranked pairs, and RL with verifiable rewards needs a checker; pick by the data you have.
  • Cost and fragility rise from SFT to DPO to PPO-based RLHF, mostly through the number of models and tuning knobs.
  • Preference and RL methods reshape behaviour; adding new knowledge belongs to SFT, retrieval or more pretraining.
  • Pipelines usually run in order: SFT first, then preference tuning, then RL if a checker exists.
  • Set a prompting baseline and a held-out eval before choosing any method.

Common mistakes

  • Starting with RL because recent reasoning models used it, with no checker for the task.
  • Trying to inject new facts with DPO.
  • Skipping SFT and running preference tuning on a base model.
  • Comparing methods without a shared held-out set and a prompting baseline.

Check yourself · 2 of 3

You have a unit-test harness for 5,000 coding tasks and a model already tuned with SFT. Which step is the natural next one?

Choose one answer

Check yourself · 3 of 3

A team wants to teach a model its product's 800 new feature names and facts. What is wrong with using DPO for it?

Choose one answer

Practice items, not counted towards your mastery.

Start here

More for this topic