Skip to main content
QUICK REVIEW

[Paper Review] How Robust is Neural Machine Translation to Language Imbalance in Multilingual Tokenizer Training?

Shiyue Zhang, Vishrav Chaudhary|arXiv (Cornell University)|Apr 29, 2022
Natural Language Processing TechniquesComputer Science6 citations
TL;DR

This paper investigates the robustness of neural machine translation (NMT) to language imbalance during multilingual tokenizer training. It finds that NMT performance is more resilient to imbalance than expected—especially when languages share scripts—offering two early-warning indicators: UNK rate and closeness to the character level. The study recommends balancing language data in tokenizer training and using these metrics to evaluate pretrained tokenizers before downstream use.

ABSTRACT

A multilingual tokenizer is a fundamental component of multilingual neural machine translation. It is trained from a multilingual corpus. Since a skewed data distribution is considered to be harmful, a sampling strategy is usually used to balance languages in the corpus. However, few works have systematically answered how language imbalance in tokenizer training affects downstream performance. In this work, we analyze how translation performance changes as the data ratios among languages vary in the tokenizer training corpus. We find that while relatively better performance is often observed when languages are more equally sampled, the downstream performance is more robust to language imbalance than we usually expected. Two features, UNK rate and closeness to the character level, can warn of poor downstream performance before performing the task. We also distinguish language sampling for tokenizer training from sampling for model training and show that the model is more sensitive to the latter.

Motivation & Objective

  • To systematically evaluate how language imbalance in multilingual tokenizer training affects downstream NMT performance.
  • To determine whether language sampling strategies for tokenizer training and model training have distinct impacts on translation quality.
  • To identify early, intermediate indicators (e.g., UNK rate, character-level closeness) that can predict poor downstream performance without running full training.
  • To provide practical recommendations for training and evaluating multilingual tokenizers to avoid underperformance in low-resource languages.

Proposed method

  • The authors vary the data ratio among eight languages (English, Tagalog, Icelandic, Danish, Indonesian, Tamil, Greek, Chinese) in the tokenizer training corpus while keeping model training sampling fixed.
  • They use temperature-based sampling to control language ratios in the tokenizer training data, with exponential factors S = 0, 0.3, and 1.0.
  • Translation performance is evaluated using spBLEU scores across bilingual and multilingual settings, with multiple random seeds and ablation studies.
  • Two intermediate features are computed: UNK rate (average percentage of unknown tokens per sentence) and closeness to the character level (average subword length divided by character length).
  • The study compares the impact of language imbalance in tokenizer training versus model training by isolating each factor while holding the other constant.
  • Experiments are conducted on a diverse multilingual dataset, with extensive ablation across 1,890 experiments in bilingual settings and 31 in multilingual settings, using up to 64 GPUs.

Experimental results

Research questions

  • RQ1How does language imbalance in multilingual tokenizer training affect downstream NMT translation performance?
  • RQ2Can UNK rate and closeness to the character level serve as reliable early indicators of poor downstream performance?
  • RQ3Is NMT more sensitive to language imbalance in model training or in tokenizer training?
  • RQ4What is the optimal language sampling strategy for tokenizer training, and does it differ from that for model training?
  • RQ5Can we establish practical thresholds for UNK rate and closeness to the character level that signal acceptable tokenizer quality?

Key findings

  • NMT performance is more robust to language imbalance in tokenizer training than previously assumed, with significant performance drops only occurring at extreme ratios (e.g., 1:100,000) when languages share scripts.
  • Better translation performance is consistently observed when languages are more balanced in the tokenizer training data, with moderate Pearson correlations (r ≈ 0.5–0.7) between balance and performance.
  • English is highly resilient to imbalance due to its frequent co-occurrence in monolingual data of other languages, effectively preventing it from being starved.
  • The two intermediate features—UNK rate and closeness to the character level—serve as strong early predictors of downstream performance, with thresholds of ~3.7% UNK rate and ~0.87 closeness to the character level indicating acceptable quality.
  • NMT is significantly more sensitive to language imbalance in model training than in tokenizer training, suggesting that model-level sampling strategies require greater attention.
  • The study recommends using balanced language ratios in tokenizer training and validating pretrained tokenizers using the two proposed features before deployment.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.