Glossary

What is Attention mechanism?

In Turkish: Dikkat mekanizması · Topic: Models and training

A method that lets a neural network learn which parts of its input deserve how much weight while processing it. A weight is computed for each element, and heavily weighted elements influence the output more.

How does it work?

The model compares the element it is processing with the other elements of the input and produces a relevance score for each. These scores are normalized into weights that sum to one. The information from the elements is then blended using those weights, so the model draws more from the parts it finds important. How the weights are computed is itself learned during training. The method was first used in machine translation and later became the foundation of the Transformer architecture.

Why does it matter?

Attention is at the core of today's large language models and of many image and audio models. It made it possible to connect information at the start of a long text with information near the end. When an AI story mentions context length, compute cost or speed problems, it is often about how attention works.

Example

When translating the sentence 'The book was on the table, I took it', a translation model may give the most attention weight to 'book' while handling the word 'it'.

FAQ

Is the attention mechanism similar to human attention?

Only loosely, as an inspiration. What happens is a mathematical weighting of input parts, with no direct link to consciousness or to human attention.

Are attention and the Transformer the same thing?

No. Attention is a method, while the Transformer is a model architecture built on attention layers.

All terms