通过分析数据源的缩放规律,实现领域预训练中数据选择的成本优化。
Using Scaling Laws for Data Source Utility Estimation in Domain-Specific Pre-Training
- 通过多轮训练实验估算不同数据源的缩放规律,替代传统单一指标评估
- 在70亿参数模型上验证,医学与数学领域数据效果差异显著
- 帮助决策者根据算力和成本,科学选择合成数据或网络数据等来源
本文提出一种优化基础模型领域特定预训练数据构建的框架。目标是在第二阶段预训练(即退火阶段)中,针对特定领域对通用预训练模型进行专业化,以高效分配数据采集资源。该方法突破传统点估计方式(如微退火)的局限,通过在不同计算投入下执行多次退火实验,估算数据源的缩放规律。实验表明,现有方法依赖点估计时缺乏计算尺度下的排序不变性,可能导致误判。通过对性能增益与获取成本的系统分析,可为合成数据、用户数据、网络数据等不同来源及算力条件提供成本效益最优的数据选择策略。我们在一个70亿参数的预训练模型上验证了该方法,分别应用于预训练数据中充分覆盖的医学领域和覆盖不足的数学领域。结果表明,仅用微退火点估计会得出错误结论,而基于缩放规律的分析能实现更精准的数据驱动决策。
原文摘要 · Abstract (English)
We introduce a framework for optimizing domain-specific dataset construction in foundation model training. Specifically, we seek a cost-efficient way to estimate the quality of data sources (e.g. synthetically generated or filtered web data, etc.) in order to make optimal decisions about resource allocation for data sourcing from these sources for the stage two pre-training phase, aka annealing, with the goal of specializing a generalist pre-trained model to specific domains. Our approach extends the usual point estimate approaches, aka micro-annealing, to estimating scaling laws by performing multiple annealing runs of varying compute spent on data curation and training. This addresses a key limitation in prior work, where reliance on point estimates for data scaling decisions can be misleading due to the lack of rank invariance across compute scales -- a phenomenon we confirm in our experiments. By systematically analyzing performance gains relative to acquisition costs, we find that scaling curves can be estimated for different data sources. Such scaling laws can inform cost effective resource allocation across different data acquisition methods (e.g. synthetic data), data sources (e.g. user or web data) and available compute resources. We validate our approach through experiments on a pre-trained model with 7 billion parameters. We adapt it to: a domain well-represented in the pre-training data -- the medical domain, and a domain underrepresented in the pretraining corpora -- the math domain. We show that one can efficiently estimate the scaling behaviors of a data source by running multiple annealing runs, which can lead to different conclusions, had one used point estimates using the usual micro-annealing technique instead. This enables data-driven decision-making for selecting and optimizing data sources.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。