Khalid ShamsPrincipal Solutions Architect

Learn AI · On the map · Language · idea 17 of 44

Attention

A way for a model to decide which earlier words matter most for understanding the current one.

In one line

A way for a model to decide which earlier words matter most for understanding the current one.

Picture it

Reading 'the trophy didn't fit in the suitcase because it was too big' and knowing 'it' points to the trophy.

Under the hood

Each token forms queries, keys and values; weights come from query and key similarity. Multi-head attention runs many of these in parallel.

Builds on

Leads to

On a guided path

Path 3: What a language model does, stop 3 of 10.

Marking "I get this" is self-reported and stays in this browser. The same mark shows on the map.