How a Simple Attention Trick Sparked the Modern AI Boom
In 2014 an intern in a Montreal laboratory was asked to make a neural network translate English into French, and invented an operation that let the network look anywhere in the sentence for the information it needed. Everything since, including the chatbots, rests on that operation and on what a team at Google did with it three years later.
Reviewed by Matheus GrangeiroUpdated on
Evidence level: Not specified in the source
Why it matters: Knowing what attention does is the difference between treating a language model as a mystery and understanding its shape. It explains why these systems are so good at some things and oddly brittle at others, why they need enormous amounts of text, and why the people who built them disagree about whether this path leads anywhere near human intelligence.
How a translation problem became the foundation of the field
In 2014 Dzmitry Bahdanau, a 23-year-old Belarusian who had competed in programming since childhood and never done academic research, was asked to help make a neural network translate sentences. His adviser Yoshua Bengio and the postdoc Kyunghyun Cho believed in the approach; Bahdanau quietly doubted that these networks would ever reach anything like human intelligence.
The networks of the time had a specific failure: the longer the sentence, the worse the translation, because the whole sentence was being squeezed into a fixed amount of memory before being decoded. Bahdanau's change removed that bottleneck, and he describes it as obviously the right thing to do, one of those things that is clear to someone not very experienced in the field, and says it worked from the very first attempt.
Three years later a team at Google built the transformer, which took attention and stripped away everything else, reporting state-of-the-art translation for a fraction of the computation. Their paper, titled around the claim that attention is all you need, has since been cited more than 250,000 times, and the large language models followed from it.
What the operation does, in one sentence about a tired animal
Take the sentence: the animal did not cross the street because it was too tired. To put that into French the machine must know that it refers to the animal, which changes which pronoun is correct, and the same sentence ending in too wide would refer to the street instead. Nothing in the grammar settles it.
Bahdanau's description of his own schoolwork is the clearest explanation of the fix. Translating in class, he kept turning his head left and right between the source text and his own writing to decide the next word, and attention is that movement expressed as a mathematical mechanism: a way for the network to find the words anywhere in a sentence that most inform the word being produced.
Mechanically, each word becomes a vector, and learned weights turn it into three vectors called query, key and value. Inside an attention head, each word's query is compared against every other word's key, and the better they match, the more that word's value flows into an updated representation. Running that repeatedly, layer after layer, is how context becomes arithmetic: by the end, the representation of it carries information from animal rather than from street, and nobody had to tell the machine that animals get tired and streets are wide.
Why translation turned out to be the key to everything else
The jump from translating to doing everything has a simple logic. Predicting the next word of a translation is a special case of predicting the next word, and a model trained on the whole internet is doing the general version. Llion Jones, one of the authors of the Google paper and now chief technology officer at Sakana AI, lays out the consequence: the internet contains translations, so completing a sentence about a French translation requires translating; it contains arithmetic, so completing two plus three requires arithmetic; it contains facts, so completing a sentence about a head of state requires knowing one.
That is the argument that language modelling is AI-complete, meaning a task hard enough that solving it amounts to solving the rest, and Jones calls it the closest definition of intelligence we have. The argument is strong enough to explain the capability and it is not a proof, because a system that completes text about arithmetic well enough to pass is not necessarily doing arithmetic, which is why frontier systems now bolt formal reasoning and proof checking on top for mathematics.
The caution worth keeping is about what attention explains. It describes how these models reach meaning and context, well enough to astonish, and that is a mechanical account, not a claim about understanding. Saying a model knows something is a habit of speech borrowed from how we talk about people.
Does the brain do anything like this?
The tempting conclusion is that human thought is also language modelling, since we too produce one word after another. The evidence runs the other way: when people think, more of the brain lights up than the networks specialised for language, and thought appears to draw on sensory impressions, physical and social experience, memory and reasoning that sit at least partly outside those networks. Most animals are intelligent with no language at all.
So the honest summary is that language carries an enormous amount of information about the world, which the success of these models proves, and that mastering language does not deliver intelligence for free. Language modelling looks like one powerful component of human cognition rather than its source.
Jones, who helped write the paper claiming attention is all you need, no longer thinks it is. His reason is efficiency: a person converses fluently without having read the internet even once and without burning comparable energy, and he says the current paradigm will not solve that, that one seems to have to jump to something very different. When one of the authors of the founding paper says the foundation is not enough, that is the most informative sentence in the whole story.
Was the transformer invented to build chatbots?
- It may seem that attention was designed for general intelligence. In fact: it was invented in 2014 to stop translations from degrading as sentences got longer, and the transformer took it and discarded the rest
- It may seem that the model is told what words mean. In fact: the associations are learned from paired examples during training and stored in the weights, with no one specifying that animals get tired
- It may seem that if attention gives machines language, it must be how human thought works. In fact: when people think, more than the brain's language networks are active, and thought draws on experience and memory outside them
Verdict: One operation, invented to fix long sentences, turned out to be enough to carry the field, and one of its authors now says it is not enough to finish the job.
Based on reporting from Quanta Magazine. This is an independent explainer, written in our own words with AI assistance; Quanta Magazine has not reviewed or endorsed it. Read the original for the full details.