Gradient LabSign up free

ML glossary › Attention head

What is attention head in machine learning?

One complete attention calculation. Models run many in parallel, each spotting different relationships.

Where it shows up

Transformers and LLMs

Multi-head attention

One attention calculation, called one attention head, tends to focus on one kind of relationship. This head links the pronoun “it” to the noun it refers to.

See attention head in motion. The lesson animates it step by step, free.

Open the lesson