- On 12 June 2017, eight researchers working at Google shared a paper called "Attention Is All You Need", which introduced the Transformer [1].
- The Transformer reads all the words in a sentence at once and works out how each word relates to the others, instead of reading word by word [1][3].
- That made it faster to train and better at translation tests than earlier systems [1][2][3].
- Within about a year, OpenAI's GPT and Google's BERT were built on it, and the GPT behind ChatGPT takes its name from it [5][6][7][8].
In 2017 the best computer translation systems mostly used recurrent neural networks, programs that read a sentence in order, one word after another [1][3]. That works, but it is slow, and it gets harder when the word that explains another word sits far away in the sentence [3].
Google's own blog post about the work gave a simple example. In the sentence "I arrived at the bank after crossing the river", the word "bank" could mean a place that keeps money or the side of a river. A system reading word by word only learns which one is meant after it reaches "river" at the end [3]. Graphics chips and Google's own AI chips are very good at doing many small sums at the same time, but a step by step reader cannot use that well [3].
The eight authors were Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Łukasz Kaiser and Illia Polosukhin [1][2][3]. The paper lists Vaswani, Shazeer and Kaiser at Google Brain, and Parmar, Uszkoreit, Jones and Polosukhin at Google Research. Gomez is listed at the University of Toronto, with a note that his work was done at Google Brain, and Polosukhin's note says his work was done while at Google Research [1]. Gomez was a University of Toronto student on an internship at Google Brain at the time [10][11].
The paper credits Uszkoreit with proposing to replace the step by step networks with self-attention, and Shazeer with proposing key parts of how the attention works [1]. Others built the first models, designed key parts and wrote the code that made the experiments fast [1]. The paper treats it as a shared effort. Every name carries the same footnote: "Equal contribution. Listing order is random." [1]
They submitted the work to NIPS, a major AI research conference now called NeurIPS [2][4]. The first version went up on arXiv, a free public website for research papers, on 12 June 2017 [1]. The conference itself took place from 4 to 9 December 2017 in Long Beach, California, and the paper appears in its proceedings [2][4].
The paper describes the Transformer as a model "based solely on attention mechanisms, dispensing with recurrence and convolutions entirely" [1]. In plain words, it drops the step by step reading and uses one main idea, attention [1][3].
For each word, the model compares it with every other word in the sentence and gives each one a score for how much it matters [3]. Back in the river example, "river" gets a high score when the model works out what "bank" means, so it can settle the meaning in a single step [3]. Because every word can be handled at the same time, the work suits modern chips much better [1][3].
The results were strong. On a standard English to German translation test, the Transformer beat the best results published until then, including combinations of several models, and on English to French it beat every earlier single model [1][2][3]. The exact scores differ a little between versions of the paper, because the authors updated it after the first release [1][2]. The training cost was modest. On one machine with eight NVIDIA P100 graphics chips, the smaller model trained in about 12 hours and the bigger one in about three and a half days [1].
The team also shared its code openly, in a library called Tensor2Tensor [1][3]. At the end of the paper they wrote, "We are excited about the future of attention-based models", and said they planned to try the idea beyond text, on images, audio and video [1][3].
Others picked up the idea quickly. In June 2018 OpenAI shared a model that combined two ideas, "transformers and unsupervised pre-training": first let a Transformer read a very large amount of text on its own, then fine tune it for specific tasks [5][12]. This became the first of OpenAI's GPT models [5][8].
In October 2018 Google researchers introduced BERT, short for Bidirectional Encoder Representations from Transformers, and soon shared it as open source. Google wrote that the Transformer "gave us the foundation we needed to make BERT successful" [6][7].
When OpenAI released ChatGPT on 30 November 2022, it was fine tuned from a model in the GPT-3.5 series [9]. GPT stands for Generative Pre-trained Transformer [8]. So the chat assistants many of us now use at work trace straight back to that June 2017 paper [5][8][9].
We do not need to understand attention scores to use the tools built on them. But a little understanding helps us use them well. A Transformer is very good at seeing how words relate to each other across a whole passage. That is why today's tools are strong at summarising long documents, drafting replies, translating and finding the right passage in a pile of files.
- Context is the input that matters. Attention works on what we give it. Clear, complete instructions and the right documents usually improve results more than clever wording.
- Language work is the natural first step. Translation was the Transformer's first test. Tasks like answering common customer questions, summarising reports or drafting documents in Thai and English are a sensible place to start, with a person checking the output.
- Open sharing speeds everyone up. The authors published their paper and code for free, and others built on it within a year. Sharing what we learn inside the company, even from a small trial, helps the next team start faster.
- Good teams mix strengths. Eight people with different skills, including an intern, built this together. AI projects inside a business also go better when people who know the work sit with people who know the tools.
The lesson of the Transformer is that a simple idea, shared openly and tested honestly, can travel much further than its authors planned. Paying attention to the whole context, rather than one word at a time, is good advice for people too.
- arXiv (Cornell University), Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Łukasz Kaiser and Illia Polosukhin, Attention Is All You Need, arXiv:1706.03762 (v1 12 June 2017; latest version 2 August 2023)
- NeurIPS Proceedings, Advances in Neural Information Processing Systems 30 (NIPS 2017), Attention is All you Need (2017)
- Google Research Blog, Jakob Uszkoreit, Transformer: A Novel Neural Network Architecture for Language Understanding (31 August 2017)
- NeurIPS, NIPS 2017 conference page (4 to 9 December 2017, Long Beach Convention Center)
- OpenAI, Improving Language Understanding with Unsupervised Learning (11 June 2018, archived copy)
- Google Research Blog, Jacob Devlin and Ming-Wei Chang, Open Sourcing BERT: State-of-the-Art Pre-training for Natural Language Processing (2 November 2018)
- arXiv (Cornell University), Jacob Devlin, Ming-Wei Chang, Kenton Lee and Kristina Toutanova, BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding, arXiv:1810.04805 (11 October 2018)
- MIT Technology Review, Will Douglas Heaven, ChatGPT is everywhere. Here's where it came from (8 February 2023)
- OpenAI, Introducing ChatGPT (30 November 2022; first published as ChatGPT: Optimizing Language Models for Dialogue)
- The Globe and Mail, Lost in translation: Cohere's AI software wrote parts of this story. But is it ready for the world? (Report on Business magazine)
- University of Toronto, Government Relations Office, U of T research on AI, global health among 25 most cited of the 21st century: Nature
- OpenAI, Alec Radford, Karthik Narasimhan, Tim Salimans and Ilya Sutskever, Improving Language Understanding by Generative Pre-Training (June 2018, paper PDF)