Gradient LabSign up free

ML glossary › Attention

What is attention in machine learning?

A way for each token to look at the other tokens and pull in the information most relevant to it.

Where it shows up

Transformers and LLMs

Attention

attention lets the word “it” look at every word in the sentence, all at once, and score how relevant each one is.

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

Open the lesson