Self-Training Sampling with Monolingual Data Uncertainty for Neural Machine Translation

Wenxiang Jiao, Xing Wang, Zhaopeng Tu, Shuming Shi, Michael R. Lyu, Irwin King

TL;DR

This paper tackles the sub-optimal performance of standard self-training for Neural Machine Translation (NMT) by proposing a novel sampling strategy. Instead of randomly selecting monolingual data, they identify and prioritize sentences with higher "translation uncertainty," leading to significant improvements in translation quality and better handling of low-frequency words.

What Problem Does This Paper Address?

Neural Machine Translation (NMT) models thrive on large amounts of parallel data (sentences and their translations). However, parallel data is scarce and expensive to create. Monolingual data (text in a single language) is abundant and can be used to augment training through "self-training." The standard self-training approach involves using a "teacher" NMT model to translate monolingual sentences into synthetic parallel data, which is then used to train a "student" NMT model. The problem is that simply sampling monolingual data randomly for this synthetic data generation is not optimal. Some sentences might be too easy, offering little new learning, while others might be too complex or contain errors, potentially harming the training process. This paper addresses how to intelligently select monolingual sentences to maximize the benefit of self-training.

Methods

The core of this paper is the uncertainty-based sampling strategy.

  • Measuring Uncertainty: They define "translation uncertainty" for a monolingual sentence by leveraging a bilingual dictionary derived from the authentic parallel corpus. This dictionary maps source words to their possible target translations and their probabilities. The uncertainty of a sentence is calculated based on the entropy of word-level translation probabilities. Intuitively, sentences with more diverse or less certain translation options are considered more "uncertain."
  • Sampling Strategy: Instead of random sampling, they propose to sample monolingual sentences with a higher probability if they have higher uncertainty. To prevent issues with excessively uncertain sentences (which might lead to poor synthetic data), they introduce a penalty mechanism for sentences exceeding a certain uncertainty threshold ($U_{max}$). This threshold is determined by the distribution of uncertainty in the authentic parallel data. Hyperparameters ($\alpha$ and $\beta$) control the degree of uncertainty-based sampling and the penalty for high uncertainty.
  • Framework: The overall self-training framework is enhanced by integrating this uncertainty-based sampling step. This involves training an initial "teacher" NMT model, extracting a bilingual dictionary, sampling monolingual data using their strategy, generating synthetic parallel data with the teacher model, and finally training a "student" NMT model on a combination of authentic and synthetic data.

Datasets

  • Training and Evaluation: The experiments were conducted on large-scale WMT datasets for English$\Rightarrow$German (En$\Rightarrow$De) and English$\Rightarrow$Chinese (En$\Rightarrow$Zh).
  • Authentic parallel data: ~36.8M sentence pairs for En$\Rightarrow$De and ~22.1M for En$\Rightarrow$Zh.
  • Monolingual data: ~200M sentences from "newscrawl" (years 2011-2019).
  • Sampling Sizes: For experiments, they sampled 40M monolingual sentences for En$\Rightarrow$De and 20M for En$\Rightarrow$Zh.
  • Test Sets: newstest2019 and newstest2020 were used for evaluation.

Key Insights and Ideas

  • Not all monolingual data is equal: Random sampling for self-training is suboptimal because some sentences provide more learning value than others.
  • Uncertainty as a signal: Translation uncertainty, derived from bilingual dictionaries, is a strong indicator of informative monolingual sentences for NMT self-training.
  • The sweet spot: Sentences with moderately high uncertainty are most beneficial. Excessively high uncertainty can lead to noisy synthetic data and hurt performance, necessitating a penalty mechanism.
  • Beyond overall performance: The proposed method not only improves overall translation scores but also specifically enhances the translation of difficult (high-uncertainty) sentences and improves the prediction of rare words.

Key Results

  • Significant BLEU improvements: The uncertainty-based sampling strategy (UNCSAMP) consistently outperformed random sampling (RANDSAMP).
  • On WMT En$\Rightarrow$De, UNCSAMP achieved a +0.7 BLEU point improvement over RANDSAMP in a constrained scenario.
  • In an unconstrained scenario with large-scale data and models, UNCSAMP provided a further significant improvement of +1.1 BLEU points over RANDSAMP on En$\Rightarrow$De and +0.6 BLEU points on En$\Rightarrow$Zh.
  • Improved translation of high-uncertainty sentences: Performance on sentences categorized as "High uncertainty" improved by +10.9% compared to the baseline.
  • Better low-frequency word prediction: The method showed improved prediction accuracy for low-frequency words, with relative improvements of 4.5% (Low Freq), 2.6% (Med Freq), and 2.4% (High Freq) in F-measure compared to the baseline.

Limitations and Future Work

  • Confirmation Bias: The paper acknowledges the potential for "confirmation bias" where excessively uncertain sentences might lead to erroneous synthetic data, reinforcing incorrect patterns. Their penalty mechanism aims to mitigate this, but it's an ongoing challenge in self-training.
  • Teacher Model Quality: The authors address the concern that the teacher model's quality might influence results, showing their method works even with oracle translations. However, the reliance on a reasonably good teacher model remains.
  • Future Work: The authors suggest investigating the confirmation bias issue further and exploring the effect of different decoding strategies on self-training sampling. They also mention the application of their technology to TranSmart, an interactive machine translation system.

Summary updated

BibTeX
@inproceedings{jiao2021self,
  author = {Wenxiang Jiao and Xing Wang and Zhaopeng Tu and Shuming Shi and Michael R. Lyu and Irwin King},
  title = {{Self-Training Sampling with Monolingual Data Uncertainty for Neural Machine Translation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2021},
  doi = {10.18653/v1/2021.acl-long.221},
}
Figure