2025-05-13 · 专家 · 机器学习 · 自然语言处理

Learning Dynamics in Continual Pre-Training for Large Language Models

该论文提出了一个CPT缩放定律,该定律结合了分布偏移和学习率衰减的影响,能够预测CPT过程中任意训练步骤的损失,并帮助优化不同CPT目标的超参数。

更新于 2025-05-13。作者:Xingjin Wang、Howe Tissue、Lu Wang、Linjing Li、Daniel Dajun Zeng。

中文摘要

持续预训练(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.

解读

一句话总结

该论文提出了一个CPT缩放定律,该定律结合了分布偏移和学习率衰减的影响,能够预测CPT过程中任意训练步骤的损失,并帮助优化不同CPT目标的超参数。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源

机器可读索引:llms.txt