AI ATLASAn interactive field guide
CONCEPT 59 / Language and Transformers / Interactive study

Causal masking.

Cover future words with a one-way blindfold so a text generator can only look at words already written.

Past words visible ✓ · Future words blocked ✗

Begin with the loaded example. Change one control and watch the diagram and numbers update together.

59 / LIVE LABORATORYLoaded example
All calculations shown here run in the browser from the visible controls and bundled examples.

Inside the calculation

Why it matters

If a model could peek at future words during training, it would cheat instead of learning to predict.

All calculations shown here run in the browser from the visible controls and bundled examples.