AdvAug: Robust Adversarial Augmentation for Neural Machine Translation

Yong Cheng, Lu Jiang, Wolfgang Macherey, Jacob Eisenstein

Abstract

Neural Machine Translation (NMT) models, while powerful, often lack robustness against small input perturbations. We propose AdvAug, a data augmentation framework that creates a smooth, diverse training space by interpolating embeddings of adversarial and authentic sentence pairs. This approach encourages the model to learn semantic neighborhoods rather than memorizing discrete training points. Experimental results on NIST Chinese-English, IWSLT English-French, and WMT14 English-German benchmarks show that AdvAug significantly outperforms standard Transformer baselines and existing adversarial training methods, achieving up to a 4.9 BLEU point improvement and demonstrating superior resistance to input noise.

1. Introduction

Modern NMT systems based on the Transformer architecture have achieved remarkable success. However, these models are often brittle; a minor change, such as replacing a word with a synonym, can lead to catastrophic translation failures. This sensitivity arises from data scarcity—where training sets cannot cover all possible linguistic variations—and the tendency of high-capacity models to overfit specific training examples.

Previous attempts to address this via discrete adversarial training (e.g., word swapping) often produce unnatural sentences or noisy vectors that degrade semantic integrity. AdvAug addresses these limitations by shifting the focus from discrete perturbations to a continuous "vicinity distribution" in the embedding space.

2. The AdvAug Framework

AdvAug introduces a novel regularization strategy based on embedding interpolation. Instead of training solely on observed sentence pairs $(x, y)$, the model is trained on "virtual" examples sampled from two vicinity distributions:

  • Adversarial Vicinity ($P_{adv}$): Multiple adversarial versions of a sentence are generated via word swaps. AdvAug then interpolates the embeddings of these adversarial versions. This ensures the model maps various perturbations of the same semantic concept to a consistent output.
  • Authentic Vicinity ($P_{aut}$): Inspired by the "mixup" technique, this involves interpolating between different authentic training pairs to increase overall sample diversity and smooth the decision boundaries.
Visualizing embedding interpolation between observed and adversarial sentence pairs.

To maintain consistency, AdvAug employs a KL-Divergence Loss. Rather than forcing the model to predict a hard ground-truth label for virtual sentences, it minimizes the divergence between the model's output on the perturbed input and its output on the original, clean input. Furthermore, a curriculum learning strategy is applied to prioritize increasingly difficult examples as training progresses.

3. Experimental Setup

The effectiveness of AdvAug was evaluated on three major translation benchmarks:

  1. NIST Chinese-English: 1.2M sentence pairs.
  2. IWSLT 2016 English-French: 0.23M sentence pairs (small-scale).
  3. WMT14 English-German: 4.5M sentence pairs (large-scale).

The baseline for all experiments was the standard Transformer model. AdvAug was compared against several state-of-the-art adversarial training and data augmentation methods.

4. Results and Discussion

AdvAug demonstrated substantial performance gains across all tested datasets. On the NIST Chinese-English task, the full AdvAug configuration ($\mathcal{L}_{aut} + \mathcal{L}_{adv}$) improved the Transformer baseline by up to 4.9 BLEU points.

Performance comparison of AdvAug against baseline and state-of-the-art NMT models on NIST Chinese-English datasets.

Key findings include:

  • Superiority over Baselines: AdvAug outperformed previous adversarial methods (e.g., Cheng et al., 2019) by significant margins (up to 3.3 BLEU points).
  • Robustness to Noise: When subjected to random synonym swaps, AdvAug models maintained high translation quality, whereas standard Transformer performance dropped sharply.
  • Generalization: The method effectively mitigated overfitting. While baseline models often saw performance plateaus or declines in later training stages, AdvAug models remained stable or continued to improve even after 100k iterations.

5. Conclusion and Future Work

AdvAug provides a robust framework for NMT by leveraging continuous embedding interpolation. By smoothing the training space, it enables models to generalize better to unseen perturbations. While the method increases training time by approximately 3.3x due to the generation of adversarial examples, the significant gains in BLEU scores and robustness justify the computational cost. Future research may explore applying AdvAug to other sequence-to-sequence tasks like summarization and dialogue generation.

Summary updated

BibTeX
@inproceedings{cheng2020advaug,
  author = {Yong Cheng and Lu Jiang and Wolfgang Macherey and Jacob Eisenstein},
  title = {{AdvAug: Robust Adversarial Augmentation for Neural Machine Translation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2020},
  doi = {10.18653/v1/2020.acl-main.529},
}
Figure