How does causal masking prevent future-token leakage?
Reveal the answer and explore the explanation.
06MediumHow does causal masking prevent future-token leakage?
Answer
Medium
How does causal masking prevent future-token leakage?
Answer
Blocks attention to future sequence positions.
Practical example
Train an autoregressive decoder without future-token leakage.
Reference: Further reading ↗