11/29
Part 2 of 5 · The blockLearn and do
Catch a model that reads ahead
The causal mask lives inside your attention module, and a model without it still trains. Train the whole model on random tokens, where nothing can be predicted: with its mask, the loss stays near ln 23 = 3.14, the lowest possible when each next token is a random pick from 23. Without it, the loss falls to 0.21 in 300 steps, because each position copies the answer from the next position. A loss lower than the data allows means the model is reading the answer.
Which test catches a model that reads ahead?
Pick an answer above to see the rest