Bilingual Mutual Information Based Adaptive Training for Neural Machine Translation

Yangyifan Xu, Yijin Liu, Fandong Meng, Jiajun Zhang, Jinan Xu, Jie Zhou

TL;DR

This paper introduces a novel "Bilingual Mutual Information" (BMI) based adaptive training method for Neural Machine Translation (NMT). By considering the relationship between source and target language tokens, BMI better estimates token learning difficulty, leading to improved translation quality and lexical diversity compared to existing methods.

What Problem Does This Paper Address?

Neural Machine Translation (NMT) models, while powerful, struggle with the inherent imbalance of word frequencies in training data. This "long tail" distribution means some words appear very rarely, making them difficult to learn. Existing "token-level adaptive training" methods try to address this by assigning different weights to tokens during training. However, these methods typically rely only on the frequency of words in the target language. This is insufficient for bilingual tasks like machine translation, as it ignores the crucial source-language context. The paper argues that a token's difficulty is better understood by its relationship with the source sentence, not just its own frequency.

Methods

The core innovation is the Bilingual Mutual Information (BMI) metric. BMI quantifies the learning difficulty of a target token by measuring its association with tokens in the source sentence. The intuition is that if a target token has many possible translations in the source language (high mutual information), it's harder to predict confidently. Conversely, a target token with a stable, singular mapping from the source is considered "easier."

This BMI score is then used to define a new adaptive training objective. Tokens with higher BMI (indicating greater learning difficulty) are assigned larger training weights. This allows the model to update "easy" tokens (low BMI) with less precision (coarse granularity) and "difficult" tokens (high BMI) with more precision (fine granularity). The authors propose a formula for calculating the weight $w_j$ for a target token $y_j$ in a source sentence $x$: $w_j = S \cdot BMI(x, y_j) + B$, where $S$ and $B$ are hyperparameters controlling the scale and base of the weight.

Datasets

The proposed method was evaluated on two standard NMT benchmarks:

  • WMT14 English-to-German (En-De): Consists of 4.5 million sentence pairs.
  • WMT19 Chinese-to-English (Zh-En): Consists of 20.5 million sentence pairs.

These datasets were preprocessed using Byte Pair Encoding (BPE) with 32k merge operations.

Key Insights and Ideas

  • Source-Target Relationship is Key: The paper convincingly argues that understanding the difficulty of translating a token requires looking at its relationship with the source sentence, not just its frequency in the target language.
  • BMI as a Difficulty Metric: BMI effectively captures this source-target association, providing a more nuanced measure of learning difficulty than simple word frequency.
  • Adaptive Granularity: Assigning weights based on BMI allows for a dynamic adjustment of how "fine-grained" the model's updates are for different tokens, leading to more efficient learning.
  • Improved Lexical Diversity: Beyond just translation quality, the method also shows an improvement in the diversity of generated translations, addressing a known issue in NMT.

Key Results

The proposed BMI-based adaptive training method achieved significant improvements over the baseline Transformer model and existing token-level adaptive training approaches:

  • WMT14 En-De: Achieved a BLEU score of 28.53, outperforming the Transformer baseline (27.97) by 0.56 points.
  • WMT19 Zh-En: Achieved a BLEU score of 25.19, outperforming the Transformer baseline (24.37) by 0.82 points.
  • The method also showed improvements in lexical diversity metrics like MATTR, HD-D, and MTLD.
  • Analysis on subsets of sentences grouped by average BMI showed that the method provided consistent improvements across all difficulty levels, with a particularly strong impact on sentences with lower BMI (which are often more challenging due to richer mappings).

Limitations and Future Work

  • Hyperparameter Tuning: The method introduces hyperparameters $S$ and $B$, which require tuning on validation sets. The paper explores a range of values but acknowledges their influence.
  • Computational Cost: While not explicitly detailed as a limitation, calculating BMI involves iterating through source sentence tokens, which could add computational overhead compared to simpler frequency-based methods.
  • Future Work: The authors suggest that further analyses could explore the relationship between BMI and other aspects of translation quality and potentially extend this adaptive training approach to other sequence-to-sequence tasks.

Summary updated

BibTeX
@inproceedings{xu2021bilingual,
  author = {Yangyifan Xu and Yijin Liu and Fandong Meng and Jiajun Zhang and Jinan Xu and Jie Zhou},
  title = {{Bilingual Mutual Information Based Adaptive Training for Neural Machine Translation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2021},
  url = {https://openreview.net/forum?id=ABSOSpLw3_U},
}
Figure