Profile

Settings

Loading…

← Papers

Help

FAQ

Which features require signing in?

You can read the commentary, paper info, Model Structure and related papers of public papers without signing in. Sign in to manage your account or contact us about your inquiries.

Can I upload a PDF file?

Upload papers with an arXiv or DOI link; the commentary is public to everyone. Papers whose source and terms of use can't be verified, so the commentary can't be made public, can't be uploaded. Uploading PDF files and keeping papers private are for subscribers only, and a paper uploaded as a file is saved as private only. Searching for official info by title runs only when you press the button.

Are the figures and AI commentary accurate?

Figures come only from the original paper, and only those whose terms of use are verified are shown. The commentary is written by AI and may be wrong. Check important claims, numbers and figure context against the evidence in the original paper.

I want to report a copyright issue.

Terms of use and the source of the original paper are on the Paper info tab. If there's a problem, choose "Paper content, figures and copyright" under Contact us and send the paper link, the part in question, and evidence that you hold the rights. Receiving your report doesn't confirm any rights or remove anything right away. You can see the result of the review under My inquiries.

I forgot my password.

If you signed up with email, use Forgot password in the sign-in window to reset it with your verified email. If you signed up with Google, Naver or Kakao, change your password with that service.

What should I include in an inquiry?

Tell us which screen you were on and what you were doing when the problem happened, along with the paper link. Don't include personal information such as passwords, API keys, verification codes or phone numbers. Inquiries and replies are stored in Refivu and you can see them under My inquiries.

How do I delete my account?

In Settings, under My account, press Delete account. Review what will be deleted and complete identity verification to delete your account. For other requests, choose "Account" under Contact us.

Paper commentary

Sequence to Sequence Learning with Neural Networks

  • Problem Fixed-size input and output vectors cannot represent sentences whose lengths vary, which blocks direct sequence-to-sequence mapping with deep networks.
  • Method Two LSTMs: an encoder reads the reversed source sentence into a fixed-dimensional vector, and a decoder generates target words from that vector. Training maximizes the log probability of correct translations, and decoding uses a left-to-right beam search.
  • Results An ensemble of five reversed-input LSTMs reached 34.81 BLEU on the WMT'14 English to French test set with beam size 12, against 33.30 for the SMT baseline.

Why fixed-size vectors fall short for sequences

Deep networks work well when inputs and targets can be encoded as vectors of fixed size, but many important tasks have sequences whose lengths are not known beforehand. Speech recognition, machine translation and question answering all fall into this group, since each maps a variable-length sequence to another variable-length sequence.

The study asks whether one general recurrent architecture, the LSTM, can learn this mapping directly from data, with little built-in knowledge of how the sequences are structured. The test case is English to French translation on the WMT'14 data.

Earlier recurrent formulations work well when the alignment between inputs and outputs is known in advance, and they struggle when lengths differ and the relation between positions is non-monotonic. Connectionist sequence classification handles sequences but assumes a monotonic alignment, and attention-based models focus on different input parts without fixing a single vector for the whole input.

Encoder and decoder LSTMs

The first LSTM reads the input one word at a time, and its last hidden state becomes a fixed-dimensional vector v that summarizes the whole input. The second LSTM starts from that vector as its initial hidden state and works as a language model over the target words, so the output is conditioned on the input.

The model factorizes the probability of the output sentence into one term per output position, each conditioned on v and on the previously generated words. \[ p(y_1,\dots,y_{T'}\mid x_1,\dots,x_T)=\prod_{t=1}^{T'} p(y_t\mid v,\,y_1,\dots,y_{t-1}) \] Each factor is a softmax over the whole vocabulary, and the end-of-sentence symbol lets the model assign probability to outputs of every length.

The model uses two separate LSTMs, one for the input and one for the output, because this adds parameters at little extra computation and lets the same design train on several language pairs. Each sentence representation is an 8000-dimensional vector, since the four-layer LSTM with 1000 cells per layer carries 8000 real numbers.

The input words are fed in reverse order, so the sentence a, b, c is paired with the translation alpha, beta, gamma in the order c, b, a. In this order the first source word sits next to the first target word in the training sequence, which gives gradient-based learning an easier path between the two.

Effect of stacking layers

The authors found deep LSTMs clearly better than shallow ones, and each added layer lowered perplexity by nearly 10%. They suggest the gain may come from the much larger hidden state of the deeper stacks.

The final configuration uses four layers, which the authors chose on the basis of this result.

Why reversing the source words helps

On the test set, reversing the input words lowered perplexity from 5.8 to 4.7 and raised the BLEU score of decoded translations from 25.9 to 30.6. The authors list this reversal as one of the key technical contributions of the work.

Without reversal, each source word sits far from its counterpart in the target, so the problem has a large minimal time lag. Reversal keeps the average distance between corresponding words unchanged, but the first source words now lie next to the first target words, which shortens the minimal time lag at the start of each sentence.

The authors say they lack a complete explanation of the effect, and their account rests on the introduction of many short-term dependencies. They first expected reversal to affect only the confidence of predictions, but reversed-input LSTMs also did much better on long sentences, which the authors read as better use of memory.

Only the source side is reversed, and the target sentences keep their order.

Training and beam search decoding

Training maximizes the average log probability of the correct translation given its source sentence, taken over the training pairs. Parameters start from a uniform distribution between -0.08 and 0.08.

The optimizer is stochastic gradient descent without momentum, with a fixed learning rate of 0.7 for the first five epochs, after which the rate is halved every half epoch, for 7.5 epochs in total. Each batch has 128 sequences.

Gradients can explode even though LSTMs resist vanishing gradients, so the gradient is rescaled whenever its norm exceeds 5. The norm s is computed on the gradient divided by 128, and when s is above 5 the gradient is multiplied by 5 divided by s.

Sentences vary in length, and a random minibatch wastes computation on padding for its few long sentences, so batches group sentences of roughly equal length. This grouping gave a 2x speedup.

At run time, translations are found by a left-to-right beam search that keeps B partial hypotheses, extends each with every vocabulary word, and retains the B most likely ones. A hypothesis that appends the end-of-sentence symbol moves into the set of complete hypotheses, and the search is approximate.

Even a beam size of 1 gives good results, and a beam of size 2 captures most of the benefit of beam search.

For rescoring, the LSTM computes the log probability of every hypothesis in an SMT n-best list, and the final score is an even average of the SMT score and the LSTM score.

Parallel implementation and throughput

A single-GPU C++ implementation processes about 1,700 words per second, which was too slow for the study. The model was therefore spread over eight GPUs.

Each of the four LSTM layers runs on its own GPU and sends its activations to the next layer as soon as they are computed. The other four GPUs share the softmax, so each one multiplies by a 1000 × 20000 matrix.

With minibatches of 128, the parallel implementation reached 6,300 words per second across English and French. Training took about ten days with this implementation.

Direct translation results

The authors used cased BLEU computed with multi-bleu.pl on tokenized predictions and ground truth, which matches the evaluation of the baseline score of 33.3. Table 1 lists the test BLEU scores on ntst14: the SMT baseline reached 33.30, and Bahdanau et al. reached 28.45.

A single forward LSTM with beam size 12 reached 26.17, while a single reversed LSTM with beam size 12 reached 30.59.

Five reversed LSTMs at beam size 1 reached 33.00, at beam size 2 reached 34.50, and at beam size 12 reached 34.81. An ensemble of two reversed LSTMs at beam size 12 reached 33.27. The authors note that five LSTMs with beam size 2 are cheaper than a single LSTM with beam size 12.

The authors describe 34.81 as by far the best result achieved by direct translation with large neural networks. Translations were produced with an 80k-word target vocabulary, so every reference word outside it counts against the score.

Rescoring the SMT n-best lists

Rescoring the baseline 1000-best list with a single forward LSTM gives 35.61, with a single reversed LSTM 35.85, and with an ensemble of five reversed LSTMs 36.5. The authors report that the ensemble score improves the baseline by 3.2 BLEU points.

The best WMT'14 system, from Durrani et al., is listed at 37.0, and the authors state that the rescored ensemble is within 0.5 BLEU points of it. The authors' own evaluation of that system's predictions with multi-bleu.pl gave 37.0, while the score reported on statmt.org is 35.8.

The table also lists Cho et al. at 34.54 and an oracle rescoring of the baseline 1000-best lists at about 45.

Performance on long sentences and rare words

The authors were surprised that the LSTM did well on long sentences, and the left plot of Figure 3 shows BLEU against sentence length for the 34.8 system and the 33.3 baseline. No degradation appears on sentences with fewer than 35 words, and only a minor degradation appears on the longest sentences.

The right plot sorts test sentences by their average word frequency rank and compares the two systems on that ordering.

Table 3 gives examples of long translations produced by the LSTM beside the reference translations, and the authors judge them sensible.

Learned sentence representations

Figure 2 projects the LSTM hidden states, obtained after processing phrases, onto two principal components. Phrases with the same meaning fall into the same cluster, and the clusters are separated mainly by word order.

In the active and passive examples, the two clusters show similar internal structure, which the authors read as near invariance to the voice of the sentence. This evidence is qualitative, based on the projected examples shown.

Relation to earlier neural translation work

The simplest earlier use of neural networks in MT was rescoring the n-best lists of a strong baseline with a recurrent or feedforward language model. Later work added source-side information, such as a topic model or the alignment information of the decoder.

Kalchbrenner and Blunsom mapped sentences to vectors and back with convolutional networks, which lose the order of the words. Cho et al. used an LSTM-like RNN for the same mapping, but focused on integrating it into an SMT system, and Bahdanau et al. added an attention mechanism for direct translation.

Pouget-Abadie et al. addressed the memory problem of Cho et al. by translating pieces of the source, and the authors suspect that reversed source sentences would bring similar gains. Hermann and Blunsom use feedforward networks that map inputs and outputs to nearby points, but they cannot produce translations directly.

Limitations

The best direct score uses a vocabulary limited to 80,000 target words, and the BLEU score is penalized whenever a reference word falls outside it. The authors describe the underlying architecture as relatively unoptimized, with considerable room for improvement.

The explanation for why reversal helps is incomplete, and the authors did not train a standard RNN on the non-reversed translation problem. The claim that a standard RNN would train easily on reversed source sentences was not verified experimentally.

All reported experiments use WMT'14 English to French, and the authors suggest the approach may work on other sequence problems with enough training data without testing this. Training the deep model took about ten days on the parallel implementation.

Paper info

Authors
Ilya Sutskever, Oriol Vinyals, Quoc V. Le
Venue
arXiv · Preprint
First published
2014-9-10
Added
2026-10-20
Updated
2014-12-14
Version
v3
arXiv
1409.3215
Category
cs.CL · cs.LG
Original paper terms
arXiv non-exclusive 1.0
What we show
Paper info and commentary

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

Quote from the paper

Ilya Sutskever, Oriol Vinyals, Quoc V. Le (2014). Sequence to Sequence Learning with Neural Networks. arXiv:1409.3215v3. https://arxiv.org/abs/1409.3215v3

BibTeX
@misc{sutskever2014sequence,
  title = {{Sequence to Sequence Learning with Neural Networks}},
  author = {Ilya Sutskever and Oriol Vinyals and Quoc V. Le},
  year = {2014},
  eprint = {1409.3215},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1409.3215v3}
}

See related papersBrowse other papers

Paper preview
Account security

Connect Google account

If you connect a Google account, you can sign in with it too.

Refivu

Delete account

Refivu
Refivu

Sign up