Causal mask

An attention constraint preventing positions from seeing future tokens during autoregressive generation.

Practical example

When predicting the next word, the model cannot see the answer in advance.

Related term

Decoder-only model

AI glossary · Poiskom