arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2407.18743cs.CL
收藏

迈向大型语言模型的高效且有效的持续预训练

Towards Effective and Efficient Continual Pre-training of Large Language Models

Renmin University of China(中国人民大学)
Jie Chen, Zhipeng Chen, Jiapeng Wang, Kun Zhou, Yutao Zhu, Jinhao Jiang, Yingqian Min, Wayne Xin Zhao, Zhicheng Dou, Jiaxin Mao, Yankai Lin, Ruihua Song, Jun Xu… 展开作者

Jie Chen, Zhipeng Chen, Jiapeng Wang, Kun Zhou, Yutao Zhu, Jinhao Jiang, Yingqian Min, Wayne Xin Zhao, Zhicheng Dou, Jiaxin Mao, Yankai Lin, Ruihua Song, Jun Xu, Xu Chen, Rui Yan, Zhewei Wei, Di Hu, Wenbing Huang, Ji-Rong Wen

AI总结:

本文提出一种基于数据混合与课程策略的持续预训练方法,通过合成多学科科学问答数据训练Llama-3,显著提升了模型的中文能力和科学推理能力,同时保留了原有能力。

摘要:

持续预训练(CPT)一直是使语言模型适应特定领域或任务的重要方法。为了使CPT方法更具可追溯性,本文提出了一份关于持续预训练Llama-3(8B)的技术报告,该报告显著增强了骨干模型的中文语言能力和科学推理能力。为了在保留原有能力的同时增强新能力,我们通过利用现有数据集和合成高质量数据集,设计了特定的数据混合和课程策略。具体而言,我们基于相关网页合成了多学科科学问答(QA)对,并随后将这些合成数据纳入以提升Llama-3的科学推理能力。我们将经过CPT后的模型称为Llama-3-SynE(Synthetic data Enhanced Llama-3)。我们还展示了使用相对较小模型TinyLlama进行的调优实验,并将得出的发现用于训练骨干模型。在多个评估基准上的广泛实验表明,我们的方法能大幅提升骨干模型的性能,包括通用能力(在C-Eval上提升8.81,在CMMLU上提升6.31)和科学推理能力(在MATH上提升12.00,在SciEval上提升4.13),且未损害原有能力。我们的模型、数据和代码可在https://github.com/RUC-GSAI/Llama-3-SynE获取。

英文摘要:

Continual pre-training (CPT) has been an important approach for adapting language models to specific domains or tasks. To make the CPT approach more traceable, this paper presents a technical report for continually pre-training Llama-3 (8B), which significantly enhances the Chinese language ability and scientific reasoning ability of the backbone model. To enhance the new abilities while retaining the original abilities, we design specific data mixture and curriculum strategies by utilizing existing datasets and synthesizing high-quality datasets. Specifically, we synthesize multidisciplinary scientific question and answer (QA) pairs based on related web pages, and subsequently incorporate these synthetic data to improve the scientific reasoning ability of Llama-3. We refer to the model after CPT as Llama-3-SynE (Synthetic data Enhanced Llama-3). We also present the tuning experiments with a relatively small model -- TinyLlama, and employ the derived findings to train the backbone model. Extensive experiments on a number of evaluation benchmarks show that our approach can largely improve the performance of the backbone models, including both the general abilities (+8.81 on C-Eval and +6.31 on CMMLU) and the scientific reasoning abilities (+12.00 on MATH and +4.13 on SciEval), without hurting the original capacities. Our model, data, and codes are available at https://github.com/RUC-GSAI/Llama-3-SynE.

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

↑