Upsample or Upweight? Balanced Training on Heavily Imbalanced Datasets
Not on the map. Why?
Abstract (arXiv)
Data abundance across different domains exhibits a long-tailed distribution: few domains have abundant data, while most face data scarcity. Our work focuses on a multilingual setting, where available data is heavily skewed towards high-resource languages. Two common strategies to address this disparity are upsampling low-resource data (Temperature Sampling) and upweighting low-resource loss (Scalarization). These methods are often assumed to be equivalent, but this equivalence has not been rigorously established, prompting our investigation. Through theoretical and empirical analysis, we identify when these two methods are equivalent and when they diverge. We prove that they are equivalent under full gradient descent but differ under stochastic gradient descent due to differences in gradient variance. Specifically, Temperature Sampling exhibits lower variance in gradient estimation compared to Scalarization, leading to faster convergence but a higher risk of overfitting. Based on these insights, we propose Cooldown, a strategy that starts by heavily upsampling low-resource languages to accelerate convergence and gradually reduces the upsampling to prevent overfitting -- achieving the best of both worlds. Our method competes effectively with existing data re-weighting techniques while offering computational efficiency.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 43 of its 61 references that are in the map. First posted on arXiv 6 Oct 2024.
Builds on
43 of 61 references.
References · 43
- 2017Attention Is All You Needcited by 59,932
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
- 2019Unsupervised Cross-lingual Representation Learning at Scalecited by 3,907
- 2020mT5: A massively multilingual pre-trained text-to-text transformercited by 1,813
- 2020Don't Stop Pretraining: Adapt Language Models to Domains and Taskscited by 1,548
- 2019fairseq: A Fast, Extensible Toolkit for Sequence Modelingcited by 1,486
- 2022No Language Left Behind: Scaling Human-Centered Machine Translationcited by 1,290
- 2020Gradient Surgery for Multi-Task Learningcited by 1,210
- 2021GLaM: Efficient Scaling of Language Models with Mixture-of-Expertscited by 890
- 2021Just Train Twice: Improving Group Robustness without Training Group Informationcited by 522
- 2017A systematic study of the class imbalance problem in convolutional neural networkscited by 510
31 more
- 2020What Neural Networks Memorize and Why: Discovering the Long Tail via Influence Estimationcited by 492
- 2016Google's Multilingual Neural Machine Translation System: Enabling Zero-Shot Translationcited by 467
- 2019Does Learning Require Memorization? A Short Tale about a Long Tailcited by 452
- 2022Large Language Models Struggle to Learn Long-Tail Knowledgecited by 452
- 2023DoReMi: Optimizing Data Mixtures Speeds Up Language Model Pretrainingcited by 385
- 2018Fairness Without Demographics in Repeated Loss Minimizationcited by 363
- 2017Six Challenges for Neural Machine Translationcited by 334
- 2018Learning Models with Uniform Performance via Distributionally Robust Optimizationcited by 334
- 2020Improving Massively Multilingual Neural Machine Translation and Zero-Shot Translationcited by 277
- 2018An Empirical Model of Large-Batch Trainingcited by 268
- 2019Massively Multilingual Neural Machine Translationcited by 246
- 2023A Pretrainer's Guide to Training Data: Measuring the Effects of Data Age, Domain Coverage, Quality, & Toxicitycited by 180
- 2024Data Mixing Laws: Optimizing Data Mixtures by Predicting Language Modeling Performancecited by 179
- 2024RegMix: Data Mixture as Regression for Language Model Pre-trainingcited by 172
- 2020Gradient Vaccine: Investigating and Improving Multi-task Optimization in Massively Multilingual Modelscited by 167
- 2023UniMax: Fairer and more Effective Language Sampling for Large-Scale Multilingual Pretrainingcited by 147
- 2019Distributionally Robust Language Modelingcited by 142
- 2024Understanding Emergent Abilities of Language Models from the Loss Perspectivecited by 94
- 2023DoGE: Domain Reweighting with Generalization Estimationcited by 87
- 2023Efficient Online Data Mixing For Language Model Pre-Trainingcited by 77
- 2020Balancing Training for Multilingual Neural Machine Translationcited by 71
- 2022Do Current Multi-Task Optimization Methods in Deep Learning Even Help?cited by 60
- 2019Optimizing Data Usage via Differentiable Rewardscited by 48
- 2022Understanding Why Generalized Reweighting Does Not Improve Over ERMcited by 29
- 2022Causes and Cures for Interference in Multilingual Translationcited by 23
- 2023Why Does Zero-Shot Cross-Lingual Generation Fail? An Explanation and a Solutioncited by 22
- 2023Scalarization for Multi-Task and Multi-Domain Learning at Scalecited by 19
- 2021Distributionally Robust Multilingual Machine Translationcited by 18
- 2021Bandits Don't Follow Rules: Balancing Multi-Facet Machine Translation with Multi-Armed Banditscited by 16
- 2023Towards Higher Pareto Frontier in Multilingual Machine Translationcited by 9
- 2023Order Matters in the Presence of Dataset Imbalance for Multilingual Learningcited by 7
Built on by
Citing papers per year: 2024: 1; 2025: 2; 2026: 1.
4 papers.
- 2024Tulu 3: Pushing Frontiers in Open Language Model Post-Trainingcited by 988
- 2025The Translation Barrier Hypothesis: Multilingual Generation with Large Language Models Suffers from Implicit Translation Failurecited by 9
- 2025Using Temperature Sampling to Effectively Train Robot Learning Policies on Imbalanced Datasetscited by 0
- 2026Influence Guided Sampling for Domain Adaptation of Text Retrieverscited by 0
- 2026Influence Guided Sampling for Domain Adaptation of Text Retrievers29 Jan 2026
- 2025Using Temperature Sampling to Effectively Train Robot Learning Policies on Imbalanced Datasets22 Oct 2025
- 2025The Translation Barrier Hypothesis: Multilingual Generation with Large Language Models Suffers from Implicit Translation Failure28 Jun 2025
- 2024Tulu 3: Pushing Frontiers in Open Language Model Post-Training22 Nov 2024