In this article
Before you start
This page sits on the LLM training learning path, after how transformers work.
Why interviewers ask this
The question separates candidates who know that alignment is a set of stages from those who treat "fine-tuning" as one step. A weak answer says "SFT is outdated" or "SFT is worse than RLHF". A strong answer says what SFT optimizes (imitation of one reference answer per prompt), what that leaves out (a signal for bad answers and for ranking good ones) and what it is still good at. A Staff-level answer adds the evidence on both sides: Zhou et al. (2023) show how far a small SFT set goes, and Ouyang et al. (2022) show where human-feedback training pulls ahead.
SFT from first principles
- Teacher forcing
- Teacher forcing is a way of computing the SFT loss in which the model is always shown the correct previous tokens of the reference response, never its own earlier guesses, while it predicts each next token.
In plain words
Think of learning to cook by watching a chef and copying every move. You learn the style fast. You never learn which of two dishes the diner would have preferred, because you only ever saw one dish per order. The analogy breaks in one place: a model copying a chef also copies tokens it has no reason to believe.
In one precise sentence, SFT minimizes the cross-entropy between the model's next-token distribution and the reference response, token by token.
Step 1: SFT trains the model to imitate demonstrations
Demonstrations teach a model to imitate the next token. The input is a prompt and a reference answer. At each position the model predicts the next token given the correct prefix, which is teacher forcing, and the loss is the negative log of the probability it gave the reference token.
Take a five-token reference answer where the model gives the correct tokens probabilities 0.60, 0.30, 0.50, 0.20 and 0.80 (illustrative). The per-token losses are 0.5108, 1.2040, 0.6931, 1.6094 and 0.2231, the total is 4.2405 and the mean is 0.8481.1 The probability of the whole reference answer is 0.0144, and minus its natural log is again 4.2405.1 You now know what SFT optimizes: raise the probability of this one answer, token by token.
Step 2: SFT mostly teaches format and style, not new knowledge
SFT mostly teaches the format and style of an answer. Zhou et al. (2023) tuned a 65B-parameter LLaMa model with the standard supervised loss on only 1,000 carefully curated prompts and responses, with no reinforcement learning or human preference modeling. In their human study, responses from that model, called Less Is More for Alignment (LIMA), were equivalent or preferred to Generative Pre-trained Transformer 4 (generative pre-trained transformer (GPT)-4) in 43% of cases.
Their explanation is the Superficial Alignment Hypothesis: knowledge and capabilities are learned almost entirely during pretraining, while alignment teaches which format to use with users. It is a hypothesis, not a settled fact. If a demonstration states a fact the model does not hold, the loss still demands it, so SFT is an unreliable way to add knowledge; Gekhman et al. (2024) study whether this encourages hallucinations. See fine-tuning vs prompt engineering for when each tool fits.
Step 3: SFT has no negative signal and cannot rank answers
SFT gives no signal about which of two answers is better. It sees one reference per prompt and never sees the model's own bad answers, so it cannot say "this plausible response is worse than that one". Raising one reference's probability lowers other tokens only as a side effect of the softmax.
SFT can at best match its demonstrations. Comparing two answers is easier for a labeler than writing the ideal one, which is why Ouyang et al. (2022) collect rankings of model outputs after the demonstration stage.
Step 4: Why does a model trained on perfect demonstrations still drift?
A model trained on perfect demonstrations still drifts because teacher forcing shows it only clean prefixes while at use time it reads its own earlier tokens. Training uses perfect prefixes and use runs on the model's own tokens. Suppose each generated token has an illustrative 1% chance of leaving the territory the demonstrations covered. The chance of staying on track is 0.9044 over 10 tokens, 0.605 over 50 and 0.134 over 200.1 A small error rate per token compounds.
This gap is sometimes called exposure bias, and how much it matters for large language models is debated. During training the model never recovers from its own slip. At use time one odd token changes every later prediction. An on-policy preference stage, which trains on answers sampled from the current model, sees those slips and can mark them as worse than a good alternative.
Text description of the diagram
- The chance of staying on track is 0.9044 over 10 tokens.
- The chance of staying on track is 0.605 over 50 tokens and 0.134 over 200.
Step 5: Preference tuning adds the missing comparison signal
Preference tuning learns from comparisons between answers. Instead of one reference, each example is a preference pair, and the loss rewards the better answer scoring above the worse one. The two best-known routes are reinforcement learning from human feedback (RLHF), covered in what RLHF is and driven by a reward function, and direct preference optimization (DPO), which Rafailov et al. (2023) present as solving the RLHF problem with a simple classification loss; the DPO vs RLHF comparison covers the difference.
DPO learns from a fixed set of pairs unless they are sampled from the current model. The pairwise loss is , where is the sigmoid function and m is the better answer's score minus the worse one's. With an illustrative margin of 0.8 it is 0.3711; with no margin it is 0.6931.1 Ouyang et al. (2022) report that human raters preferred outputs from the 1.3B-parameter InstructGPT model to those of the 175B-parameter Generative Pre-trained Transformer 3 (GPT-3), despite 100 times fewer parameters. Chu et al. (2025) report that SFT tends to memorize while outcome-reward reinforcement learning (RL) generalizes better, and that SFT still helps by stabilizing the output format first.
Step-by-step description
- Demonstrations teach next-token imitation.
- SFT mostly teaches format and style.
- No signal about which answer is better.
- Perfect prefixes in training, own tokens at use.
- Preference tuning learns from comparisons.
- Demonstrations teach a model to imitate the next token.
- SFT mostly teaches the format and style of an answer.
- SFT gives no signal about which of two answers is better.
- Training uses perfect prefixes and use runs on the model's own tokens.
- Preference tuning learns from comparisons between answers.
Knowing it is half the job. Saying it is the other half.
Interview Clozo is an AI interview copilot for real interview rounds: it hears the question and puts a strong answer on your screen, and you say it in your own words. See the features or how it works.
Start Free Trial →The Staff-level answer
Why not use SFT for LLM training?
I would use SFT, but not alone. SFT imitates one reference answer per prompt, so it is good at teaching format and style from a small, clean set, and it is cheap. What it lacks is a comparison signal: it never sees the model's own bad answers and cannot say which of two good answers is better, and it is capped at the quality of its demonstrations. Teacher forcing also trains on perfect prefixes, so errors can compound at generation time. So I run SFT first to fix the format, then a preference stage such as RLHF or DPO, ideally on the model's own samples, to shape quality and safety, and I watch for regressions.
What makes it Staff-level is the last sentence: it names a pipeline and its failure mode, not a verdict on SFT.
The rubric
| Dimension | Weak answer | Strong answer | Staff answer |
|---|---|---|---|
| Correctness | "SFT is outdated." | SFT imitates references with a next-token loss. | Adds teacher forcing and why the loss ignores the model's own outputs. |
| Depth | Names RLHF only. | Says SFT has no signal for bad or better answers. | Cites small-data SFT results and preference-tuning gains. |
| Trade-offs | No cost view. | SFT is simple and compute-cheap; preference tuning adds compute and pipeline complexity, though ranking is easier to label than writing. | Says SFT is a stabilizing first stage, with a regression check. |
| Communication | Lists terms. | Defines SFT before criticizing it. | Gives a two-sentence answer, then offers depth. |
| Follow-up readiness | Stuck on "why not both". | Explains pipelines run SFT then preference tuning. | Names the alignment tax and the sampling or exposure issue. |
Three variants of this question
When is SFT enough?
SFT is enough when the task is mainly format or style, a small clean demonstration set exists and no ranking of answers is needed. Zhou et al. (2023) got strong results from 1,000 examples.
Why not use SFT instead of RLHF or DPO?
SFT gives no comparison signal, so it cannot express "this answer is better than that one" or "avoid this". Preference methods are built to learn exactly that from pairs or rewards.
What if you had unlimited high-quality demonstrations?
More data helps coverage, but the missing signal remains: the model still never sees its own mistakes during training, and imitation is capped at the quality of the demonstrations. Quality and variety matter more than raw volume (Zhou et al., 2023).
Common mistakes
- "SFT is useless now." (wrong) It is a cheap, strong first stage. (right) "SFT fixes format and style; preference tuning adds the comparison signal."
- "SFT teaches the model new facts." (wrong) Knowledge comes mostly from pretraining, on the Superficial Alignment Hypothesis. (right) "SFT mostly teaches how to answer, and I treat that as a hypothesis."
- "More SFT data always means a more aligned model." (wrong) Quality and variety matter more. (right) "A small curated set can go far; volume alone does not add a ranking signal."
- "RLHF replaces SFT." (wrong) RLHF starts from an SFT model, so the demonstration stage comes first. (right) "SFT sets the format, then RLHF or DPO optimizes against preferences."
Follow-up questions
Is SFT useless or obsolete?
No. A small curated SFT set gave strong results in LIMA, and SFT is a first stage that stabilizes the output format before reinforcement learning, as Chu et al. (2025) report.
Does more SFT data always give a better model?
No. LIMA's authors report that a small, curated set was enough and that quality and variety mattered more than volume (Zhou et al., 2023).
Can SFT teach a model new knowledge?
Only unreliably. The Superficial Alignment Hypothesis says knowledge comes mostly from pretraining and SFT teaches format and style. It is a hypothesis, so say so in an interview.
What is the difference between SFT and RLHF?
SFT trains on demonstrations with a next-token loss. RLHF trains on human comparisons through a reward signal, and the alignment tax is the regression risk it brings. Newer methods such as group relative policy optimization (GRPO) drop the separate value model and score each answer against a group of sampled answers.
Why does SFT still come first in a training pipeline?
It is cheap and gives the model the answer format that preference tuning and reinforcement learning then refine. For the cost side, see fine-tuning an LLM and its memory needs.
- SFT trains a model to imitate one reference answer per prompt, token by token.
- It mostly teaches format and style; knowledge comes mainly from pretraining (a hypothesis).
- It gives no signal for bad answers or for ranking two good ones.
- Teacher forcing lets small per-token errors compound over long responses.
- Real pipelines run SFT first, then a preference stage such as RLHF or DPO.
Sources
- Training language models to follow instructions with human feedback (arXiv 2203.02155) — arXiv (Ouyang et al., OpenAI), 4 Mar 2022
- LIMA: Less Is More for Alignment (arXiv 2305.11206) — arXiv (Zhou et al.), 18 May 2023
- SFT Memorizes, RL Generalizes: A Comparative Study of Foundation Model Post-training (arXiv 2501.17161) — arXiv (Chu et al.), 28 Jan 2025
- Direct Preference Optimization: Your Language Model is Secretly a Reward Model (arXiv 2305.18290) — arXiv (Rafailov et al.), 29 May 2023
- Does Fine-Tuning LLMs on New Knowledge Encourage Hallucinations? (arXiv 2405.05904) — arXiv (Gekhman et al.), 9 May 2024