Glossary · Phase 5 · Transformers
Lower-triangular
A grid with numbers on and below the diagonal and zeros above it. The causal mask has this shape: each token sees only itself and earlier ones.
Learn it properly
Causal masking · Stop tokens from seeing the future. About 25 minutes.
Other terms from the same lesson
- causal mask: A rule that stops each token looking at the tokens after it, so the model can't peek at the answer.
- teacher forcing: Training on real text by predicting every next token at once from the true earlier tokens, not the model's own guesses.