Up nextNext guide
Representation and Sampling Bias in Datasets
Technical
Technical GUIDE
Exposure bias is the gap that appears when a model trained only on perfect prefixes must, at inference, condition on its own imperfect outputs.
Listen to this guideAI-narrated · ~2 min
Scheduled sampling is a curriculum that gradually closes that gap.
Models trained with teacher forcing only ever see ground-truth tokens as context, but at generation time they feed back their own predictions. When an early mistake lands the model in a state it never encountered during training, errors can snowball, a failure mode called exposure bias. Scheduled sampling, introduced by Bengio and colleagues in 2015, addresses this by flipping a coin at each decoding step during training: with some probability it feeds the true token (teacher forcing) and otherwise it feeds the model's own sampled prediction. The probability of using ground truth starts near one and decays over training via a schedule (linear, exponential, or inverse-sigmoid), so the model is progressively exposed to its own outputs and learns to recover from its mistakes.
Training an image-captioning model with scheduled sampling so it learns to continue gracefully after an imperfect predicted word
Decaying the teacher-forcing probability with an inverse-sigmoid schedule in a neural machine translation system
Diagnosing a chatbot that drifts into incoherent loops as an exposure-bias symptom from pure teacher forcing
Comparing BLEU scores of a summarizer trained with full teacher forcing versus one trained with scheduled sampling
For large Transformer language models the practical impact of exposure bias is debated, since huge data and scale dampen it, and methods like RLHF reshape generation behavior directly. Still, scheduled sampling and its descendants remain relevant for smaller models, structured generation, and tasks with strict accuracy needs. Future work blends curriculum exposure, reinforcement-style sequence objectives, and minimum-risk training to align how models are trained with how they actually decode.
Free newsletter
Three verified AI stories every weekday morning, written in plain English. Free forever, no ads.
One email each weekday. Unsubscribe in one click. We never sell or share your address.
Test yourself
Instant feedback on every answer, and a shareable certificate with a verifiable ID once you pass a course.
Support free AI education. AI Understanding is a 501(c)(3) nonprofit — no ads, no paywall, ever. Make a donation
Exposure bias is the gap that appears when a model trained only on perfect prefixes must, at inference, condition on its own imperfect outputs. Scheduled sampling is a curriculum that gradually closes that gap.
Scheduled sampling stochastically mixes ground-truth and model-generated tokens as decoder inputs, controlled by a decaying probability.
The schedule begins near full teacher forcing and decays so the model is increasingly exposed to its own predictions as it improves.
Scheduled sampling was proposed by Samy Bengio and colleagues in 2015 for sequence prediction with recurrent networks.
The original work proposed linear, exponential, and inverse-sigmoid decay schedules for reducing the ground-truth sampling probability.
Scheduled sampling sometimes feeds the model’s own sampled prediction instead of the gold previous token.
Keep learning
More guides picked for this topic
Up nextNext guide
Representation and Sampling Bias in Datasets
Technical