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

从较小的语言模型迁移训练

Transfer training from smaller language model

Han Zhang

摘要:

大语言模型已经在一系列任务中实现了最先进的准确性。然而,训练大语言模型需要大量的计算资源,随着越来越多的开源预训练模型的出现,如何充分利用现有模型是值得研究的问题。通过将训练好的小模型转化为大模型,我们找到了一种节省训练时间和资源成本的方法。通过从源模型中复制权值,并在其上填充零或小的初始化值,使源模型和目标模型具有近似的输出,从而从较小的源模型初始化较大的目标模型。由于Transformer结构中的块矩阵乘法和残差连接,这是有效的。我们在几个数据集上测试了目标模型,发现它仍然与源模型相当。当我们继续训练目标模型时,训练损失可以从较小的值开始。

英文摘要:

Large language models have led to state-of-the-art accuracies across a range of tasks. However,training large language model needs massive computing resource, as more and more open source pre-training models are available, it is worthy to study how to take full advantage of available model. We find a method to save training time and resource cost by changing the small well-trained model to large model. We initialize a larger target model from a smaller source model by copy weight values from source model and padding with zeros or small initialization values on it to make the source and target model have approximate outputs, which is valid due to block matrix multiplication and residual connection in transformer structure. We test the target model on several data sets and find it is still comparable with the source model. When we continue training the target model, the training loss can start from a smaller value.

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

↑