How do attention weights differ from attention masks in a transformer?

Instruction: Give a clear explanation, a practical example, and the main limitation.

Context: Explain which token positions attention can use and how the input changes their relative weights.

Updated

Official answer available

Read the opening below, then unlock the full answer and practical guidance.

Attention weights describe how a query combines the allowed values...

Related Questions