Learn AI Math

Transformer

Also called: Transformer Architecture

What is Transformer?

In one sentence: A Transformer is a type of neural network design that reads all the words in a passage at once and works out how they relate, using attention.

Older language models read one word at a time, like reading through a straw. Transformers look at the whole sentence together and decide which words matter most to each other. This makes them better at understanding meaning and much faster to train on powerful chips. The design was introduced in a 2017 paper called "Attention Is All You Need."

What does Transformer look like?

In "The cat sat because it was tired," a Transformer learns that "it" refers to "the cat."

Why does Transformer matter?

Almost every modern LLM, including GPT, Claude and Gemini, is built on the Transformer.

Last updated · Fact-checked by The AI Math

Linking to this page from a lesson or article?

Like this explanation? Get one every week.

The AI Math newsletter turns confusing AI news into plain English. No hype, no jargon walls.