English

BiMix: A Bivariate Data Mixing Law for Language Model Pretraining

Machine Learning 2025-01-28 v4 Artificial Intelligence Computation and Language

Abstract

Large language models have demonstrated remarkable capabilities across various tasks, primarily attributed to the utilization of diversely sourced data. However, the impact of pretraining data composition on model performance remains poorly understood. This paper introduces BiMix\textbf{BiMix}, a novel bivariate data mixing law that models the joint scaling behavior of domain proportions and data volume in LLM pretraining. BiMix\textbf{BiMix} provides a systematic framework for understanding and optimizing data mixtures across diverse domains. Through extensive experiments on two large-scale datasets, we demonstrate BiMix\textbf{BiMix}'s high accuracy in loss extrapolation (mean relative error < 0.2%) and its generalization to unseen mixtures (R2{}^{2} > 0.97). Optimization of domain proportions yields superior model performance compared to existing methods. Furthermore, we establish entropy-based measures as efficient proxies for data mixing, offering a computationally lightweight strategy. Our work contributes both theoretical insights into data mixing dynamics and practical tools for enhancing LLM training efficiency, paving the way for more effective scaling strategies in language model development.

Keywords

Cite

@article{arxiv.2405.14908,
  title  = {BiMix: A Bivariate Data Mixing Law for Language Model Pretraining},
  author = {Ce Ge and Zhijian Ma and Daoyuan Chen and Yaliang Li and Bolin Ding},
  journal= {arXiv preprint arXiv:2405.14908},
  year   = {2025}
}

Comments

Clarify details

R2 v1 2026-06-28T16:37:50.674Z