Abstract
Training a single Neural Machine Translation (NMT) model to handle multiple languages or domains is efficient but faces significant challenges due to data imbalance and corpus heterogeneity. Traditional static heuristics and recent gradient-similarity-based methods often struggle with unique datasets that offer limited transfer learning benefits. We introduce MULTIUAT (Multi-corpus Uncertainty-Aware Training), a novel framework that dynamically balances training data using model uncertainty as a reward signal. By leveraging Monte Carlo Dropout to quantify uncertainty, MULTIUAT prioritizes datasets the model has not yet mastered. Our experiments across multilingual and multi-domain settings show that MULTIUAT significantly outperforms standard baselines, providing gains of up to +1.52 BLEU and demonstrating greater robustness to data outliers.
Introduction
Neural Machine Translation (NMT) models are increasingly expected to handle a wide array of languages and domains simultaneously. However, the vast disparity in data availability—ranging from millions of sentences for high-resource languages (HRLs) to a few thousand for low-resource languages (LRLs)—and the linguistic diversity of corpora (e.g., medical vs. religious texts) complicate training.
Standard approaches rely on static heuristics, such as temperature-based upsampling, which require manual tuning and fail to adapt as training progresses. More advanced dynamic methods like MULTIDDS utilize gradient similarity to prioritize data that aligns with a clean validation set. However, these methods can fall into a "similarity trap," over-sampling unique datasets that do not contribute to broader generalization.
Methodology: MULTIUAT
MULTIUAT treats data balancing as a reinforcement learning problem, optimized via a bilevel approach.
The Scorer Network
A small scorer network ($\psi$) learns to assign sampling probabilities to different corpora. Unlike similarity-based methods, the scorer is rewarded based on the model's uncertainty regarding a validation set. High uncertainty in a specific domain triggers an increase in the sampling probability for its corresponding training data.
Quantifying Uncertainty
Uncertainty is measured using Monte Carlo (MC) Dropout. By performing multiple forward passes ($K=30$) with dropout enabled, the system generates a distribution of predictions. The authors explored several metrics:
- Probability-Based: Variance or expectation of predicted probabilities.
- Entropy-Based: Average sentence entropy or the entropy of the "End of Sentence" (EOS) token. Entropy-based measures, particularly the EOS token entropy, proved most stable.
Key Insights: The Similarity Trap
A critical finding is the failure of gradient-similarity methods on highly specialized datasets. For instance, the Tanzil dataset (religious text) is highly self-correlated. Similarity-based models like MULTIDDS perceive this internal consistency as high quality and over-sample it—up to 40% of the training time—despite its minimal transfer benefit to other domains. MULTIUAT avoids this by focusing on what the model doesn't know, rather than what looks like the validation set.
Experimental Results
The framework was evaluated on two primary tasks:
- Multilingual NMT: 16 languages across "Related" and "Diverse" settings.
- Multi-Domain NMT: English-German translation across four in-domain (ID) and two out-of-domain (OOD) sets.
Performance Gains
MULTIUAT consistently outperformed all baselines. In multilingual settings, it achieved BLEU score improvements of +0.83 to +1.52 over the strongest baseline. In multi-domain tasks, it improved in-domain performance by +0.58 BLEU and showed strong generalization to OOD data.
Robustness and Convergence
MULTIUAT naturally shifts focus from high-resource data to low-resource data as the model stabilizes. It also exhibits lower sensitivity to initial sampling priors compared to competing dynamic methods.
Conclusion
MULTIUAT provides a robust, uncertainty-driven alternative to similarity-based data balancing in NMT. By identifying and prioritizing unlearned information, it avoids the pitfalls of over-sampling unique but non-transferable data, leading to better performance and generalization across diverse translation tasks.
Summary updated