Adversarial Neural Machine Translation

Lijun Wu, Yingce Xia, Fei Tian, Li Zhao, Tao Qin, Jianhuang Lai, Tie-Yan Liu

TL;DR

This paper introduces Adversarial-NMT, a novel training paradigm for Neural Machine Translation (NMT) that leverages Generative Adversarial Networks (GANs). Instead of directly maximizing translation likelihood, it trains an NMT model to produce translations indistinguishable from human ones by having an adversarial network try to detect machine-generated text. This approach leads to significantly improved translation quality compared to traditional methods.

What Problem Does This Paper Address?

Neural Machine Translation (NMT) has revolutionized the field, offering end-to-end learning and often outperforming traditional statistical methods. However, current NMT models typically rely on maximizing the likelihood of the target sentence given the source sentence (Maximum Likelihood Estimation or MLE). While effective, this objective doesn't inherently guarantee that the generated translations are natural, fluent, or truly accurate compared to human translations. Existing methods that try to optimize for sequence-level metrics like BLEU still struggle to fully bridge the gap between machine and human quality. The core problem is that the standard training objective doesn't directly encourage the NMT model to mimic the nuanced quality and naturalness of human-generated text.

Methods

The paper proposes Adversarial-NMT, a framework that introduces an adversary network to assist in training the NMT model. This adversary, implemented as a Convolutional Neural Network (CNN), is trained to distinguish between human-generated translations (ground truth) and translations produced by the NMT model. Simultaneously, the NMT model (acting as a generator) is trained to produce translations that are so good they can "fool" the adversary.

Key aspects of the method include:

  • Adversarial Training Architecture: Inspired by GANs, the NMT model and the CNN adversary are trained in a competitive loop. The NMT model aims to minimize the adversary's ability to detect its outputs, while the adversary aims to maximize its detection accuracy.
  • CNN Adversary: The adversary takes a source-target sentence pair as input and outputs a probability indicating whether the target sentence is a human translation. It uses a 2D image-like representation of concatenated word embeddings and employs convolutional and pooling layers to capture correspondences between the source and target segments.
  • Policy Gradient for NMT Training: Since NMT outputs discrete tokens, directly backpropagating the adversary's error signal is challenging. The authors leverage the REINFORCE algorithm, a policy gradient method from reinforcement learning, to train the NMT model. The adversary's output is used to provide a reward signal, guiding the NMT model to produce more human-like translations.
  • Combined Objective: To stabilize training, the authors combine the adversarial objective with the standard MLE objective, using 50% of the mini-batches for each. This is hypothesized to provide a smoother update and alleviate issues with high gradient variance from the policy gradient method.

Datasets

The paper reports experimental results on two standard machine translation tasks:

  • English $\rightarrow$ French (En $\rightarrow$ Fr): Uses a subset of the WMT 2014 training corpus, with news-test 2012/2013 for development and news-test 2014 for testing. This dataset contains approximately 12M training pairs.
  • German $\rightarrow$ English (De $\rightarrow$ En): Uses the IWSLT 2014 evaluation campaign dataset, with around 153k training pairs.

No new datasets were introduced.

Key Insights and Ideas

  • Shifting the NMT Objective: The core idea of minimizing the distinction between machine and human translations, rather than just maximizing likelihood, is a powerful shift. It directly targets the "human-likeness" of translations.
  • GANs for Discrete Outputs: The paper demonstrates a successful application of GAN-like adversarial training to a discrete output domain (text generation), which has historically been challenging due to gradient propagation issues.
  • Adversary as a Richer Evaluator: The CNN adversary provides a more nuanced and global evaluation of translation quality than simple metrics like BLEU, which are sensitive to local n-gram matches. This richer feedback loop helps the NMT model improve more effectively.
  • Co-evolution of Models: The adversarial training allows the NMT model and the adversary to improve together. As the NMT model gets better, the adversary is forced to become more sophisticated, leading to a more robust training process.
  • Stability through Hybrid Training: Combining adversarial training with MLE is crucial for stable training, preventing the instability that can arise from pure policy gradient methods on complex tasks.

Key Results

  • State-of-the-Art Performance: Adversarial-NMT achieved state-of-the-art results on the En $\rightarrow$ Fr translation task, reaching a BLEU score of 34.78 with a single-layer GRU model. It also achieved a state-of-the-art result of 27.94 BLEU on De $\rightarrow$ En.
  • Superiority over Baselines: The proposed method significantly outperformed several strong baselines, including models with larger vocabularies, deeper layers, and those using Minimum Risk Training (MRT) or directly maximizing BLEU.
  • Human Evaluation: Human evaluators judged Adversarial-NMT translations to be better than MRT translations 59.4% of the time, further supporting the model's ability to produce more human-like output.
  • Robustness to Hyperparameters: The study showed that the adversarial training process is more robust to the learning rate of the adversary (D) than to that of the generator (G), suggesting that a well-trained adversary is key.

Limitations and Future Work

  • Training Complexity: While effective, adversarial training can be more complex and computationally intensive than standard MLE training. The paper notes that sampling multiple trajectories to reduce variance is "intolerably time-consuming" for NMT.
  • Hyperparameter Sensitivity: The paper highlights that the learning rate for the generator (G) can lead to instability if set too high, indicating some sensitivity to hyperparameter tuning.
  • Future Work: The authors plan to further improve performance by combining Adversarial-NMT with other techniques like larger vocabularies, minimum-risk principles, and deeper network structures. They also suggest exploring the feasibility of adversarial training for other sequence-to-sequence tasks beyond machine translation, such as image captioning, dependency parsing, and sentiment classification.

Summary updated

BibTeX
@inproceedings{wu2018adversarial,
  author = {Lijun Wu and Yingce Xia and Fei Tian and Li Zhao and Tao Qin and Jianhuang Lai and Tie-Yan Liu},
  title = {{Adversarial Neural Machine Translation}},
  booktitle = {ACML},
  year = {2018},
}
Figure