Attention

NLP interview question · Medium difficulty

What is attention?medium

Type
conceptual
Topic
attention
Frequency
common
Tags
attention
Answer

Attention lets a model weight relevant tokens when building representations.

Explanation

Attention helps models connect distant words and focus on important context, which is central to transformer architectures.

Follow-upWhat is self-attention?