Index Ai Academy
Glossary · Phase 5 · Transformers

Teacher forcing

Training on real text by predicting every next token at once from the true earlier tokens, not the model's own guesses.

Try it now

Each row is one word. With the mask on it can't see anything to its right, and its 100% is shared among the words left.

Learn it properly

Causal masking · Stop tokens from seeing the future. About 25 minutes.

Create a free account See what's in the lesson

Other terms from the same lesson

Never trained an AI?

Teach a small one to write, right in your browser. It takes about 20 seconds and needs no account.

Teach it to write