Initializing Models with Larger Ones

ML POA FT AI Systems and Hardware MCPKD
2023年11月30日
权重初始化在神经网络训练中起着重要作用。已经提出并评估了广泛使用的初始化方法,用于从头开始训练的网络。然而,越来越多的预训练模型现在为解决这个经典的权重初始化问题提供了新的机会。在这项工作中,我们介绍了权重选择,这是一种通过从预训练的较大模型中选择子集来初始化较小模型的方法。这使得可以将预训练权重的知识转移到较小的模型中。我们的实验表明,权重选择可以显著提高小模型的性能并减少它们的训练时间。值得注意的是,它还可以与知识蒸馏一起使用。权重选择为在资源受限的环境中利用预训练模型的能力提供了一种新的方法,我们希望它能成为在大模型时代训练小模型的有用工具。代码可在https://github.com/OscarXZQ/weight-selection上找到。
Weight initialization plays an important role in neural network training. Widely used initialization methods are proposed and evaluated for networks that are trained from scratch. However, the growing number of pretrained models now offers new opportunities for tackling this classical problem of weight initialization. In this work, we introduce weight selection, a method for initializing smaller models by selecting a subset of weights from a pretrained larger model. This enables the transfer of knowledge from pretrained weights to smaller models. Our experiments demonstrate that weight selection can significantly enhance the performance of small models and reduce their training time. Notably, it can also be used together with knowledge distillation. Weight selection offers a new approach to leverage the power of pretrained models in resource-constrained settings, and we hope it can be a useful tool for training small models in the large-model era. Code is available at https://github.com/OscarXZQ/weight-selection.
许愿