Neural machine translation
What Is Neural Machine Translation?
Neural machine translation is an approach to machine translation in which a single neural network, trained end to end on parallel text, maps a sentence in a source language directly to a sentence in a target language. It replaced the phrase-based statistical paradigm that had dominated the field since the 1990s, in which a translation model, a language model, a reordering model, and a decoder were built separately and combined through tuned feature weights. The neural formulation collapses those components into one model whose parameters are all learned by minimizing a single objective, usually the cross-entropy of the reference translation under the model.
The core formulation is conditional sequence modeling. An encoder reads the source sentence and produces a sequence of continuous representations, and a decoder generates target tokens one at a time, each conditioned on the source representation and on the tokens already produced. Because vocabularies are open-ended, text is segmented into subword units by byte pair encoding or a unigram language model, which keeps the vocabulary at a fixed size while allowing rare words and morphological variants to be composed from pieces.
Attention and the Encoder-Decoder Model
The first encoder-decoder translation models compressed an entire source sentence into a single fixed-length vector, which degraded badly as sentences grew longer. The 2014 paper Neural Machine Translation by Jointly Learning to Align and Translate removed that bottleneck by letting the decoder compute a weighted sum over all encoder states at each output step, with the weights produced by a small learned alignment function. The weights function as a soft alignment between source and target positions, recovering something the phrase-based systems had modeled explicitly, but learned jointly with everything else. Attention became the standard component of every subsequent architecture.
Transformer Architectures
Recurrent encoders process tokens in sequence, which limits parallelism during training. The architecture introduced in Attention Is All You Need dispensed with recurrence and convolution entirely, using stacked self-attention and position-wise feed-forward layers with sinusoidal or learned positional encodings. Every source position attends to every other in one operation, so a full sentence is processed in parallel, and training time on large corpora fell sharply. The paper reported 28.4 BLEU on the WMT 2014 English-to-German task, above the previous best including ensembles. Practical systems add label smoothing, warmup learning rate schedules, beam search with length normalization at inference, and quantization or distillation for deployment. Decoder-only language models trained on multilingual text now perform translation as one task among many, but the encoder-decoder transformer remains the standard dedicated architecture.
Data, Evaluation, and Low-Resource Translation
Model quality tracks the quantity and cleanliness of parallel data, so corpus mining, deduplication, and filtering of misaligned pairs matter as much as architecture. Where parallel data is scarce, back-translation generates synthetic source sentences from monolingual target text, and multilingual models share parameters across many language pairs so that high-resource pairs support low-resource ones, sometimes enabling zero-shot translation between pairs never seen together in training. Progress is tracked through annual shared tasks: the Conference on Machine Translation runs common test sets with both automatic scoring and human evaluation. BLEU remains the most reported automatic metric, though its weak correlation with human judgment at high quality levels has pushed the field toward learned metrics and direct assessment by professional translators.
Applications
Neural machine translation is used across many settings, including:
- Web and document translation services
- Localization pipelines for software, product catalogs, and technical documentation
- Speech-to-speech and subtitle translation
- Cross-lingual information retrieval and search
- Multilingual customer support and content moderation
- Preservation and revitalization work for low-resource languages