Attention Mechanism
Attention lets a neural network weight information according to its relevance, helping it use context when processing language, images, and other data.
An attention mechanism computes weighted combinations of data representations, giving some information more influence than other information. In a common implementation, the network compares queries with keys to determine weights, then applies those weights to associated values. Self-attention relates positions within the same sequence, allowing a word’s representation to incorporate information from other words. The Transformer architecture, introduced in 2017, made attention central to sequence processing without relying on recurrent or convolutional layers.
Where this leads
Neural Networks →
Attention is a component used in neural networks to combine information with context-dependent weights.
Machine Learning →
Attention mechanisms learn how to weight information during machine-learning training.
Large Language Models →
Many large language models use Transformer architectures whose core components include self-attention.
AI Translation →
Attention helps neural translation systems connect words being generated with relevant parts of the source text.
AI Memory →
Attention mechanisms let a model weigh information available in its context when generating a response.
AI Protein Folding →
AlphaFold2 uses attention mechanisms to process information about related sequences and relationships between amino acid positions.