All glossary terms
techniquesadvanced
Attention Mechanism
A neural network component that allows models to focus on relevant parts of input by computing weighted combinations.
In more detail
Attention computes relevance scores between query and key elements, uses them to weight values, producing outputs that emphasize important information. Self-attention attends to positions in the same sequence. Enables transformers to capture long-range dependencies efficiently.
Examples
- Self-attention in Transformers
- Cross-attention in Seq2Seq models
- Multi-head attention
- Positional attention in images
Related terms
YOUR NEXT STEP
Checking your next step...