Neural translation: learning representations and alignments
神经机器翻译的发展
Follow changing translation constraints from noisy channels to recurrent encoders and attention.
neural-translation-historyThe problem in its time
A translator must preserve a message while changing its form. Replacing each word with a dictionary entry is not enough: languages arrange words differently, one word can have several meanings, and a correct translation can contain a different number of words. Neural translation grew around the problem of learning these relationships from examples.
Its history is not a clean handover from rules to statistics to neurons. A neural network is itself a statistical model, and useful systems have combined learned scores with search, dictionaries and other constraints. To understand a milestone, ask what was learned, what the decoder searched, and what the evaluation actually measured.
What the evidence establishes
Brown and colleagues’ 1990 paper formulated translation through a noisy-channel view: a candidate translation must both fit the observed source and be plausible in the target language. Its pilot had vocabulary and sentence-length restrictions. That is evidence for a particular statistical approach, not unrestricted translation. A Statistical Approach to Machine Translation
Bengio, Ducharme, Vincent and Jauvin’s 2003 neural language model learned distributed word representations together with prediction. It addressed language modeling rather than a complete translation system. Its relevance here is a mechanism for sharing information among word contexts instead of treating every observed word sequence as unrelated. A Neural Probabilistic Language Model
In 2014, Sutskever, Vinyals and Le used an LSTM encoder to map a source sequence into a fixed-dimensional vector and another LSTM to produce a target sequence. The source was reversed in their experiments; the target was not. The first arXiv submission was 10 September 2014, while the version read here is v3 of 14 December. Their neural reranking of candidates from a statistical system also shows that the approaches could cooperate. Sequence to Sequence Learning with Neural Networks
Bahdanau, Cho and Bengio’s work, first circulated in 2014 and presented at ICLR 2015, let the decoder construct a changing context from encoder annotations. It reduced the need to pack everything into one fixed context. These projects were contemporaneous; the order in a teaching chapter does not establish who influenced whom. Neural Machine Translation by Jointly Learning to Align and Translate (v7; first preprint 2014, ICLR 2015)
The 2017 Transformer built its encoder and decoder around attention rather than recurrence or convolution. Translation provided concrete evaluation tasks, but an architectural result on those tasks was not proof that all languages and domains were solved. Attention Is All You Need
Work through the idea
Work through an original, deliberately small attention example. Suppose three source positions have scalar annotations 2, 8 and 4. A decoder step gives them weights 0.1, 0.7 and 0.2. Real annotations are vectors; scalars make the weighted combination easy to inspect.
| Source position | Annotation | Weight | Contribution |
|---|---|---|---|
| 1 | 2 | 0.1 | 0.2 |
| 2 | 8 | 0.7 | 5.6 |
| 3 | 4 | 0.2 | 0.8 |
The weights sum to 1, and the context is 0.2 + 5.6 + 0.8 = 6.6. At the next output step, weights 0.6, 0.1 and 0.3 would produce 1.2 + 0.8 + 1.2 = 3.2 from the same annotations. The source has not changed; the mixture used while generating the next word has.
This calculation illustrates a flexible route to source information. It does not translate a sentence: there is no trained encoder, vocabulary or output distribution here. Nor does the largest weight prove that one source word caused the decision. The decoder state and learned representations also matter.
Now compare “the red car” with “the red bus.” Both are grammatical, but only one preserves a source that refers to a car. Fluency and adequacy are different tests. A system can improve one while failing the other, so inspect actual translations as well as aggregate scores.
Attribution and limits
A smooth chronology can hide changes in the task. A restricted vocabulary, a different test set, reranking an existing candidate list and generating translations directly are not interchangeable experimental conditions. Even the same metric needs a matching evaluation procedure before scores can be compared.
A fixed-vector encoder does not fail on every long sentence, and attention does not guarantee faithful translation. The original sequence-to-sequence paper reported useful long-sentence behavior under its conditions; “fixed context” identifies a design constraint, not an automatic failure theorem. Rare names, missing context and domain shifts remain questions to test rather than excuses to ignore errors.
These papers establish methods and reported experiments. They do not identify a single inventor of all neural translation or prove that every later product implements the same system.
Exercises with answers
1. Compute the first context.
6.6; the three weighted contributions are 0.2, 5.6 and 0.8.
2. What changes when the second context becomes 3.2?
The weights change; the three source annotations remain fixed.
3. Does source reversal require outputting the translation backward?
No. The cited experiment reversed source words, not target words.
4. Can a fluent sentence still be an incorrect translation?
Yes. Replacing car with bus can preserve grammar while changing the message.
Read the original sources
Read the noisy-channel paper for its restricted problem, the neural language model for shared representations, and the two 2014 papers for different ways of connecting encoder and decoder. Keep first-submission dates separate from the versions being read.
Continue with encoder–decoder, attention and Transformer. The historical question is how the constraints changed; the algorithm chapters show how to implement the mechanisms.
Make a prediction, then check
What is the first weighted context?
Learning objectives
- Explain which constraints representations and attention change.
- Separate fluency, adequacy and evaluation conditions.
Prerequisites & connections
This article can be used as an entry point.
Explore related knowledge →References
- A Statistical Approach to Machine Translation
Peter F. Brown; John Cocke; Stephen A. Della Pietra; Vincent J. Della Pietra; Fredrick Jelinek; John D. Lafferty; Robert L. Mercer; Paul S. Roossin · 1990 - A Neural Probabilistic Language Model
Yoshua Bengio; Réjean Ducharme; Pascal Vincent; Christian Jauvin · 2003 - Sequence to Sequence Learning with Neural Networks
Ilya Sutskever; Oriol Vinyals; Quoc V. Le · 2014 - Neural Machine Translation by Jointly Learning to Align and Translate (v7; first preprint 2014, ICLR 2015)
Dzmitry Bahdanau; Kyunghyun Cho; Yoshua Bengio · 2014 - Attention Is All You Need
Ashish Vaswani and coauthors · 2017
Version1 · Editorial status: Recorded technical checks completed
View technical check record (AI)
Codex · 2026-09-07 · Codex single-AI-author historical check: bounded source passages, contemporary disagreement versus later interpretation, hand-traced teaching examples, bilingual alignment. Not independent human or second-agent review; no historical program execution claimed.
- Single-AI-author historical check of bounded primary passages, chronology, attribution, claims versus later interpretation, and corresponding bilingual examples and exercises. No independent human or second-agent review; historical essays require no executable program.
- Hand-checked both weight sums and contexts 6.6/3.2; source reversal versus target order; toy numbers are not paper results.
- Compared all six bilingual sections, definitions, task boundaries, toy calculations, four exercises and citation versions; corrected catalogue IDs and pending routes before freezing. No wording filter altered equations, tags or code.
- Complete bilingual prose and corresponding exercises promoted with formal status and SHA binding. Algorithm tests read formal MDX; historical essays claim no executable program or computational tests.
Source locations checked:
- A Statistical Approach to Machine Translation · Reuse original 1990 paper framing and pilot vocabulary/length boundaries; no new benchmark comparison.
- A Neural Probabilistic Language Model · Reuse 2003 JMLR authors, abstract and representation mechanism; language model not complete translator.
- Sequence to Sequence Learning with Neural Networks · Read v3 PDF physical pages 1–2 and arXiv first-submission/version records; avoid claiming optimization guarantees from introductory rhetoric.
- Neural Machine Translation by Jointly Learning to Align and Translate (v7; first preprint 2014, ICLR 2015) · Reuse v7 section 3.1 and 2014/ICLR 2015 distinction; no claim of attention as causal explanation.
- Attention Is All You Need · Reuse original encoder/decoder architecture description and 2017 submission; no cross-protocol benchmark claims.
Related topics