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

从混合数据中语言模型的最优分割以专用于特定领域

Optimal Splitting of Language Models from Mixtures to Specialized Domains

Apple(苹果公司);National University of Singapore(新加坡国立大学)

Skyler Seto, Pierre Ablin, Anastasiia Filippova, Jiayuan Ye, Louis Bethune, Angelos Katharopoulos, David Grangier

AI总结:

本文提出了一种方法,通过独立预训练多个模型并利用缩放定律确定预训练和继续预训练之间的最佳计算分配,从而提升不同模型大小和计算预算下的常识知识和推理基准性能。

摘要:

语言模型在多种知识、语言和推理任务上表现出色,得益于可用的预训练数据规模和多样性。标准训练配方是一种两阶段范式:首先在完整数据集上预训练,然后在高质量的专用数据子集上进行专业化。在多领域设置中,这涉及在每个专用领域上继续预训练多个模型,称为分割模型训练。我们提出了一种方法,通过独立预训练多个模型在通用预训练语料库上,并利用缩放定律确定预训练和继续预训练之间的最佳计算分配。我们的方法能够准确预测具有N规模的模型在D预训练和D'专业化令牌下的损失,并扩展到更大的模型规模和令牌数量。应用于语言模型训练时,我们的方法在不同模型大小和计算预算下的常识知识和推理基准上表现一致提升。

英文摘要:

Language models achieve impressive performance on a variety of knowledge, language, and reasoning tasks due to the scale and diversity of pretraining data available. The standard training recipe is a two-stage paradigm: pretraining first on the full corpus of data followed by specialization on a subset of high quality, specialized data from the full corpus. In the multi-domain setting, this involves continued pretraining of multiple models on each specialized domain, referred to as split model training. We propose a method for pretraining multiple models independently over a general pretraining corpus, and determining the optimal compute allocation between pretraining and continued pretraining using scaling laws. Our approach accurately predicts the loss of a model of size N with D pretraining and D' specialization tokens, and extrapolates to larger model sizes and number of tokens. Applied to language model training, our approach improves performance consistently across common sense knowledge and reasoning benchmarks across different model sizes and compute budgets.

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

↑