Semi-Supervised Learning for Neural Machine Translation

Yong Cheng, Wei Xu, Zhongjun He, Wei He, Hua Wu, Maosong Sun, Yang Liu

Abstract

While end-to-end neural machine translation (NMT) has made remarkable progress recently, NMT systems only rely on parallel corpora for parameter estimation. Since parallel corpora are usually limited in quantity, quality, and coverage, especially for low-resource languages, it is appealing to exploit monolingual corpora to improve NMT. We propose a semi-supervised approach for training NMT models on the concatenation of labeled (parallel corpora) and unlabeled (monolingual corpora) data. The central idea is to reconstruct the monolingual corpora using an autoencoder, in which the source-to-target and target-to-source translation models serve as the encoder and decoder, respectively. Our approach can not only exploit the monolingual corpora of the target language, but also of the source language. Experiments on the Chinese-English dataset show that our approach achieves significant improvements over state-of-the-art SMT and NMT systems.

Introduction

End-to-end Neural Machine Translation (NMT) models are powerful but notoriously data-hungry. Historically, they have relied almost exclusively on parallel corpora—datasets where sentences in one language are perfectly matched with their translations in another. Because parallel data is expensive to produce, it is usually limited to specific domains and resource-rich languages.

Conversely, monolingual data is cheap and practically infinite. While older Statistical Machine Translation (SMT) systems could use target-side monolingual data to improve fluency via separate language models, integrating this data into a single NMT network is challenging. This paper introduces a semi-supervised learning approach that leverages abundant monolingual data from both the source and target languages by using bidirectional NMT models as autoencoders, significantly boosting translation quality without changing the underlying network architecture.

Methodology: The Autoencoder Framework

The authors propose a joint training framework that simultaneously trains a source-to-target model and a target-to-source model. They achieve this by treating the translation process as an autoencoder to reconstruct monolingual sentences.

The proposed autoencoder framework for reconstructing monolingual data in both source (a) and target (b) languages.

As illustrated in the figure above, the process works as follows:

  1. Encoder: For a monolingual sentence in language A, the model translates it into a latent (hidden) sentence in language B.
  2. Decoder: The corresponding model for language B then takes that latent sentence and attempts to reconstruct the original sentence in language A.

The overall training objective combines standard supervised likelihood (from parallel data) with reconstruction likelihood (from monolingual data). To manage computational complexity during the autoencoding step, the authors use a sampling approximation, finding that using the top-$k$ ($k=10$) candidate translations provides an optimal balance between efficiency and quality.

Experimental Setup

The approach was evaluated on a Chinese-English translation task using the following data:

  • Parallel Corpus: LDC Chinese-English dataset (2.56 million sentence pairs).
  • Monolingual Corpora: GIGAWORD corpus (18.75 million Chinese and 22.32 million English sentences).
  • Evaluation: NIST 2006 (validation) and NIST 2002-2005 (test sets).

Key Results and Insights

The proposed method yielded substantial improvements across multiple benchmarks:

  • Baseline Gains: Adding English monolingual data improved the baseline attention-based NMT (RNNSEARCH) by up to +4.7 BLEU points.
  • Comparison to SMT: The model outperformed a strong phrase-based SMT baseline (Moses) trained on the same data by up to +3.5 BLEU points.
  • Iterative Improvement: Unlike static back-translation, this dynamic approach allows the source-to-target and target-to-source models to interact and iteratively improve the quality of latent translations throughout training.

The Impact of Vocabulary

A critical insight from the study is the sensitivity of the model to the vocabulary of the monolingual data. The authors discovered that monolingual sentences with a low Out-Of-Vocabulary (OOV) ratio relative to the parallel corpus provide the most significant performance boost.

The effect of Out-Of-Vocabulary (OOV) ratio on translation performance during training.

As shown in the figure above, performance is highest when the OOV ratio is 0%. When the model encounters words it has not seen in the parallel corpus, the autoencoder struggles to reconstruct the sentences accurately, leading to less effective parameter estimation.

Conclusion

This semi-supervised approach demonstrates that bidirectional autoencoding is a powerful way to leverage monolingual data for NMT. While highly effective, the method's sensitivity to OOV words suggests that future work should focus on integrating large-vocabulary techniques. Additionally, the authors plan to explore tighter coupling between bidirectional models, such as shared word embeddings, to further enhance the benefits of their interaction.

Summary updated

BibTeX
@inproceedings{cheng2016semi,
  author = {Yong Cheng and Wei Xu and Zhongjun He and Wei He and Hua Wu and Maosong Sun and Yang Liu},
  title = {{Semi-Supervised Learning for Neural Machine Translation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2016},
  doi = {10.18653/v1/p16-1185},
}
Figure