Causal Masking
Quick definition
An attention restriction that prevents a token from accessing future positions during autoregressive sequence processing.
An attention restriction that prevents a token from accessing future positions during autoregressive sequence processing.
Causal masks preserve the next-token prediction setup by preventing information leakage from later tokens.
Example: A language model predicting the fifth word can attend to earlier words but not the sixth.
Common use cases: Autoregressive transformers, language modeling, and sequence generation.
Examples
- A language model predicting the fifth word can attend to earlier words but not the sixth.
Use cases
- Autoregressive transformers, language modeling, and sequence generation.
Frequently asked questions
What is Causal Masking?
An attention restriction that prevents a token from accessing future positions during autoregressive sequence processing.
What should I know about Causal Masking?
Causal masks preserve the next-token prediction setup by preventing information leakage from later tokens.