Technology

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

Verified sources