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

大型语言模型持续预训练中的学习动态

Learning Dynamics in Continual Pre-Training for Large Language Models

School of Artificial Intelligence, University of Chinese Academy of Sciences, Beijing, China(人工智能学院,中国科学院大学,北京);State Key Laboratory of Multimodal Artificial Intelligence Systems, Institute of Automation, Chinese Academy of Sciences, Beijing, China(多模态人工智能系统国家重点实验室,自动化研究所,中国科学院,北京)

Xingjin Wang, Howe Tissue, Lu Wang, Linjing Li, Daniel Dajun Zeng

AI总结:

本文研究大型语言模型持续预训练中的学习动态,提出结合分布偏移与学习率退火的缩放定律,可预测损失并优化超参数以平衡通用与领域性能。

摘要:

持续预训练(CPT)已成为将强大的基础模型应用于特定下游任务的一种流行且有效的方法。在本工作中,我们探索了大型语言模型在持续预训练过程中的学习动态。我们特别关注在每个训练步骤中,通用性能和下游领域性能如何演变,其中领域性能通过验证损失来衡量。我们观察到,CPT损失曲线从根本上表征了从一条曲线到另一条隐藏曲线的转变,并且可以通过解耦分布偏移和学习率退火的影响来描述。我们推导出一个结合这两个因素的CPT缩放定律,使得能够预测CPT中任何(持续)训练步骤以及跨学习率调度(LRS)的损失。我们的公式提供了对CPT中几个关键因素的全面理解,包括损失潜力、峰值学习率、训练步骤、回放比例等。此外,我们的方法可以适应于为不同的CPT目标定制训练超参数,例如平衡通用性能和领域特定性能。大量实验表明,我们的缩放定律在各种CPT数据集和训练超参数下均成立。

英文摘要:

Continual Pre-Training (CPT) has become a popular and effective method to apply strong foundation models to specific downstream tasks. In this work, we explore the learning dynamics throughout the CPT process for large language models. We specifically focus on how general and downstream domain performance evolves at each training step, with domain performance measured via validation losses. We have observed that the CPT loss curve fundamentally characterizes the transition from one curve to another hidden curve, and could be described by decoupling the effects of distribution shift and learning rate annealing. We derive a CPT scaling law that combines the two factors, enabling the prediction of loss at any (continual) training steps and across learning rate schedules (LRS) in CPT. Our formulation presents a comprehensive understanding of several critical factors in CPT, including loss potential, peak learning rate, training steps, replay ratio, etc. Moreover, our approach can be adapted to customize training hyper-parameters to different CPT goals such as balancing general and domain-specific performance. Extensive experiments demonstrate that our scaling law holds across various CPT datasets and training hyper-parameters.

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

↑