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

偏好课程:大语言模型应始终在其偏好的数据上进行预训练

Preference Curriculum: LLMs Should Always Be Pretrained on Their Preferred Data

Peking University(北京大学);Beihang University(北京航空航天大学);Tsinghua University(清华大学);Meituan(美团)

Xuemiao Zhang, Liangyu Xu, Feiyu Duan, Yongwei Zhou, Sirui Wang, Rongxiang Weng, Jingang Wang, Xunliang Cai

AI总结:

针对LLMs预训练数据分布固定而模型数据偏好动态变化的问题,提出基于困惑度差异的偏好课程学习框架PDPC,通过量化样本难度差异、预测模型偏好并离线编排数据,使模型性能显著提升,3B模型在1T tokens训练后在MMLU和CMMLU上平均准确率提升超8.1%。

摘要:

大语言模型(LLMs)在整个预训练过程中通常使用一致的数据分布。然而,随着模型能力的提升,其数据偏好会动态变化,这表明在不同训练阶段需要使用不同数据进行预训练。为此,我们提出基于困惑度差异(PD)的偏好课程学习(PDPC)框架,该框架始终感知并使用LLMs偏好的数据进行训练以提升其性能。首先,我们引入PD指标来量化样本对弱模型与强模型的难度差异:PD值高的样本对弱模型而言更难学习,因此更适合安排在预训练后期。其次,我们提出偏好函数来近似并预测LLMs在任意训练步骤的数据偏好,从而离线完成数据集的编排,确保训练连续无中断。在1.3B和3B模型上的实验结果表明,PDPC显著优于基线方法;值得注意的是,在1T tokens上训练的3B模型在MMLU和CMMLU上的平均准确率提升超过8.1%。

英文摘要:

Large language models (LLMs) generally utilize a consistent data distribution throughout the pretraining process. However, as the model's capability improves, it is intuitive that its data preferences dynamically change, indicating the need for pretraining with different data at various training stages. To achieve it, we propose the Perplexity Difference (PD) based Preference Curriculum learning (PDPC) framework, which always perceives and uses the data preferred by LLMs to train and boost them. First, we introduce the PD metric to quantify the difference in how challenging a sample is for weak versus strong models. Samples with high PD are more challenging for weak models to learn and are more suitable to be arranged in the later stage of pretraining. Second, we propose the preference function to approximate and predict the data preference of the LLM at any training step, so as to complete the arrangement of the dataset offline and ensure continuous training without interruption. Experimental results on 1.3B and 3B models demonstrate that PDPC significantly surpasses baselines. Notably, the 3B model trained on 1T tokens achieves an increased average accuracy of over 8.1% across MMLU and CMMLU.

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

↑