Artificial Intelligence

What is Transformer?

Quick answer

A neural network architecture, introduced in 2017, that uses attention mechanisms and underpins most modern large language models.

Transformer, explained

The transformer was introduced in the 2017 research paper Attention Is All You Need by researchers at Google. Its key innovation is self-attention, which lets the model weigh how relevant every word in a sequence is to every other word, capturing context across long passages.

Earlier recurrent models processed text one word at a time, which made training slow. Transformers process sequences in parallel, making them well suited to GPUs and allowing training on vast datasets. They now power large language models, machine translation, code assistants, and many image, audio, and multimodal models. A known limitation is that standard attention becomes expensive as input length grows, an active area of research for more efficient variants.

Related terms

Guides that mention Transformer