Teacher forcing during SFT: which description nails it?
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
Teacher forcing means each training position is conditioned on the gold previous tokens, not on the model's own predictions, so the whole sequence is scored in one parallel forward pass.
Imagine teaching a kid to copy a sentence one word at a time. Two ways to do it. The first way, you let the kid write a word, then write the next word based on whatever they wrote, even if their first word was wrong. The second way, you erase any mistake immediately and let them continue from the correct word every time. Teacher forcing is the second way. The kid always sees the right setup, so they learn what comes next from a correct starting point at every step. It also lets you grade every word of the whole sentence at once, instead of waiting for one to be done before moving to the next.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
3 min: state the gold-context rule, explain the parallel forward pass payoff, dismiss the three distractors as different concepts entirely, and end on the exposure-bias caveat.
Real products, models, and research that use this idea.
What an interviewer would ask next. Try answering before peeking at the approach.
Red flags and common mistakes that signal junior thinking. Click to expand.
Confusing teacher forcing with knowledge distillation. They are orthogonal: teacher forcing is about which previous tokens condition each step, distillation is about what targets the student matches.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.