Robust Unsupervised Neural Machine Translation with Adversarial Training

Haipeng Sun, Rui Wang, Kehai Chen, Masao Utiyama, Eiichiro Sumita, Tiejun ZhaoarXiv 2020

Introduction

Unsupervised Neural Machine Translation (UNMT) represents a significant milestone in natural language processing, enabling translation between language pairs using only monolingual corpora. By leveraging cross-lingual pre-training, denoising auto-encoders (DAE), and back-translation, UNMT bypasses the need for expensive parallel datasets. However, a critical vulnerability remains: UNMT models are notoriously brittle. While they perform admirably on clean, structured text like Wikipedia, their performance degrades sharply when encountering real-world noise such as typos, slang, or scrambled word order. This paper addresses this fragility by introducing Adversarial Denoising Training, a method that injects calculated perturbations into the training process to bolster model robustness.

Methodology: Adversarial Denoising Training

The authors propose enhancing the standard UNMT framework by replacing or augmenting random noise with Adversarial Training (AT). Traditional DAEs rely on random token swapping or deletion, which the authors argue is often too "easy" for the model to overcome. In contrast, AT uses a gradient-based approach to identify the "worst-case" small perturbations—specific changes to input embeddings that would most significantly confuse the model.

Comparison of standard denoising training (a) with the proposed adversarial training for word embeddings (b) and positional embeddings (c).

The research introduces three primary variations of this approach:

  1. Word_AT: Adversarial perturbations are applied to word embeddings to simulate word-level noise (e.g., substitutions).
  2. Position_AT: Perturbations are applied to positional embeddings, targeting the model's understanding of word order.
  3. Both_AT: A combined approach that attacks both word and positional representations for comprehensive robustness.

By forcing the model to map these "attacked" embeddings back to their original clean versions, the system learns a more resilient internal representation of language.

Experimental Setup and Datasets

The models were trained using 50 million monolingual sentences from the WMT news crawl datasets for English (En), French (Fr), and German (De). Evaluation was conducted across two distinct scenarios:

  • Clean Evaluation: Using standard benchmarks like newstest2014 (En-Fr) and newstest2016 (De-En).
  • Noisy Evaluation: Utilizing synthetic noise (varying levels of word replacement and shuffling) and the MTNT (Machine Translation of Noisy Text) dataset, which consists of real-world noisy comments from Reddit.

Results and Discussion

The Impact of Noise

Experimental results confirm that UNMT is exceptionally sensitive to perturbations. As shown in the performance analysis, even moderate increases in word noise ($a$ value) or word order shuffling ($b$ value) lead to a precipitous drop in translation BLEU scores.

Translation and Auto-encoder BLEU scores as a function of word noise (left) and word order noise (right).

Robustness Gains

The proposed adversarial methods yielded substantial improvements. In scenarios featuring both word and order noise, the Both_AT method improved performance by an average of 10 BLEU points over the baseline UNMT system. On the real-world MTNT dataset, the method outperformed previous state-of-the-art models by approximately 10 BLEU points, demonstrating that the robustness gained in synthetic environments translates effectively to real-world data.

The "Free Lunch" of Regularization

An unexpected finding was that adversarial training also slightly improved performance on clean data (by approximately 0.6 BLEU). This suggests that AT acts as a high-quality regularizer, preventing the model from over-relying on specific patterns and encouraging the learning of more generalized language features. Furthermore, Position_AT proved highly effective against word-order noise, a type of robustness frequently overlooked in prior research.

Conclusion

This work demonstrates that adversarial training is a powerful tool for stabilizing Unsupervised Neural Machine Translation. By targeting the specific weaknesses of the model through gradient-based perturbations, the authors achieved massive gains in noisy environments without sacrificing performance on clean text. While the computational overhead of calculating gradients is a factor, the resulting 10 BLEU point improvement in real-world scenarios makes Adversarial Denoising Training a vital addition to the UNMT toolkit. Future work may explore these methods in character-level noise and other NLP tasks beyond translation.

Summary updated

BibTeX
@misc{sun2020robust,
  author = {Haipeng Sun and Rui Wang and Kehai Chen and Masao Utiyama and Eiichiro Sumita and Tiejun Zhao},
  title = {{Robust Unsupervised Neural Machine Translation with Adversarial Training}},
  year = {2020},
  eprint = {2002.12549},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2002.12549},
}
Figure