Effective Adversarial Regularization for Neural Machine Translation

Motoki Sato, Jun Suzuki, Shun Kiyono

Introduction

Neural Machine Translation (NMT) models have achieved remarkable success but remain "brittle" to small input variations. In domains like computer vision, adversarial training—training on "worst-case" perturbations—has proven effective for increasing robustness. However, applying this to Natural Language Processing (NLP) is challenging due to the discrete nature of text. This research investigates applying adversarial regularization to the continuous embedding space of NMT models to improve both robustness and generalization.

Methodology: Adversarial and Virtual Adversarial Training

The authors explore two forms of regularization applied to the embedding space:

  1. Adversarial Training (AdvT): This method calculates a perturbation vector that maximizes the standard cross-entropy loss (making the model "most wrong") and then trains the model to minimize loss on that perturbed input.
  2. Virtual Adversarial Training (VAT): Instead of relying on labels, VAT smooths the model's output distribution by minimizing the KL divergence between the original output and the output for the perturbed input.

A key contribution of this work is the systematic evaluation of where to inject these perturbations within the sequence-to-sequence pipeline.

NMT architecture with adversarial perturbations applied to word embeddings in both the encoder and decoder.

As illustrated in the figure above, perturbations (denoted as $\hat{r}$) are added to the word embeddings before they enter the Encoder or Decoder. The study compares injecting noise into the source language embeddings (encoder-side), target language embeddings (decoder-side), or both simultaneously.

Experimental Results

The experiments were conducted using the IWSLT 2016 datasets (DE $\leftrightarrow$ EN, FR $\leftrightarrow$ EN) across both Transformer and LSTM architectures.

The Impact of Perturbation Position

The results indicate that regularizing the entire sequence-to-sequence mapping is superior to regularizing only one side. Applying perturbations to both the encoder and decoder embeddings consistently yielded the best performance.

BLEU score improvements on the EN→DE task across different perturbation positions and model types.

As seen in the table, the "enc-dec-emb" configuration consistently yields the highest BLEU scores. For the Transformer model using VAT, this approach improved the score from 29.15 to 30.13 on the test2013 set.

Key Findings

  • VAT Superiority: VAT consistently outperformed AdvT. This is likely because VAT avoids "label leaking"—where a model overfits to specific training labels—and instead learns a more robust underlying distribution.
  • Complementary to Data Augmentation: When combined with back-translation (BT), VAT provided additional gains, suggesting it addresses model weaknesses that simple data scaling does not.
  • Architecture Agnostic: The benefits were observed across both LSTM and Transformer models, proving the method's general applicability.

Conclusion

Adversarial regularization, particularly VAT applied to both encoder and decoder embeddings, is a highly effective technique for boosting NMT performance. While it introduces additional computational overhead during training due to extra forward/backward passes, the consistent 1.0 to 2.0 BLEU point improvements make it a compelling strategy for developing more robust translation systems. Future work should explore the scalability of these methods to larger datasets and their sensitivity to noise-scale hyperparameters.

Summary updated

BibTeX
@inproceedings{sato2019effective,
  author = {Motoki Sato and Jun Suzuki and Shun Kiyono},
  title = {{Effective Adversarial Regularization for Neural Machine Translation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2019},
  doi = {10.18653/v1/p19-1020},
}
Figure