通过最优传输进行模型融合
Model Fusion via Optimal Transport
AI总结:
提出基于最优传输的逐层模型融合算法,通过软对齐神经元实现异构非独立同分布数据上的一次性知识迁移,显著优于普通平均并可作为集成替代,同时支持不同宽度网络组合与模型压缩。
摘要:
组合不同模型是机器学习应用中广泛使用的范式。最常见的方法是构建模型集成并对各自的预测取平均,但这种方法常因内存和计算方面的资源限制而不可行,这些资源需求随模型数量线性增长。我们提出了一种针对神经网络的逐层模型融合算法,利用最优传输在平均相关参数前对模型间的神经元进行(软)对齐。我们证明,这能成功在异构非独立同分布数据上训练的神经网络间实现“一次性”知识迁移(即无需任何重新训练)。在独立同分布和非独立同分布设置下,我们表明该方法显著优于普通平均,并展示在适度微调时它如何作为集成的有效替代,适用于标准卷积网络(如VGG11)、残差网络(如ResNet18)和多层感知机,在CIFAR10、CIFAR100和MNIST上测试。最后,该方法也为组合不同宽度的神经网络参数提供了有原则的途径,我们探索了其在模型压缩中的应用。代码见 https://github.com/sidak/otfusion。
英文摘要:
Combining different models is a widely used paradigm in machine learning applications. While the most common approach is to form an ensemble of models and average their individual predictions, this approach is often rendered infeasible by given resource constraints in terms of memory and computation, which grow linearly with the number of models. We present a layer-wise model fusion algorithm for neural networks that utilizes optimal transport to (soft-) align neurons across the models before averaging their associated parameters. We show that this can successfully yield "one-shot" knowledge transfer (i.e, without requiring any retraining) between neural networks trained on heterogeneous non-i.i.d. data. In both i.i.d. and non-i.i.d. settings , we illustrate that our approach significantly outperforms vanilla averaging, as well as how it can serve as an efficient replacement for the ensemble with moderate fine-tuning, for standard convolutional networks (like VGG11), residual networks (like ResNet18), and multi-layer perceptrons on CIFAR10, CIFAR100, and MNIST. Finally, our approach also provides a principled way to combine the parameters of neural networks with different widths, and we explore its application for model compression. The code is available at the following link, https://github.com/sidak/otfusion.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。