arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2507.09404cs.LG
收藏

最优数据混合的缩放定律

Scaling Laws for Optimal Data Mixtures

Sorbonne University(索邦大学);Apple(苹果公司)

Mustafa Shukor, Louis Bethune, Dan Busbridge, David Grangier, Enrico Fini, Alaaeldin El-Nouby, Pierre Ablin

AI总结:

针对基础模型训练中数据混合比例选择依赖高成本试错的问题,提出基于缩放定律的系统性方法,可预测不同规模、数据混合下的模型损失,推导最优数据混合比例,且在LLM、NMM、LVM预训练中验证了普适性与跨尺度外推能力。

摘要:

大型基础模型通常在来自多个领域的数据上训练,数据混合(即各领域数据的使用占比)对模型性能起着关键作用。选择这种混合比例的标准方法依赖试错,这在大规模预训练中变得不切实际。我们提出了一种系统性方法,利用缩放定律确定任意目标领域的最优数据混合。我们的方法能准确预测规模为$N$的模型在使用$D$个token和特定领域权重向量$h$训练时的损失。我们通过在三种不同的大规模场景中验证这些缩放定律的预测能力,证实了其普适性:大型语言模型(LLM)、原生多模态模型(NMM)以及大型视觉模型(LVM)的预训练。我们进一步表明,这些缩放定律可外推至新的数据混合并跨尺度适用:其参数可通过少量小规模训练运行准确估计,并用于估算更大规模和未见领域权重下的性能。这些缩放定律能够推导给定训练预算($N$,$D$)下任意目标领域的最优领域权重,为成本高昂的试错方法提供了一种有原则的替代方案。

英文摘要:

Large foundation models are typically trained on data from multiple domains, with the data mixture--the proportion of each domain used--playing a critical role in model performance. The standard approach to selecting this mixture relies on trial and error, which becomes impractical for large-scale pretraining. We propose a systematic method to determine the optimal data mixture for any target domain using scaling laws. Our approach accurately predicts the loss of a model of size $N$ trained with $D$ tokens and a specific domain weight vector $h$. We validate the universality of these scaling laws by demonstrating their predictive power in three distinct and large-scale settings: large language model (LLM), native multimodal model (NMM), and large vision models (LVM) pretraining. We further show that these scaling laws can extrapolate to new data mixtures and across scales: their parameters can be accurately estimated using a few small-scale training runs, and used to estimate the performance at larger scales and unseen domain weights. The scaling laws allow to derive the optimal domain weights for any target domain under a given training budget ($N$,$D$), providing a principled alternative to costly trial-and-error methods.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑