What is the purpose of the attention mask in a Transformer decoder?
Correct answer
B. To prevent attention to future positions
12 views
B. To prevent attention to future positions
12 views
The attention mask prevents the decoder from attending to future tokens, preserving autoregressive causality. Source: MIT (Transformer MCQ), Q1.
Asked in: General
Not sure why the answer is B? Ask here and get an explanation.