What did the Attention Is All You Need paper introduce?
The 2017 Google paper Attention Is All You Need introduced the Transformer, the architecture behind ChatGPT, Claude, Gemini and AI search.
In short. The paper introduced the Transformer, a neural network architecture based on self-attention. Eight Google researchers submitted it in June 2017 as a method for machine translation. The Transformer processes all words of a sequence in parallel, which lets it train at large scale. It became the basis of the models behind ChatGPT, Claude, Gemini and Google AI Overviews.
On this page 14 sections
The evidence
Attention Is All You Need was written by eight researchers at Google and submitted to arXiv on June 12, 2017.1
1Google ResearchGoogle Research publication page. Submission date from arXiv, as listed by Wikipedia.Google began to apply BERT, a Transformer model, to English-language search queries in the US in October 2019. Microsoft says Bing had used large Transformer models since April 2019.19
19GoogleGoogle, Oct 25, 2019. Microsoft Azure Blog, Nov 18, 2019.LaMDA models had up to 137 billion parameters and were pre-trained on 1.56 trillion words of public dialog data and web text.8
8Google ResearchLaMDA paper, Google, Jan 2022.ChatGPT search, Claude, Google AI Overviews, Microsoft Copilot and Perplexity all run on the Transformer, an architecture introduced in one 2017 paper, so they share a basic way of reading your pages. Transformers were ranking web results before any of those products existed, and Bing applied them to every search query by November 2019. "Attention Is All You Need" is a research paper by eight researchers at Google Brain and Google Research.1 According to Wikipedia's article on the paper, it was submitted to arXiv on June 12, 2017. It introduced the Transformer, a neural network architecture based on attention, and tested it on machine translation.2 The Transformer went on to become the architecture of most large language models, including the models behind ChatGPT, Claude, Gemini, Google AI Overviews, Microsoft Copilot and Perplexity.
The authors are Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan Gomez, Lukasz Kaiser and Illia Polosukhin.1 All eight later left Google to join other companies or to found their own.2
#Language models before the Transformer
Older models could not train at the scale today's assistants need. The Transformer solved that problem. Before 2017, most natural language processing used recurrent neural networks (RNNs). An RNN reads text one token at a time, left to right, and feeds the output of each step into the next step.
Each step of an RNN depends on the step before it, so training cannot be split across many processors at once. That put a practical limit on how large RNNs could grow.
Long sequences caused a second problem. Information from early tokens faded as an RNN read on, so RNNs had trouble with long-range dependencies: the links between words that are far apart in a text.
#Self-attention
Self-attention lets a model weigh every word of a passage against every other word at once, and it is the reason these models can be trained at today's scale. The paper removed recurrence. Its abstract proposes "a new simple network architecture, the Transformer, based solely on attention mechanisms, dispensing with recurrence and convolutions entirely."1
Self-attention processes all tokens of a sequence at the same time. For each token, the model computes three vectors: a query (what the token looks for), a key (what the token offers to other tokens) and a value (the information it passes on). The dot products of queries and keys set how much each token attends to every other token. The model computes these attention weights for all tokens in one parallel operation.
A Transformer relates any two tokens in one step, whatever the distance between them. The word "it" can attend directly to "the animal" fourteen words earlier. An RNN had to carry that relationship through fourteen sequential steps.
Multi-head attention runs several attention operations at once. Each head can learn a different kind of relationship, such as syntax or coreference. The model combines the outputs of the heads into one representation of each token.
Because these operations run in parallel, a Transformer can spread its training across far more hardware than an RNN can. Parallel training is the main reason most modern large language models use the architecture.2
#BERT in Google Search
Transformer models have been part of how Google and Bing read queries since 2019, well before the chat products arrived. Google researchers published BERT (Bidirectional Encoder Representations from Transformers) in October 2018, in the paper BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding.3 BERT uses only the encoder half of the original Transformer. The encoder builds representations of text for understanding tasks. BERT does not generate text.
Earlier language models read text in one direction. According to Wikipedia's article on BERT, BERT uses the words on both sides of each token at the same time.4 This helps it tell "bank" near "river" from "bank" near "deposit".
On October 25, 2019, Google announced in Understanding searches better than ever before that it had started to apply BERT models to ranking and featured snippets in Search. Google said BERT would help Search better understand one in 10 searches in the US in English.19
Bing used Transformer models on live queries before Google did. In its post on Bing's largest improvement in search experience, published November 18, 2019, Microsoft said Bing had used large Transformer models since April 2019, and by November it applied them to every Bing search query globally.20 Transformer models were part of web search three years before the chat products of 2022 and 2023.
#Scaling laws
The scaling laws paper gave AI labs a reason to build larger models and train them on more data. In January 2020, OpenAI researchers published "Scaling Laws for Neural Language Models".5 The paper found that the loss of a language model falls as a power law of three variables: model size, dataset size and the compute used for training. Some of the trends held across more than seven orders of magnitude.
Dario Amodei is one of the authors of the paper.5 He co-founded Anthropic in 2021, according to Wikipedia's article on Anthropic.6
#LaMDA
Google's LaMDA paper named factual grounding as a problem that scale alone did not solve, and grounding in retrieved sources is the step that puts web pages into AI answers. Google announced LaMDA (Language Model for Dialogue Applications) at Google I/O on May 18, 2021, according to Wikipedia's article on LaMDA.7 The research paper, LaMDA: Language Models for Dialog Applications, followed in January 2022. It describes Transformer models with up to 137 billion parameters, pre-trained on 1.56 trillion words of public dialog data and web text.8
The paper names two challenges that scaling alone did not solve: safety and factual grounding. Safety means responses consistent with human values, without harmful suggestions or unfair bias. Factual grounding means the model consults external sources, such as an information retrieval system, so that its responses are based on known sources.8
In June 2022, Google engineer Blake Lemoine claimed that LaMDA had become sentient. Google rejected the claim and fired Lemoine in July 2022. The internal controversy led Google executives to decide against a public release of LaMDA, which the company had been considering.7
#ChatGPT
ChatGPT's growth set off the run of launches in 2023 that put AI answers into search. OpenAI launched ChatGPT on November 30, 2022, with the post Introducing ChatGPT. It was a GPT-3.5 model fine-tuned with reinforcement learning from human feedback (RLHF), offered through a chat interface.9
In RLHF, human labelers rank model outputs, and the model is fine-tuned on that feedback. OpenAI's InstructGPT work, Aligning language models to follow instructions, published in January 2022, showed the effect. Labelers preferred outputs from a 1.3 billion parameter InstructGPT model to outputs from the 175 billion parameter GPT-3, a model with more than 100 times as many parameters.10
ChatGPT gained one million users in five days and 100 million users in two months, according to Wikipedia's article on ChatGPT. It was the fastest-growing internet application in history until Meta released Threads in July 2023.11 Google had a comparable conversational model in LaMDA and had not released it to the public.
#The new Bing and Bard
In the first AI search launches, Alphabet stock fell 8% after one error in a Bard demonstration. On January 23, 2023, Microsoft announced a multi-year investment of $10 billion in OpenAI, according to Wikipedia's article on Microsoft Copilot.12
On February 7, 2023, Microsoft launched a new Bing search engine and Edge browser with a chat feature, in its announcement of the new AI-powered Bing and Edge. Microsoft said the new Bing ran on "a new, next-generation OpenAI large language model that is more powerful than ChatGPT and customized specifically for search."13 On March 14, 2023, Microsoft confirmed that this model was GPT-4.12
According to Wikipedia's article on Google Gemini, Google announced Bard, a chatbot based on LaMDA, on February 6, 2023. At a Bard event in Paris on February 8, a demonstration showed Bard giving incorrect information about the James Webb Space Telescope. Alphabet stock fell 8% after the event, a loss of about $100 billion in market value.14
#Gemini
Gemini 1.0 was Google's first model trained from the start on more than text. Google combined Google Brain and DeepMind into one unit, Google DeepMind, in 2023, as Wikipedia's article on Google Brain records.15 Google announced Gemini 1.0 on December 6, 2023.14
According to Wikipedia's article on the Gemini language model, Gemini was trained from the start on text, images, audio, video and code. Earlier Google models had been trained mainly on text, with vision added later. Gemini 1.0 came in three sizes: Ultra for highly complex tasks, Pro for a wide range of tasks and Nano for tasks on a device.16
Gemini Ultra was the first language model to outperform human experts on MMLU, a test that covers 57 subjects, with a score of 90%.16 At launch, Google reported state-of-the-art results for Gemini on 30 of 32 benchmarks.
#Anthropic and Constitutional AI
Claude is trained differently from ChatGPT because Anthropic was founded on a disagreement about safety methods. Dario Amodei, Daniela Amodei and other former OpenAI researchers founded Anthropic in 2021. The founders disagreed with OpenAI about the pace of AI deployment and about whether RLHF was enough as a safety method.6
Anthropic trains Claude with Constitutional AI, a method set out in its post on Claude's constitution. In the first phase, the model critiques and revises its own responses against a written set of principles. In the second phase, reinforcement learning uses feedback from an AI model, based on the same principles, in place of human feedback.17 Anthropic released Claude in March 2023 with its post introducing Claude.18 RLHF and Constitutional AI compares the two alignment methods.
#The Transformer in AI search
ChatGPT search, Claude, Google AI Overviews, Microsoft Copilot and Perplexity all run on Transformer models, so they share a basic way of reading text. How large language models work describes it. The products launched within months of each other because of the events of 2022 and 2023, as the AI search timeline shows. Differences in alignment account for some of the differences in how the models answer.
#Timeline
| Date | Event |
|---|---|
| Jun 12, 2017 | Attention Is All You Need submitted to arXiv |
| Oct 2018 | Google researchers publish BERT |
| Apr 2019 | Bing starts to use large Transformer models in search |
| Oct 25, 2019 | Google announces BERT in Search for English queries in the US |
| Jan 2020 | OpenAI publishes the scaling laws paper |
| May 18, 2021 | Google announces LaMDA at Google I/O |
| 2021 | Former OpenAI researchers found Anthropic |
| Jun 2022 | Blake Lemoine claims LaMDA is sentient |
| Nov 30, 2022 | OpenAI launches ChatGPT |
| Jan 23, 2023 | Microsoft announces a $10 billion investment in OpenAI |
| Feb 6, 2023 | Google announces Bard |
| Feb 7, 2023 | Microsoft launches the new Bing |
| Feb 8, 2023 | Bard demonstration error; Alphabet loses about $100 billion in market value |
| Mar 2023 | Anthropic releases Claude |
| Dec 6, 2023 | Google announces Gemini 1.0 |
Read next
LLMs
How do large language models work?
LLMs predict text one token at a time from what fits in their context window. Tokens, context window sizes and the lost-in-the-middle effect.
AI search
What is retrieval-augmented generation (RAG)?
RAG retrieves documents at query time and gives them to a language model to write a cited answer. How ChatGPT, Claude, Google, Bing and Perplexity use it.
Timeline
History of AI search, 2022 to 2026
A dated account of AI search from the launch of ChatGPT on November 30, 2022 to 2026: model releases, search products and retrieval changes.
Questions
Who wrote Attention Is All You Need?
Eight researchers at Google Brain and Google Research: Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan Gomez, Lukasz Kaiser and Illia Polosukhin. All eight later left Google.
What is self-attention?
Self-attention is the mechanism at the center of the Transformer. For each word, the model calculates how much every other word in the passage should affect its meaning. The model uses these weights to represent each word in its context.
Why does the Transformer paper matter for search?
The Transformer is the architecture of the models behind ChatGPT, Claude, Gemini, Google AI Overviews and Perplexity. How these models read and weight text affects which passages AI search retrieves and cites.
Where can I read the original paper?
The paper is free on arXiv as paper 1706.03762. The abstract and introduction can be read without a machine learning background.
Notes
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
About this page
Researched and reviewed by Promptly Found. Reviewed Nov 20, 2026. Next review due Feb 2027.
Cite this page
Promptly Found. (2026, November 20). What did the Attention Is All You Need paper introduce? https://promptlyfound.com/llms/attention-is-all-you-need
Revisions 3
- Removed the claim that Google's BERT launch was the first use of a Transformer on live search queries, since Microsoft says Bing had used Transformer models since April 2019.
- Reviewed, rewritten for clarity and moved to the new site. Corrected the Bard announcement date and the model behind the new Bing.
- First published.