In autoregressive text generation, each token is predicted from what came before. A causal mask enforces this direction: a token can attend only to preceding tokens, preventing information from the future from leaking into its prediction. section 5.1
During training, the model predicts the next token at every position in a sequence simultaneously. The mask preserves that left-to-right prediction task while allowing the sequence to provide many training examples. section 5.1





