Agreement-Based Joint Training for Bidirectional Attention-Based Neural Machine Translation

Yong Cheng, Shiqi Shen, Zhongjun He, Wei He, Hua Wu, Maosong Sun, Yang Liu

Abstract

The attentional mechanism has proven to be effective in improving end-to-end neural machine translation. However, due to the intricate structural divergence between natural languages, unidirectional attention-based models might only capture partial aspects of attentional regularities. We propose agreement-based joint training for bidirectional attention-based end-to-end neural machine translation. Instead of training source-to-target and target-to-source translation models independently, our approach encourages the two complementary models to agree on word alignment matrices on the same training data. Experiments on Chinese-English and English-French translation tasks show that agreement-based joint training significantly improves both alignment and translation quality over independent training.

Introduction

In the mid-2010s, Neural Machine Translation (NMT) shifted from fixed-length vector representations to attention mechanisms. Attention allows a model to "look" at specific parts of a source sentence while generating each word in the target sentence. However, standard NMT models are typically unidirectional—trained to translate from a source language to a target language.

Because natural languages are not perfectly isomorphic, unidirectional models often capture only partial alignment regularities. For instance, a Chinese-to-English model might struggle with a specific phrase that an English-to-Chinese model identifies easily. The authors observed that these unidirectional models often produce "blurry" or incorrect alignment matrices, lagging behind traditional statistical aligners.

Methodology

The core of the proposed approach is Agreement-Based Joint Training. Rather than training a source-to-target model ($\vec{\theta}$) and a target-to-source model ($\overleftarrow{\theta}$) independently, the researchers train them simultaneously using a shared objective function.

Architecture of the bidirectional attention-based NMT model.

The new objective function consists of two primary components:

  1. Likelihood Maximization: The standard goal of maximizing the probability of the correct translation in both directions.
  2. Agreement Regularization: A penalty term ($\lambda$) that measures the disagreement between the alignment matrices of the two models.

To measure "disagreement," the authors evaluated three loss functions: Square of Addition (SOA), Square of Subtraction (SOS), and Multiplication (MUL). The Multiplication (MUL) loss proved most effective because it encourages the models to agree on correct alignments with high confidence, rather than simply matching each other's potentially weak or uncertain predictions.

Experimental Setup

The approach was evaluated on two major translation tasks:

  • Chinese-English: Utilizing a Large Scale (LDC) corpus of 2.56M sentence pairs, with evaluation on NIST datasets (2002–2008).
  • English-French: Utilizing the WMT 2014 corpus (12.07M sentence pairs).
  • Alignment Validation: Word alignment quality was measured using the TSINGHUAALIGNER dataset, containing 450 manually aligned Chinese-English sentence pairs.

Results and Discussion

The joint training approach yielded significant gains in both translation quality and alignment accuracy. On Chinese-to-English tasks, the joint model outperformed the independent RNNSEARCH baseline by up to 2.11 BLEU points (NIST08). For English-French, BLEU scores improved by approximately 1.5 points over the baseline.

Comparison of alignment matrices between independent training (a) and joint training (b).

One of the most significant findings is the reduction in "attention entropy." As shown in the figure above, independent training often results in attention being spread thin across many source words. Joint training forces the model to "focus" its gaze, leading to more concentrated, accurate, and symmetric alignment distributions. The Alignment Error Rate (AER) for Chinese-to-English improved from 54.64 to 47.49.

Furthermore, the method is computationally efficient. Despite training two models simultaneously, the joint training time was only about 1.2 times longer than training two independent models.

Conclusion

Agreement-based joint training effectively leverages the complementary strengths of bidirectional models. While NMT alignment still trails specialized statistical aligners in some metrics, this method significantly closes the gap. Future work may involve exploring more sophisticated agreement functions to handle complex many-to-many language mappings and validating the approach across more diverse language pairs.

Summary updated

BibTeX
@inproceedings{cheng2016agreement,
  author = {Yong Cheng and Shiqi Shen and Zhongjun He and Wei He and Hua Wu and Maosong Sun and Yang Liu},
  title = {{Agreement-Based Joint Training for Bidirectional Attention-Based Neural Machine Translation}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2016},
  url = {https://openreview.net/forum?id=ry-VlSGOWH},
}
Figure