Balancing Training for Multilingual Neural Machine Translation

Xinyi Wang, Yulia Tsvetkov, Graham Neubig

Abstract

Multilingual Neural Machine Translation (MNMT) enables resource efficiency and knowledge transfer between languages but faces significant challenges due to data imbalance. Traditional heuristic-based sampling methods, such as temperature-based up-sampling, often fail to account for linguistic similarities or the dynamic needs of the model during training. We introduce MultiDDS (Multi-objective Differentiable Data Selection), an algorithm that treats data weighting as a bi-level optimization problem. MultiDDS automatically learns a sampling strategy by aligning training gradients with a multilingual development set. Our results demonstrate that MultiDDS consistently outperforms standard heuristics, effectively discovering language synergies and improving performance for low-resource languages without degrading high-resource counterparts.

Introduction

The goal of MNMT is to build a single model capable of translating between numerous language pairs. This approach is particularly beneficial for low-resource languages (LRLs), which can benefit from "knowledge transfer" from related high-resource languages (HRLs). However, training on raw, imbalanced data typically leads to HRL dominance. While heuristics like temperature-based sampling ($\tau$) are commonly used to up-sample LRLs, they are difficult to tune, ignore linguistic nuances, and can lead to interference or capacity bottlenecks.

MultiDDS: Differentiable Data Selection

The authors propose MultiDDS to replace manual heuristics with a learned "data scorer." This approach frames data selection as a bi-level optimization task where a scorer learns to prioritize data that most benefits the overall multilingual objective.

The MultiDDS framework: A scorer $\psi$ defines a distribution over languages, and the model $\theta$ is updated based on sampled batches. The scorer is then updated based on the alignment between training and development gradients.

The Optimization Loop

The process follows a cyclical update mechanism:

  1. Scoring: A scorer with parameters $\psi$ maintains a probability distribution $P_D(i; \psi_t)$ over $n$ languages.
  2. Training: The NMT model $\theta$ is trained on batches sampled according to this distribution.
  3. Reward Calculation: The algorithm evaluates how a training step on a specific language $i$ affects performance on a multilingual development set. The reward is based on the cosine similarity between the training gradient $\nabla_\theta J(D^i_{\text{train}}; \theta_t)$ and the development gradient $\nabla_\theta J_{\text{dev}}(\theta'_{t+1}, D_{\text{dev}})$.
  4. Policy Update: The scorer is updated via reinforcement learning (REINFORCE) to favor languages that yield the most useful gradients.

To address noise in multilingual rewards, the authors introduced MultiDDS-S (Stable), which averages alignment rewards across individual language development sets before aggregation, leading to more stable convergence.

Experimental Setup

The method was evaluated on a 58-languages-to-English dataset. Two primary test groups were established:

  • Related Group: 4 LRLs (Azerbaijani, Belarusian, Galician, Slovak) paired with 4 related HRLs (Turkish, Russian, Portuguese, Czech).
  • Diverse Group: 8 languages chosen for linguistic variety (e.g., Hindi, French, Korean, Greek).

Experiments covered both Many-to-One (M2O) and One-to-Many (O2M) translation directions.

Dynamic Sampling and Synergy Discovery

A key advantage of MultiDDS is its ability to discover synergies between languages automatically. By monitoring gradient alignment, the model identifies when training on one language (e.g., Turkish) benefits another (e.g., Azerbaijani).

Evolution of language sampling probabilities over training steps for different language groups. MultiDDS dynamically adjusts weights as the model's needs change.

As shown in Figure 6, the sampling probabilities are not static. MultiDDS shifts focus between languages throughout the training process, a level of granularity that fixed heuristics cannot achieve. This scalability makes it suitable for massively multilingual models where sentence-level weighting would be computationally prohibitive.

Key Results

MultiDDS-S consistently outperformed heuristic baselines (Uniform, Proportional, and Temperature-based) in average BLEU scores. Notable findings include:

  • LRL Gains: In O2M settings, MultiDDS-S provided significant performance boosts for the majority of languages without hurting HRL performance.
  • Efficiency: The computational overhead is minimal, adding only about 5% to the total training time.
  • Controllability: The model's priorities can be shifted (e.g., from egalitarian to specialized) simply by modifying the development set objective.

Conclusion and Future Work

MultiDDS provides a robust, automated alternative to manual data-sampling heuristics in MNMT. While demonstrated on translation, the framework is model-agnostic and could potentially benefit other multilingual tasks. Future research will explore its application to even larger language sets (100+) and more complex optimization objectives.

Summary updated

BibTeX
@inproceedings{wang2020balancing,
  author = {Xinyi Wang and Yulia Tsvetkov and Graham Neubig},
  title = {{Balancing Training for Multilingual Neural Machine Translation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2020},
  doi = {10.18653/v1/2020.acl-main.754},
}
Figure