Manifold Adversarial Augmentation for Neural Machine Translation

Guandan Chen, Kai Fan, Kaibo Zhang, Boxing Chen, Zhongqiang Huang

Abstract

Neural Machine Translation (NMT) models are often brittle, where minor input variations can lead to significant translation errors. This paper introduces Manifold Adversarial Augmentation, a technique that enhances model robustness by generating synthetic training data within the model's hidden layers. By integrating adversarial perturbations and "mixup" interpolations at the manifold level rather than the token level, the proposed method achieves substantial gains in translation quality, outperforming existing state-of-the-art augmentation strategies on major benchmarks.

Introduction: The Brittleness of NMT

NMT models frequently overfit to the specific phrasing of training data, making them sensitive to typos, synonyms, or grammatical variations. Traditional token-level augmentations, such as word swapping or adding noise to embeddings, often produce unnatural sequences and fail to capture complex linguistic nuances like reordering. The core challenge lies in helping models understand the underlying "semantic manifold"—the continuous space of meaning—rather than just discrete word sequences.

Proposed Method: Augmentation in Latent Space

The authors propose shifting augmentation from the discrete token level to the continuous manifold level within the Transformer's hidden layers. This approach comprises two primary techniques:

  1. Manifold Adversarial Learning: The model identifies the gradient direction that maximizes loss (the "most confusing" direction) and applies a small perturbation to hidden representations in a randomly selected layer. This encourages the model to remain invariant to small semantic shifts.
  2. Manifold Mixup: Hidden representations of two different training sentences are linearly interpolated at a random layer. This creates "virtual" samples that bridge gaps in the semantic space, paired with interpolated target translations.
Comparison between AdvAug (token-level) and the proposed Manifold Adversarial Augmentation across multiple layers.

A key innovation is the use of a Beta distribution to control these perturbations, allowing the model to simulate discrete changes like word replacement within a continuous space. Furthermore, the method extends to Back-Translation (Mixup-BT), where high-quality human translations are mixed with noisy synthetic translations to improve the model's ability to handle imperfect inputs.

Experimental Setup

The method was evaluated on several major benchmarks:

  • LDC Chinese-English: A large-scale task with 1.2 million sentence pairs.
  • IWSLT English-French: A smaller, more specialized task with 230,000 sentence pairs.
  • Monolingual Data: 25 million French sentences from Newscrawl were used for the back-translation experiments.

Key Results and Insights

The proposed manifold-level approach demonstrated superior performance across all test sets, suggesting it is much more capable of handling diverse "out-of-distribution" inputs.

Translation quality (BLEU scores) of the proposed method compared to vanilla Transformer and previous state-of-the-art NMT models.
  • Significant Quality Gains: The method improved BLEU scores by over 4.0 points on Chinese-English and 3.0 points on English-French compared to a vanilla Transformer.
  • Outperforming Prior Art: It surpassed the previous state-of-the-art (AdvAug) by an average of 0.39 BLEU on Zh-En and 1.10 BLEU on En-Fr.
  • Synergistic Effects: Ablation studies confirmed that adversarial learning and mixup target different model weaknesses; their combination yields the best results.
  • Latent Space Advantage: Performing operations in high-level hidden layers is more effective than at the embedding layer because these layers capture abstract semantic meanings, leading to more linguistically coherent "virtual" samples.

Limitations and Future Directions

While effective, the method increases training time (e.g., 72 hours on 4 V100 GPUs for Chinese-English). It also introduces hyperparameters, such as the Beta distribution parameters and the range of layers for augmentation, which may require tuning for different language pairs. Additionally, the "virtual" samples generated in the manifold are not easily interpretable as plain text. Future research may explore applying these techniques to larger pre-trained models or broader sequence-to-sequence tasks.

Summary updated

BibTeX
@inproceedings{chen2021manifold,
  author = {Guandan Chen and Kai Fan and Kaibo Zhang and Boxing Chen and Zhongqiang Huang},
  title = {{Manifold Adversarial Augmentation for Neural Machine Translation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2021},
  doi = {10.18653/v1/2021.findings-acl.281},
}
Figure