📞 0339-0387701 (WhatsApp) Contact

« Back to Data Science & AI (NCCIA)

What is masked self-attention in a decoder?

A. Attention that only looks at images
B. Attention that hides all tokens
C. Attention that removes positional encoding
D. Attention that prevents a token from seeing future tokens during generation ✅

Correct Answer: D. Attention that prevents a token from seeing future tokens during generation

Explanation

Causal masking ensures generation depends only on past tokens, preserving autoregressive order.