arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.10699cs.LGcs.AI
收藏

利用多线性算子复用预训练模型以实现高效训练

Reusing Pretrained Models by Multi-linear Operators for Efficient Training

Harbin Institute of Technology Shenzhen(哈尔滨工业大学(深圳));Peking University(北京大学);Huawei Noah’s Ark Lab(华为诺亚方舟实验室);Pengcheng Laboratory(鹏城实验室)

Yu Pan, Ye Yuan, Yichun Yin, Zenglin Xu, Lifeng Shang, Xin Jiang, Qun Liu

AI总结:

本文提出利用多线性算子将目标模型每个权重与预训练模型所有权重线性关联,以解决部分映射忽略权重间关联的问题,在DeiT-base迁移中节省76%计算成本,优于现有方法。

摘要:

从零开始训练大型模型通常需要耗费大量资源。针对这一问题,近期研究如bert2BERT和LiGO通过复用小型预训练模型来初始化大型模型(称为“目标模型”),从而显著加速训练过程。尽管这些先前研究取得了成功,但它们仅通过映射部分权重来扩展预训练模型,忽略了整个模型中潜在的关联性。正如本文所示,预训练模型和目标模型的权重之间存在层间和层内交互。因此,部分映射可能无法捕捉完整信息,导致扩展不充分。在本文中,我们提出一种方法,将目标模型的每个权重与预训练模型的所有权重进行线性关联,以进一步增强加速能力。我们利用多线性算子来降低计算和空间复杂度,使资源需求可接受。实验表明,我们的方法在从DeiT-small迁移到DeiT-base时节省了76%的计算成本,分别比bert2BERT高出12.0%和比LiGO高出20.7%。

英文摘要:

Training large models from scratch usually costs a substantial amount of resources. Towards this problem, recent studies such as bert2BERT and LiGO have reused small pretrained models to initialize a large model (termed the ``target model''), leading to a considerable acceleration in training. Despite the successes of these previous studies, they grew pretrained models by mapping partial weights only, ignoring potential correlations across the entire model. As we show in this paper, there are inter- and intra-interactions among the weights of both the pretrained and the target models. As a result, the partial mapping may not capture the complete information and lead to inadequate growth. In this paper, we propose a method that linearly correlates each weight of the target model to all the weights of the pretrained model to further enhance acceleration ability. We utilize multi-linear operators to reduce computational and spacial complexity, enabling acceptable resource requirements. Experiments demonstrate that our method can save 76\% computational costs on DeiT-base transferred from DeiT-small, which outperforms bert2BERT by +12.0\% and LiGO by +20.7\%, respectively.

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

↑