Abstract
One paragraph that says what the paper builds, what it removes, and what it achieved. Every later section backs up one of its claims.
- Recurrence removed
- Convolutions removed
- Attention kept, and all that is needed
- 28.4 BLEU English to German, a new best score, ensembles includedTable 2, section 6.1
- 41.8 BLEU English to French, a new best for a single modelTable 2, section 6.1
- 3.5 days of training on eight GPUs for the big modelSection 5.2
Three building blocks of the translation models of 2017: recurrence and convolutions crossed out, attention kept. Below them the three results the abstract reports, each with the section or table that shows it: 28.4 BLEU from English to German, 41.8 BLEU from English to French, and 3.5 days of training on eight GPUs.
What this section says
The abstract makes four claims. The models that translated text best in 2017 read a sentence with recurrent or convolutional networks, with an encoder and a decoder, often joined by attention. The paper keeps the encoder, the decoder and the attention, and throws the rest away. The result, the Transformer, translates better than every earlier model, and trains faster because its work can be spread over many processors at once.
The two scores are BLEU, a number from 0 to 100 that counts how many words and phrases of a machine translation also appear in a human one (section 6.1 and chapter 19). Two points of BLEU was a large step in 2017. The last sentence adds a third task, English constituency parsing, to show the design is not only good at translation (section 6.3).
Daniel meets the result every day: the models behind the APIs he calls are descendants of this design, mostly its decoder half (section 3.1 and chapter 22 to come).
In the paper's words
“We propose a new simple network architecture, the Transformer, based solely on attention mechanisms, dispensing with recurrence and convolutions entirely.”
“Our model achieves 28.4 BLEU on the WMT 2014 English-to-German translation task, improving over the existing best results, including ensembles, by over 2 BLEU.”
Quoted from Vaswani et al., Attention Is All You Need, arXiv:1706.03762v7(opens in a new tab). The figures on this page are redrawn, not copied.
The notation
| Symbol | Meaning | In the paper | Our miniature |
|---|---|---|---|
| \(\text{BLEU}\) | how closely a translation matches a human one, from 0 to 100 | 28.4 (English to German), 41.8 (English to French) | 99.95 on our 805 held-out sentences, an easy task |
| \(\text{WMT 2014}\) | the standard translation test sets of 2014, a public benchmark | English–German and English–French | our own synthetic English–German sentences |
| \(\text{GPU}\) | a graphics card used for its many parallel processors | 8 for 3.5 days (big model) | none: one laptop processor, about 4 minutes |
Try it
The translation playground: the paper's design, built small, translates your English sentence into German with beam search and shows where each German word looked.
How our miniature differs
Our miniature is built exactly as the paper describes, only smaller: 244,800 weights against the paper's 65 million, trained for 239 seconds on a laptop instead of 12 hours on eight GPUs. On our simple sentences it reaches BLEU 99.95, which says the task is easy, not that it beats the paper's 28.4: the two numbers are measured on different test sets and cannot be compared.
Prepared in the Course by
Check yourself
Three questions a reader of this section should now be able to answer. The lab checks your answer against the paper and our models.
What goes
Which building blocks does the Transformer leave out entirely?
The English-to-German score
What BLEU score does the big Transformer reach on WMT 2014 English to German?
The main task
On which task does the abstract report its two BLEU scores?