AI glossary · Machine learning

Attention mechanism

An attention mechanism lets an AI model focus on the most relevant parts of its input, such as which earlier words matter for understanding the current one.

Also called attention, self-attention

In more detail

For each word, attention scores how much every other word should influence it. This lets models connect ideas far apart in a text, like a pronoun and the name it refers to.

Self-attention is the core of the transformer design that powers modern large language models.

Browse related tools

AI tools listed on BroUseAI in these categories.

More in Machine learning · Full AI glossary