Artificial intelligence · 5 min
Attention is all you need
Learn about the transformer.
What the sources describe
In June 2017, eight researchers at Google published a paper called Attention Is All You Need, introducing a new type of neural network called the transformer. It was first designed for translating languages.
Earlier language models processed words one at a time in order, which made training slow and made it hard to connect words far apart in a sentence. Transformers use a mechanism called attention, which lets the model weigh how relevant every word is to every other word at the same time.
Because transformers process words in parallel, they can be trained much faster on powerful chips and on enormous amounts of text. In 2018, Google released BERT and OpenAI released the first GPT model, both based on transformers. GPT stands for generative pre-trained transformer.
Transformers now underlie most large language models and are also used for images, audio and protein research. The paper became one of the most cited in computer science, and all eight authors later left Google, many founding AI companies.
Connecting the ideas
In 2017, Google researchers published Attention Is All You Need, introducing the transformer architecture, which underlies most modern large language models.
The big idea
A single idea can reshape a whole technology.
Use it in real life
Read a sentence such as The trophy did not fit in the suitcase because it was too big, and decide what it refers to. Then change big to small and decide again. Note how you used other words to decide, and compare this with how attention helps transformers connect words.
Try it
Made-up example: What is attention in a transformer?
A good answer: a mechanism that lets the model weigh how relevant every word is to every other word at the same time.
Quick quiz
1. Why were transformers faster to train?
2. What does GPT stand for?
3. What were transformers first designed for?
Finished reading?
Make this the next Doom video?
Vote for the lessons you'd most like to see turned into a short animated story.
How was this lesson?
No ratings yet — be the first.
Sign in to rateSources
Limitations
Checked against the paper on arXiv; later impact relies on Wikipedia.
Voice: Debby — Soft and soothing (tap to change)
Debby narration · part 1 of 15
