Semi-Supervised Neural Machine Translation with Language Models

Ivan Skorokhodov, Anton Rykachevskiy, Dmitry Emelyanenko, Sergey Slotin, Anton Ponkratov

Introduction

Neural Machine Translation (NMT) has achieved remarkable success in high-resource settings where millions of parallel sentences are available. However, for the vast majority of language pairs, such data is scarce. This paper explores semi-supervised techniques to leverage abundant monolingual data to improve NMT performance in low-resource scenarios. By integrating pre-trained language models (LMs) through smart initialization and a novel gated fusion mechanism, the authors demonstrate significant improvements in translation quality and training efficiency.

Proposed Method

The authors build upon the standard Transformer architecture, introducing two key modifications to incorporate monolingual knowledge.

Language Model Initialization

The core of the proposed approach is the reuse of weights from pre-trained language models. Instead of initializing the NMT model with random weights, the authors "pre-train" the encoder as a language model for the source language and the decoder as a language model for the target language using large monolingual corpora. This strategy provides the model with a "head start," as it enters the translation phase already possessing a deep understanding of the grammar, syntax, and vocabulary of both languages.

Gated Shallow Fusion

To further integrate monolingual knowledge during inference, the authors introduce Gated Shallow Fusion. While standard "shallow fusion" combines the probabilities from the NMT model and a language model using a fixed hyperparameter, Gated Shallow Fusion employs a learned gating mechanism. This small neural network dynamically calculates a weight at each time step, deciding how much to trust the NMT's translation mapping versus the LM's internal language representation. This acts as a safety net: if the NMT component, trained on limited parallel data, suggests a grammatically incorrect word, the LM component can "veto" it in favor of a more fluent alternative.

Architecture of the proposed NMT system featuring LM initialization and a gated fusion layer.

Experimental Setup

The approach was evaluated on two primary tasks:

  1. En–Fr Translation: Subsets of 10k and 20k parallel sentences from WMT Europarl-v7 were used to simulate low-resource conditions.
  2. En–Ru Translation: The DeepHack.Babel dataset, consisting of hotel descriptions and comments, provided a domain-specific testbed.

Monolingual corpora ranging from 300k to 1.3M sentences were utilized for LM pre-training, providing the necessary linguistic context that the small parallel datasets lacked.

Key Results

The combination of LM initialization and gated fusion yielded substantial gains. On the 20k En-Fr dataset, the proposed model reached 20.7 BLEU, representing a +2.2 point improvement over the baseline Transformer.

BLEU score comparisons for various model configurations on En-Fr and En-Ru datasets.

A critical finding was the synergy between the two methods. In extremely low-resource settings (10k sentences), initialization proved to be the "secret sauce," providing the necessary foundation for the gated fusion mechanism to be effective. Without proper initialization, the model lacked the pre-trained "understanding" required to make sense of the fusion mapping.

Furthermore, the system demonstrated high efficiency, reaching competitive performance in under 8 hours of training on a single consumer-grade NVIDIA 1080 Ti GPU. Qualitative analysis suggested that the semi-supervised model was particularly effective at maintaining coherence in longer, more complex sentences compared to the baseline, which often struggled with sentences exceeding 15 words.

Conclusion and Future Work

This research highlights the potential of semi-supervised learning for NMT. By effectively "borrowing" knowledge from monolingual data, the authors developed a system that is both high-performing and computationally accessible. Future work will address the "factual" gap in low-resource translation—where models translate structure correctly but miss specific noun meanings—and refine the fusion mechanism to better handle long-range dependencies.

Summary updated

BibTeX
@inproceedings{skorokhodov2018semi,
  author = {Ivan Skorokhodov and Anton Rykachevskiy and Dmitry Emelyanenko and Sergey Slotin and Anton Ponkratov},
  title = {{Semi-Supervised Neural Machine Translation with Language Models}},
  booktitle = {LoResMT@AMTA},
  year = {2018},
}
Figure