Abstract
This work presents a general unsupervised learning method to improve the accuracy of sequence to sequence (seq2seq) models. In our method, the weights of the encoder and decoder of a seq2seq model are initialized with the pretrained weights of two language models and then fine-tuned with labeled data. We apply this method to challenging benchmarks in machine translation and abstractive summarization and find that it significantly improves the subsequent supervised models. Our main result is that the pretraining accelerates training and improves generalization of seq2seq models, achieving state-of-the-art results on the WMT English->German task, surpassing a range of methods using both phrase-based machine translation and neural machine translation. Our method achieves an improvement of 1.3 BLEU from the previous best models on both WMT'14 and WMT'15 English->German. On summarization, our method beats the supervised learning baseline.
Introduction
Deep learning models for sequence-to-sequence (seq2seq) tasks, such as machine translation and abstractive summarization, are notoriously data-hungry. While these models excel when provided with millions of labeled examples, they frequently overfit and perform poorly when supervised data is scarce. The primary challenge lies in the fact that labeled data (e.g., human-translated sentence pairs) is expensive and limited, whereas unlabeled monolingual text is virtually infinite. This research proposes a general, effective method to utilize this abundant unlabeled data to "warm up" a model, ensuring it begins task-specific training with a fundamental understanding of language structure.
Methodology
The authors propose a three-step unsupervised pretraining pipeline designed to leverage monolingual corpora:
- Unsupervised Pretraining: Two separate Recurrent Neural Network (RNN) language models (LMs) are trained: one on a large corpus of the source language and another on the target language.
- Weight Initialization: Instead of random initialization, the seq2seq model’s encoder is initialized with the source LM's weights, and the decoder is initialized with the target LM's weights. Crucially, the decoder's output (softmax) layer is also initialized with the target LM's softmax weights.
- Joint Fine-Tuning: The model is then trained on labeled data. To prevent "catastrophic forgetting"—where the model loses general language knowledge while learning the specific mapping task—a joint objective is used, simultaneously minimizing seq2seq translation loss and the original language modeling losses.
To maximize the benefits of pretraining, the architecture includes residual connections from the first LSTM layer to the softmax to protect pretrained weights from random gradients, and a multi-layer attention mechanism allowing the model to attend to multiple encoder layers.
Experimental Setup
The method was evaluated on two primary benchmarks:
- Machine Translation: WMT English→German (WMT’14 and WMT’15 test sets). Monolingual training data was sourced from the News Crawl corpora, totaling over a billion tokens.
- Abstractive Summarization: The CNN/Daily Mail corpus, using the English Gigaword corpus for the unlabeled pretraining phase.
Results and Discussion
The experimental results demonstrate that pretraining significantly boosts performance across both tasks:
- State-of-the-Art Translation: The model achieved a 1.3 BLEU point improvement over previous bests on WMT’14 and WMT’15 English→German. Notably, a single pretrained model outperformed previous ensembles of four models.
- Superior Summarization: On the CNN/Daily Mail task, the pretrained model matched or exceeded existing baselines. Human evaluations indicated that the pretrained model produced more accurate summaries and suffered significantly less from common RNN issues like repetitive looping.
One of the most critical insights is the "Low-Data" advantage. The performance gap between pretrained and non-pretrained models widens as the amount of labeled data decreases, making this technique particularly valuable for low-resource languages or niche domains.
Ablation studies revealed that the benefits are task-specific: in translation, pretraining the decoder is most impactful for fluency; in summarization, pretraining the encoder provides the largest gains by helping the model process long input sequences.
Conclusion
Unsupervised pretraining acts as both a powerful optimizer and a robust regularizer for seq2seq models. By initializing models with weights from language models trained on massive unlabeled corpora, researchers can achieve state-of-the-art results and better generalization, especially in data-constrained environments. Future work will explore applying these principles to deeper architectures and alternative unsupervised objectives.
Summary updated