arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2302.06586cs.LGcs.AIcs.CV
收藏

可缝合神经网络

Stitchable Neural Networks

Monash University(莫纳什大学)

Zizheng Pan, Jianfei Cai, Bohan Zhuang

摘要:

公共模型动物园包含大量强大的预训练模型家族(例如,ResNet/DeiT)已经达到了前所未有的范围,这对深度学习的成功做出了重大贡献。由于每个模型家族都由具有不同尺度的预训练模型组成(例如,DeiT-Ti/S/B),它自然产生了一个基本的问题,如何有效地组装这些现成的模型在一个家庭的动态准确性,效率在运行时的权衡。为此,我们提出了缝合神经网络(SN-网络),一种新的可扩展的和有效的模型部署框架。它廉价地产生了许多具有不同复杂性和性能权衡的网络,给定了一系列预先训练的神经网络,我们称之为锚。具体来说,SN-Net将锚点拆分到块/层上,然后用简单的缝合层将它们缝合在一起,以将激活从一个锚点映射到另一个锚点。只需几次训练,SN-Net就可以有效地在不同尺度的锚点性能之间进行插值。在运行时,SN-Net可以通过切换拼接位置来即时适应动态资源约束。对ImageNet分类的大量实验表明,SN-Net可以获得与许多单独训练的网络相当甚至更好的性能,同时支持多种部署场景。例如,通过拼接Swin Transformers,我们用一个网络挑战Timm模型动物园中的数百个模型。我们相信这个新的弹性模型框架可以作为更广泛社区进一步研究的强大基线。

英文摘要:

The public model zoo containing enormous powerful pretrained model families (e.g., ResNet/DeiT) has reached an unprecedented scope than ever, which significantly contributes to the success of deep learning. As each model family consists of pretrained models with diverse scales (e.g., DeiT-Ti/S/B), it naturally arises a fundamental question of how to efficiently assemble these readily available models in a family for dynamic accuracy-efficiency trade-offs at runtime. To this end, we present Stitchable Neural Networks (SN-Net), a novel scalable and efficient framework for model deployment. It cheaply produces numerous networks with different complexity and performance trade-offs given a family of pretrained neural networks, which we call anchors. Specifically, SN-Net splits the anchors across the blocks/layers and then stitches them together with simple stitching layers to map the activations from one anchor to another. With only a few epochs of training, SN-Net effectively interpolates between the performance of anchors with varying scales. At runtime, SN-Net can instantly adapt to dynamic resource constraints by switching the stitching positions. Extensive experiments on ImageNet classification demonstrate that SN-Net can obtain on-par or even better performance than many individually trained networks while supporting diverse deployment scenarios. For example, by stitching Swin Transformers, we challenge hundreds of models in Timm model zoo with a single network. We believe this new elastic model framework can serve as a strong baseline for further research in wider communities.

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

↑