mlsanityData to 7 Oct 2026

Upsample or Upweight? Balanced Training on Heavily Imbalanced Datasets

arXiv 2410.04579 ↗First posted 6 Oct 2024cs.CL cs.LG stat.MLcited by 4

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  3. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
  4. 2019Unsupervised Cross-lingual Representation Learning at Scalecited by 3,907
  5. 2020mT5: A massively multilingual pre-trained text-to-text transformercited by 1,813
  6. 2020Don't Stop Pretraining: Adapt Language Models to Domains and Taskscited by 1,548
  7. 2019fairseq: A Fast, Extensible Toolkit for Sequence Modelingcited by 1,486
  8. 2022No Language Left Behind: Scaling Human-Centered Machine Translationcited by 1,290
  9. 2020Gradient Surgery for Multi-Task Learningcited by 1,210
  10. 2021GLaM: Efficient Scaling of Language Models with Mixture-of-Expertscited by 890
  11. 2021Just Train Twice: Improving Group Robustness without Training Group Informationcited by 522
  12. 2017A systematic study of the class imbalance problem in convolutional neural networkscited by 510
31 more
  1. 2020What Neural Networks Memorize and Why: Discovering the Long Tail via Influence Estimationcited by 492
  2. 2016Google's Multilingual Neural Machine Translation System: Enabling Zero-Shot Translationcited by 467
  3. 2019Does Learning Require Memorization? A Short Tale about a Long Tailcited by 452
  4. 2022Large Language Models Struggle to Learn Long-Tail Knowledgecited by 452
  5. 2023DoReMi: Optimizing Data Mixtures Speeds Up Language Model Pretrainingcited by 385
  6. 2018Fairness Without Demographics in Repeated Loss Minimizationcited by 363
  7. 2017Six Challenges for Neural Machine Translationcited by 334
  8. 2018Learning Models with Uniform Performance via Distributionally Robust Optimizationcited by 334
  9. 2020Improving Massively Multilingual Neural Machine Translation and Zero-Shot Translationcited by 277
  10. 2018An Empirical Model of Large-Batch Trainingcited by 268
  11. 2019Massively Multilingual Neural Machine Translationcited by 246
  12. 2023A Pretrainer's Guide to Training Data: Measuring the Effects of Data Age, Domain Coverage, Quality, & Toxicitycited by 180
  13. 2024Data Mixing Laws: Optimizing Data Mixtures by Predicting Language Modeling Performancecited by 179
  14. 2024RegMix: Data Mixture as Regression for Language Model Pre-trainingcited by 172
  15. 2020Gradient Vaccine: Investigating and Improving Multi-task Optimization in Massively Multilingual Modelscited by 167
  16. 2023UniMax: Fairer and more Effective Language Sampling for Large-Scale Multilingual Pretrainingcited by 147
  17. 2019Distributionally Robust Language Modelingcited by 142
  18. 2024Understanding Emergent Abilities of Language Models from the Loss Perspectivecited by 94
  19. 2023DoGE: Domain Reweighting with Generalization Estimationcited by 87
  20. 2023Efficient Online Data Mixing For Language Model Pre-Trainingcited by 77
  21. 2020Balancing Training for Multilingual Neural Machine Translationcited by 71
  22. 2022Do Current Multi-Task Optimization Methods in Deep Learning Even Help?cited by 60
  23. 2019Optimizing Data Usage via Differentiable Rewardscited by 48
  24. 2022Understanding Why Generalized Reweighting Does Not Improve Over ERMcited by 29
  25. 2022Causes and Cures for Interference in Multilingual Translationcited by 23
  26. 2023Why Does Zero-Shot Cross-Lingual Generation Fail? An Explanation and a Solutioncited by 22
  27. 2023Scalarization for Multi-Task and Multi-Domain Learning at Scalecited by 19
  28. 2021Distributionally Robust Multilingual Machine Translationcited by 18
  29. 2021Bandits Don't Follow Rules: Balancing Multi-Facet Machine Translation with Multi-Armed Banditscited by 16
  30. 2023Towards Higher Pareto Frontier in Multilingual Machine Translationcited by 9
  31. 2023Order Matters in the Presence of Dataset Imbalance for Multilingual Learningcited by 7

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 1; 2025: 2; 2026: 1.

4 papers.