English

Upsample or Upweight? Balanced Training on Heavily Imbalanced Datasets

Computation and Language 2025-03-11 v5 Machine Learning Machine Learning

Abstract

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.

Keywords

Cite

@article{arxiv.2410.04579,
  title  = {Upsample or Upweight? Balanced Training on Heavily Imbalanced Datasets},
  author = {Tianjian Li and Haoran Xu and Weiting Tan and Kenton Murray and Daniel Khashabi},
  journal= {arXiv preprint arXiv:2410.04579},
  year   = {2025}
}

Comments

19 pages, 9 figures, accepted to NAACL 2025 main conference

R2 v1 2026-06-28T19:10:27.859Z