Neural machine translation (NMT)

Neural machine translation is machine translation performed by a neural network that reads a whole source sentence and generates its translation one token at a time, the approach behind modern translation services.

A neural machine translation system usually has two halves. An encoder turns the source sentence into a numerical representation. A decoder then writes the translation one token at a time, each choice depending on that representation and on the words it has already produced, until it emits an end-of-sentence token. The whole network is trained on pairs of sentences and their human translations, adjusting itself to make the human version more likely. Earlier statistical systems were assembled from separately built parts; here one model learns the entire task.

Small experiments go back to 1987, but statistical systems remained the benchmark until the mid-2010s. In September 2014 Ilya Sutskever, Oriol Vinyals and Quoc Le showed that a deep LSTM network could translate English into French with a BLEU score of 34.8 on a standard test set, ahead of a phrase-based statistical baseline at 33.3. Their design squeezed each sentence into a single fixed-length vector. Days earlier Dzmitry Bahdanau, Kyunghyun Cho and Yoshua Bengio proposed letting the decoder look back over the source sentence and focus on the relevant words for each word it writes. That idea, attention, became central to the field.

Production systems followed quickly. Baidu launched a large-scale system in 2015. On September 27, 2016 Google announced that its neural system was handling all Chinese to English translation in Google Translate, about 18 million translations a day, and reported that human raters found it cut translation errors by 55% to 85% on several major language pairs compared with its older phrase-based system. In June 2017 the transformer was introduced in a translation paper, Attention Is All You Need, which reported 28.4 BLEU on English to German and 41.8 on English to French after training for 3.5 days on eight GPUs. The transformer has dominated since.

Large language models blurred the line further. GPT-3 was shown in 2020 to work as a translation system, and evaluations in 2023 found GPT-3.5 translated well without task-specific training, especially between widely used languages. Weak spots remain: languages with little training data, specialist domains, and a tendency towards overly literal translation. Google's 2016 announcement itself listed errors a human would avoid, such as dropped words, mistranslated names and rare terms, and sentences translated without regard to the rest of the paragraph.

When a news story says a translation app uses AI, it almost always means neural machine translation. Quality varies a great deal by language pair and subject, so a good result in French says little about performance in a language with far less training data.

Common questions

How is neural machine translation different from statistical machine translation?

Statistical systems combined separately built components, such as tables of phrase translations and a model of likely word sequences, tuned together. Neural machine translation trains one network end to end to map a source sentence to a target sentence. The neural approach produces more fluent output and replaced statistical systems at major providers from 2016 onwards.

What is attention in neural machine translation?

Attention lets the decoder look back at every part of the source sentence while it writes each word of the translation, weighting the parts that matter most at that moment. It was proposed by Bahdanau, Cho and Bengio in 2014 to fix the poor handling of long sentences in earlier designs. The transformer, introduced in 2017, is built almost entirely from attention.

When did Google Translate switch to neural machine translation?

Google announced on September 27, 2016 that its Google Neural Machine Translation system was handling all Chinese to English translations in Google Translate's web and mobile apps.

Do large language models count as neural machine translation?

They are neural networks and can translate, so in a broad sense yes, though the term usually refers to systems trained specifically for translation. Research since 2020 has shown general models such as GPT-3 and GPT-3.5 producing strong translations, particularly for widely spoken languages.

Finding more

Search for "sequence to sequence translation", "attention mechanism Bahdanau" or "WMT findings" to follow the technical history and current results. The best sources are the original papers on arXiv, the yearly findings of the WMT machine translation conference, and research blogs from the companies that run translation services. Be careful with headline error-reduction figures, which depend on the test sentences and language pairs chosen.

Working out what this means for your business?

Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.