LinkedIn analytics tracking pixel for AIDOLS AI consulting website performance measurement
Models

Transformer

The transformer is a neural-network architecture built around the self-attention mechanism that has become the dominant model design for language, vision, audio, and multimodal AI since 2017.

Full definition

Introduced in the 2017 paper "Attention Is All You Need" by Vaswani et al., the transformer replaced recurrent and convolutional architectures with a stack of self-attention and feed-forward layers. Self-attention lets each token weigh the relevance of every other token in the input directly, producing parallel training and long-range dependencies. Variants include encoder-only (BERT), decoder-only (GPT, Claude), encoder-decoder (T5), and vision transformers (ViT).

Why it matters

The transformer is the single most consequential architectural choice in modern AI. Almost every frontier AI model today is a transformer or a transformer variant. Investment in transformer-shaped infrastructure — long-context attention kernels, KV cache, GPU memory hierarchy — compounds across language, vision, and multimodal use cases.

Example

GPT-4o, Claude, Gemini, Llama, BERT, Stable Diffusion (text encoder), and Whisper are all transformer-based models — the same architecture, scaled and adapted to different modalities.

Source & further reading

Primary source: Vaswani et al. — "Attention Is All You Need" (NeurIPS) (2017).

Citation policy: this entry is part of the AIDOLS AI Implementation Glossary and may be quoted for research, journalism, and education with attribution to aidolsgroup.com/es/glossary/transformer/.