BiMix: A Bivariate Data Mixing Law for Language Model Pretraining

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Ge, Ce, Ma, Zhijian, Chen, Daoyuan, Li, Yaliang, Ding, Bolin
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866929687376166912
author Ge, Ce
Ma, Zhijian
Chen, Daoyuan
Li, Yaliang
Ding, Bolin
author_facet Ge, Ce
Ma, Zhijian
Chen, Daoyuan
Li, Yaliang
Ding, Bolin
contents 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 $\textbf{BiMix}$, a novel bivariate data mixing law that models the joint scaling behavior of domain proportions and data volume in LLM pretraining. $\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 $\textbf{BiMix}$'s high accuracy in loss extrapolation (mean relative error < 0.2%) and its generalization to unseen mixtures (R${}^{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.
format Preprint
id arxiv_https___arxiv_org_abs_2405_14908
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle BiMix: A Bivariate Data Mixing Law for Language Model Pretraining
Ge, Ce
Ma, Zhijian
Chen, Daoyuan
Li, Yaliang
Ding, Bolin
Machine Learning
Artificial Intelligence
Computation and Language
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 $\textbf{BiMix}$, a novel bivariate data mixing law that models the joint scaling behavior of domain proportions and data volume in LLM pretraining. $\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 $\textbf{BiMix}$'s high accuracy in loss extrapolation (mean relative error < 0.2%) and its generalization to unseen mixtures (R${}^{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.
title BiMix: A Bivariate Data Mixing Law for Language Model Pretraining
topic Machine Learning
Artificial Intelligence
Computation and Language
url https://arxiv.org/abs/2405.14908