语言建模中的规模法则传统上将训练损失量化为数据集规模和模型参数的函数,提供了计算最优估计,但往往忽略了数据质量对模型泛化的影响。在本文中,我们通过在原始公式——有效训练token——中提供数据质量的微观视角,扩展了对规模法则的传统理解,我们认为这是参数受限语言模型性能的关键决定因素。具体而言,我们将所提出的有效训练token这一术语表述为两个易于计算的文本指标的组合:(i) 文本多样性,以及 (ii) 由教师模型衡量的合成性。我们在多样化的采样合成数据集上预训练了超过200个参数规模从25M到1.5B的模型,并估计了将文本质量、模型规模、训练token与八个推理任务准确率分数相关联的常数。我们证明了所估计的常数与真实准确率之间产生了+0.83的皮尔逊相关系数,并在涉及广泛使用的数据技术(如旨在提高数据质量的数据采样和合成)的场景中对其进行了分析。
英文摘要:
Scaling laws in language modeling traditionally quantify training loss as a function of dataset size and model parameters, providing compute-optimal estimates but often neglecting the impact of data quality on model generalization. In this paper, we extend the conventional understanding of scaling law by offering a microscopic view of data quality within the original formulation -- effective training tokens -- which we posit to be a critical determinant of performance for parameter-constrained language models. Specifically, we formulate the proposed term of effective training tokens to be a combination of two readily-computed indicators of text: (i) text diversity and (ii) syntheticity as measured by a teacher model. We pretrained over $200$ models of 25M to 1.5B parameters on a diverse set of sampled, synthetic data, and estimated the constants that relate text quality, model size, training tokens, and eight reasoning task accuracy scores. We demonstrated the estimated constants yield +0.83 Pearson correlation with true accuracies, and analyzed it in scenarios involving widely-used data techniques such as data sampling and synthesis which aim to improve data quality.
Scaling Multi-Hop Training Data via Graph-Constrained Path Selection
The Hong Kong University of Science and Technology(香港科学与技术大学);Hong Kong Generative AI Research and Development Center(香港生成式人工智能研究与发展中心);Hong Kong Baptist University(香港 Baptist 大学)