[Paper Review] UniMax: Fairer and more Effective Language Sampling for Large-Scale Multilingual Pretraining
UniMax is a novel language sampling strategy for multilingual pretraining that ensures fairer distribution of training tokens across languages by capping the maximum number of repeats per language, thereby reducing overfitting on low-resource languages while maintaining uniform coverage of high-resource ones. It outperforms standard temperature-based sampling across multiple model scales and benchmarks, with improved generalization and reduced memorization risks.
Pretrained multilingual large language models have typically used heuristic temperature-based sampling to balance between different languages. However previous work has not systematically evaluated the efficacy of different pretraining language distributions across model scales. In this paper, we propose a new sampling method, UniMax, that delivers more uniform coverage of head languages while mitigating overfitting on tail languages by explicitly capping the number of repeats over each language's corpus. We perform an extensive series of ablations testing a range of sampling strategies on a suite of multilingual benchmarks, while varying model scale. We find that UniMax outperforms standard temperature-based sampling, and the benefits persist as scale increases. As part of our contribution, we release: (i) an improved and refreshed mC4 multilingual corpus consisting of 29 trillion characters across 107 languages, and (ii) a suite of pretrained umT5 model checkpoints trained with UniMax sampling.
Motivation & Objective
- To address the imbalance in multilingual pretraining caused by extreme data scarcity in low-resource languages.
- To mitigate overfitting and memorization risks from excessive repetition of low-resource language data in standard temperature-based sampling.
- To develop a scalable, compute-efficient sampling strategy that maintains uniform language coverage without reprioritizing high-resource languages.
- To evaluate the impact of different sampling strategies across varying model scales and multilingual benchmarks.
- To release an improved mC4 corpus and pretrained umT5 models trained with UniMax for broader research use.
Proposed method
- UniMax pre-allocates training tokens to underrepresented languages based on a maximum repeat limit (N), ensuring no language exceeds N training epochs.
- For the remaining training budget, it allocates tokens uniformly across all languages with sufficient data, prioritizing linguistic utility and minimizing distribution bias.
- The method explicitly controls data repetition per language, directly countering overfitting and memorization in large models.
- It uses a fixed compute budget (e.g., 1M steps at 1024 sequence length) as a constraint, translating to a fixed token budget for training.
- The approach is robust to model scaling, maintaining balanced language coverage even as model size increases.
- It avoids reliance on heuristic temperature hyperparameters by replacing them with hard caps on repeats.
Experimental results
Research questions
- RQ1Does capping the number of repeats per language improve downstream performance in multilingual benchmarks?
- RQ2How does UniMax compare to temperature-based sampling in terms of generalization and overfitting across different model scales?
- RQ3Can a uniform distribution of training tokens across languages lead to better performance on high- and low-resource languages alike?
- RQ4To what extent does UniMax reduce memorization risks from repeated low-resource language examples?
- RQ5How does the method perform when applied to a refreshed, larger multilingual corpus like mC4?
Key findings
- UniMax outperforms standard temperature-based sampling (τ=3.33) on multilingual benchmarks, with improvements persisting across model scales.
- The method reduces excessive repetition of low-resource languages—e.g., Yoruba is repeated only 100 times under UniMax, compared to over 100 repeats under τ=3.33.
- With a 1× training budget, UniMax assigns equal training tokens to English and Chinese despite a 70× difference in raw data size, preventing overfitting on low-resource languages.
- The improved mC4 corpus released with the paper contains 29 trillion characters across 107 languages, reflecting a refreshed and more balanced multilingual dataset.
- Pretrained umT5 model checkpoints trained with UniMax sampling show consistent gains on multilingual evaluation tasks, especially for low-resource languages.
- The method is robust to model scaling: benefits of UniMax are sustained as model size increases, due to its explicit control over data repetition.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.