QUESTION 6 OF 15

How does causal masking prevent future-token leakage?

Reveal the answer and explore the explanation.

06
Medium

How does causal masking prevent future-token leakage?

Answer
Answer

Blocks attention to future sequence positions.

Practical example

Train an autoregressive decoder without future-token leakage.

Reference: Further reading ↗

Last 30 min revisionHigh-yield interview Q&As