# 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.

Canonical: https://promptlyfound.com/llms/attention-is-all-you-need
Updated: 2026-11-20

## Short answer

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.

## Key findings

- Attention Is All You Need was written by eight researchers at Google and submitted to arXiv on June 12, 2017. [1]
- 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]
- 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]
- Labelers preferred outputs from a 1.3 billion parameter InstructGPT model, trained with RLHF, to outputs from the 175 billion parameter GPT-3. [10]
- Alphabet stock fell 8%, about $100 billion in market value, after the Bard launch event on February 8, 2023. [14]

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](https://research.google/pubs/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](https://en.wikipedia.org/wiki/Attention_Is_All_You_Need), 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](https://research.google/pubs/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](https://en.wikipedia.org/wiki/BERT_(language_model)), 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](https://blog.google/products/search/search-language-understanding-bert/) 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](https://azure.microsoft.com/en-us/blog/bing-delivers-its-largest-improvement-in-search-experience-using-azure-gpus/), 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](https://openai.com/index/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](https://en.wikipedia.org/wiki/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](https://en.wikipedia.org/wiki/LaMDA).[7] The research paper, [LaMDA: Language Models for Dialog Applications](https://research.google/pubs/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](https://openai.com/index/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](https://openai.com/index/instruction-following), 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](https://en.wikipedia.org/wiki/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](https://en.wikipedia.org/wiki/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](https://blogs.microsoft.com/blog/2023/02/07/reinventing-search-with-a-new-ai-powered-microsoft-bing-and-edge-your-copilot-for-the-web). 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](https://en.wikipedia.org/wiki/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](https://en.wikipedia.org/wiki/Google_Brain) records.[15] Google announced Gemini 1.0 on December 6, 2023.[14]

According to [Wikipedia's article on the Gemini language model](https://en.wikipedia.org/wiki/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](https://anthropic.com/news/claudes-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](https://anthropic.com/news/introducing-claude).[18] [RLHF and Constitutional AI](https://promptlyfound.com/llms/rlhf-vs-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](https://promptlyfound.com/llms/how-llms-work) describes it. The products launched within months of each other because of the events of 2022 and 2023, as the [AI search timeline](https://promptlyfound.com/timeline/history) shows. Differences in alignment account for some of the differences in how the models answer.

## Timeline

  <thead><tr><th scope="col">Date</th><th scope="col">Event</th></tr></thead>
  <tbody>
    <tr><th scope="row">Jun 12, 2017</th><td>Attention Is All You Need submitted to arXiv</td></tr>
    <tr><th scope="row">Oct 2018</th><td>Google researchers publish BERT</td></tr>
    <tr><th scope="row">Apr 2019</th><td>Bing starts to use large Transformer models in search</td></tr>
    <tr><th scope="row">Oct 25, 2019</th><td>Google announces BERT in Search for English queries in the US</td></tr>
    <tr><th scope="row">Jan 2020</th><td>OpenAI publishes the scaling laws paper</td></tr>
    <tr><th scope="row">May 18, 2021</th><td>Google announces LaMDA at Google I/O</td></tr>
    <tr><th scope="row">2021</th><td>Former OpenAI researchers found Anthropic</td></tr>
    <tr><th scope="row">Jun 2022</th><td>Blake Lemoine claims LaMDA is sentient</td></tr>
    <tr><th scope="row">Nov 30, 2022</th><td>OpenAI launches ChatGPT</td></tr>
    <tr><th scope="row">Jan 23, 2023</th><td>Microsoft announces a $10 billion investment in OpenAI</td></tr>
    <tr><th scope="row">Feb 6, 2023</th><td>Google announces Bard</td></tr>
    <tr><th scope="row">Feb 7, 2023</th><td>Microsoft launches the new Bing</td></tr>
    <tr><th scope="row">Feb 8, 2023</th><td>Bard demonstration error; Alphabet loses about $100 billion in market value</td></tr>
    <tr><th scope="row">Mar 2023</th><td>Anthropic releases Claude</td></tr>
    <tr><th scope="row">Dec 6, 2023</th><td>Google announces Gemini 1.0</td></tr>
  </tbody>

## Sources

1. Attention Is All You Need. Google Research, 2017-06-12. https://research.google/pubs/attention-is-all-you-need
2. Attention Is All You Need. Wikipedia. https://en.wikipedia.org/wiki/Attention_Is_All_You_Need
3. BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. Google Research. https://research.google/pubs/bert-pre-training-of-deep-bidirectional-transformers-for-language-understanding
4. BERT (language model). Wikipedia. https://en.wikipedia.org/wiki/BERT_(language_model)
5. Scaling laws for neural language models. OpenAI. https://openai.com/index/scaling-laws-for-neural-language-models
6. Anthropic. Wikipedia. https://en.wikipedia.org/wiki/Anthropic
7. LaMDA. Wikipedia. https://en.wikipedia.org/wiki/LaMDA
8. LaMDA: Language Models for Dialog Applications. Google Research. https://research.google/pubs/lamda-language-models-for-dialog-applications
9. Introducing ChatGPT. OpenAI, 2022-11-30. https://openai.com/index/chatgpt
10. Aligning language models to follow instructions. OpenAI. https://openai.com/index/instruction-following
11. ChatGPT. Wikipedia. https://en.wikipedia.org/wiki/ChatGPT
12. Microsoft Copilot. Wikipedia. https://en.wikipedia.org/wiki/Microsoft_Copilot
13. Reinventing search with a new AI-powered Microsoft Bing and Edge, your copilot for the web. Microsoft, 2023-02-07. https://blogs.microsoft.com/blog/2023/02/07/reinventing-search-with-a-new-ai-powered-microsoft-bing-and-edge-your-copilot-for-the-web
14. Google Gemini. Wikipedia. https://en.wikipedia.org/wiki/Google_Gemini
15. Google Brain. Wikipedia. https://en.wikipedia.org/wiki/Google_Brain
16. Gemini (language model). Wikipedia. https://en.wikipedia.org/wiki/Gemini_(language_model)
17. Claude's constitution. Anthropic, 2023-05-09. https://anthropic.com/news/claudes-constitution
18. Introducing Claude. Anthropic. https://anthropic.com/news/introducing-claude
19. Understanding searches better than ever before. Google, 2019-10-25. https://blog.google/products/search/search-language-understanding-bert/
20. Bing delivers its largest improvement in search experience using Azure GPUs. Microsoft Azure Blog, 2019-11-18. https://azure.microsoft.com/en-us/blog/bing-delivers-its-largest-improvement-in-search-experience-using-azure-gpus/

---

This is a plain-text copy of https://promptlyfound.com/llms/attention-is-all-you-need from Promptly Found. The web page is the canonical version and includes the charts.
