The attention mechanism lets a neural network weigh which parts of its input matter most for each step of its output, instead of treating everything equally. When translating a Darija customer message into French, the model «attends» to the relevant words at each moment, like a reader whose eyes jump back to key phrases. Attention is the core innovation behind the transformer architecture, and therefore behind ChatGPT, Claude, Gemini, and virtually every modern language model.