GlossaryEntry 29 of 30

Transformer

An AI design that reads a sequence by relating each piece to the others.

Read the transcript

"The cat knocked over the glass because it was full." What was full? You know right away. AI glossary, entry twenty-nine: transformer. It's an AI design that reads a sequence by relating each piece to the others. First, attention. For each word, the model looks at all the others, and picks out the ones that help make sense of it. Here, "it" links mostly to "glass"… because a glass can be full, a cat can't. Then, an example. The transformer was introduced in 2017 by Google researchers, in the paper "Attention Is All You Need". It's the T in GPT: Generative Pre-trained Transformer. Why does it matter? Very different AIs for text, images or sound often share this design. But the longer the text, the more comparisons it takes: one reason context windows have limits. Remember: it's a blueprint, not one particular model; its key mechanism, attention, links words to each other; and it handles tokens in parallel, which speeds up training. A transformer is a reader who sees every word… in light of all the others. Next entry: world model.

How it works

The transformer is the internal structure most large language models are built on. Its central idea is called attention: for each word, the model looks at the other words and picks out the ones that help make sense of it. It's what you do when you read “The cat knocked over the glass because it was full” and work out that “it” means the glass.

Why it matters to you

Shared foundation

Very different AIs for text, images or sound often share this design. Understanding the idea helps you understand the rest.

Long texts

Because each piece is compared with the others, a longer text takes far more computing. That's one reason context windows have limits.

Common myth

False: “Transformer is the name of an AI.”

It's the name of an architecture, a way of building a model. Rival models from different companies are built on the same idea.

In the news