arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.04103cs.CL
收藏

面向大语言模型版本更新的学习率路径切换训练范式

A Learning Rate Path Switching Training Paradigm for Version Updates of Large Language Models

School of Informatics, Xiamen University(厦门大学信息学院);vivo AI Lab(vivo人工智能实验室);Institute of Artificial Intelligence, Xiamen University(厦门大学人工智能研究院);Shanghai Artificial Intelligence Laboratory(上海人工智能实验室)

Zhihao Wang, Shiyu Liu, Jianheng Huang, Zheng Wang, Yixuan Liao, Xiaoxin Chen, Junfeng Yao, Jinsong Su

AI总结:

针对大语言模型版本更新中从头预训练性能优但成本高、持续预训练成本低但性能差的问题,提出学习率路径切换范式,在维持性能的同时大幅降低多版本训练总成本。

摘要:

由于新数据不断涌现,版本更新已成为大语言模型(Large Language Models, LLMs)不可或缺的需求。LLMs版本更新的训练范式包括从头预训练(pre-training from scratch, PTFS)和持续预训练(continual pre-training, CPT)。初步实验表明,PTFS能取得更优的预训练性能,而CPT的训练成本更低;并且随着版本更新推进,二者在性能和训练成本上的差距会逐步拉大。为探究这一现象的深层原因,我们分析了CPT两个阶段中学习率调整的作用:一是初始化检查点准备阶段,二是基于该检查点开展持续预训练的阶段。我们发现,第一阶段采用大学习率、第二阶段具备完整的学习率衰减过程,对LLMs版本更新至关重要。据此,我们提出学习率路径切换训练范式。该范式包含一条主路径(以最大学习率预训练一个LLM)和多条分支路径(每条对应LLM结合新增训练数据的一次更新)。大量实验验证了该范式的有效性与泛化性:在训练四个版本的LLMs时,该范式将总训练成本降至PTFS的58%,同时保持了相当的预训练性能。

英文摘要:

Due to the continuous emergence of new data, version updates have become an indispensable requirement for Large Language Models (LLMs). The training paradigms for version updates of LLMs include pre-training from scratch (PTFS) and continual pre-training (CPT). Preliminary experiments demonstrate that PTFS achieves better pre-training performance, while CPT has lower training cost. Moreover, their performance and training cost gaps widen progressively with version updates. To investigate the underlying reasons for this phenomenon, we analyze the effect of learning rate adjustments during the two stages of CPT: preparing an initialization checkpoint and continual pre-training based on this checkpoint. We find that a large learning rate in the first stage and a complete learning rate decay process in the second stage are crucial for version updates of LLMs. Hence, we propose a learning rate path switching training paradigm. Our paradigm comprises one main path, where we pre-train a LLM with the maximal learning rate, and multiple branching paths, each of which corresponds to an update of the LLM with newly-added training data. Extensive experiments demonstrate the effectiveness and generalization of our paradigm. Particularly, when training four versions of LLMs, our paradigm reduces the total training cost to 58% compared to PTFS, while maintaining comparable pre-training performance.

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

↑