Improving Multilingual Translation by Representation and Gradient Regularization

Yilin Yang, Akiko Eriguchi, Alexandre Muzio, Prasad Tadepalli, Stefan Lee, Hany Hassan

Abstract

Multilingual Neural Machine Translation (MNMT) offers an efficient way to handle multiple language pairs within a single model. However, these models frequently suffer from "off-target translation," particularly in zero-shot settings where the model translates into the wrong language (often English). This paper, presented at EMNLP 2021, proposes two regularization techniques—Target Language Prediction (TLP) and Target-Gradient-Projection (TGP)—to mitigate this issue. TLP ensures the decoder retains target language information in its internal representations, while TGP uses gradient surgery to prevent optimization steps from diverging from language-specific objectives. Experimental results on WMT-10 and OPUS-100 demonstrate substantial improvements, with zero-shot BLEU scores increasing by over 10 points and off-target rates dropping significantly.

Introduction: The Off-Target Translation Problem

Multilingual NMT models are designed to share parameters across many languages, which is highly beneficial for low-resource and zero-shot translation. In a zero-shot scenario, a model might be asked to translate between French and German despite only having seen French-English and German-English pairs during training.

A major hurdle in this setup is "target language interference." Because the model's internal signals can become conflated, it often defaults to producing fluent text in the wrong language. As shown in the baseline evaluations, off-target rates can be alarmingly high, reaching over 90% for certain language pairs in large-scale datasets.

Baseline off-target translation rates on WMT and OPUS datasets.

Methodology

The researchers address these failures through a two-pronged "joint regularization" strategy:

1. Target Language Prediction (TLP)

TLP operates at the representation level. An auxiliary classifier is added to the decoder to predict the target language ID from the hidden states at each step. This forces the model to explicitly maintain the identity of the target language throughout the generation process, preventing the internal representation from "forgetting" the intended output language.

2. Target-Gradient-Projection (TGP)

TGP is a gradient-level intervention. During training, the model calculates gradients for the standard training batch ($g_{train}$) and for a small set of high-quality "oracle" data ($g_{oracle}$). If the training gradient conflicts with the oracle gradient (indicated by negative cosine similarity), $g_{train}$ is projected onto the normal plane of $g_{oracle}$. This "gradient surgery" ensures that model updates do not move away from the direction required to correctly model specific target languages.

Datasets and Evaluation

The study evaluates these methods on two major benchmarks:

  • WMT-10: 10 languages from news and patent translation tasks.
  • OPUS-100: A 100-language dataset. Notably, the authors identified and corrected a data leakage issue in the original OPUS-100 (v1.0) development set, releasing a cleaned version for more accurate evaluation.

Results and Analysis

The proposed methods yielded dramatic improvements in translation quality. On the OPUS-100 dataset, zero-shot performance improved by +10.38 BLEU, while the off-target translation rate was slashed from 65.8% to just 4.7%.

BLEU score improvements for English-centric and English-free translation using TGP.

As illustrated in the training curves, TGP consistently outperforms the baseline in both English-centric and English-free (zero-shot) scenarios. The gains are particularly pronounced in English-free pairs, where the baseline often fails to produce the correct target language entirely.

Conclusion

By combining representation-level (TLP) and gradient-level (TGP) regularization, this work effectively addresses the persistent issue of off-target translation in MNMT. While TGP introduces a computational overhead (approximately 1.5x slower training), the resulting gains in zero-shot robustness and overall translation quality are substantial. Future work may explore similar nudges during the inference phase to further refine language-specific generation.

Summary updated

BibTeX
@inproceedings{yang2021improving,
  author = {Yilin Yang and Akiko Eriguchi and Alexandre Muzio and Prasad Tadepalli and Stefan Lee and Hany Hassan},
  title = {{Improving Multilingual Translation by Representation and Gradient Regularization}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2021},
  doi = {10.18653/v1/2021.emnlp-main.578},
}
Figure