AI engineering glossary · Deep learning core

What is teacher forcing?

Teacher forcing: A training method for sequence models in which the true previous token, rather than the model's own earlier prediction, is fed as the next input. It speeds and stabilises learning but creates a mismatch with generation time.

Level: advancedTopic: Deep learning core

Teacher forcing: an example

When training a translator, the correct first word is provided when predicting the second, even if the model guessed wrongly.

Related terms

More Deep learning core terms

Where you learn it

Teacher forcing is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.