📞 0339-0387701 (WhatsApp) Contact

« Back to Data Science & AI (NCCIA)

What is sparse attention?

A. Attention that only works on short text
B. Attention that attends to every token
C. An attention variant where each token attends only to a subset of tokens to save computation ✅
D. Attention with no weights

Correct Answer: C. An attention variant where each token attends only to a subset of tokens to save computation

Explanation

Sparse patterns reduce the quadratic cost of full attention for long sequences.