Which of the following statements about the 'attention' mechanism in neural networks is correct?

Answer

It computes a weighted sum of values based on query-key compatibility.

Explanation

Attention calculates weights by comparing queries and keys, then uses these weights to combine values, allowing dynamic focus on relevant parts.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error
QuestionBack to list