arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2307.00154cs.CVcs.AIcs.LG
收藏

缝合 ViTs 是灵活的视觉骨干网络

Stitched ViTs are Flexible Vision Backbones

Monash University(莫纳什大学)

Zizheng Pan, Jing Liu, Haoyu He, Jianfei Cai, Bohan Zhuang

AI总结:

本文提出 SN-Netv2 模型缝合框架,通过双向缝合、资源受限采样和低秩更新学习,使预训练 ViTs 成为支持多样性能-效率权衡的灵活视觉骨干网络,在下游密集预测任务上优于 SN-Netv1。

摘要:

大规模预训练的普通视觉 Transformer(ViTs)已成为许多下游任务的主力模型。然而,现有利用现成 ViTs 的工作在训练和部署方面效率较低,因为采用不同规模的 ViTs 需要分别训练,并且受限于固定的性能-效率权衡。在本文中,我们受到可缝合神经网络(SN-Net)的启发,这是一个新框架,通过缝合预训练模型族来低成本地生成一个覆盖丰富子网络的单一模型,在运行时支持多样的性能-效率权衡。在此基础上,我们提出了 SN-Netv2,一个系统性改进的模型缝合框架,以促进下游任务适配。具体来说,我们首先提出了一种双向缝合方案来扩大缝合空间。然后,我们设计了一种资源受限的采样策略,该策略考虑了空间中潜在的 FLOPs 分布,以实现更好的采样。最后,我们观察到将缝合层学习为低秩更新对下游任务起着至关重要的作用,可以稳定训练并确保良好的 Pareto 前沿。通过在 ImageNet-1K、ADE20K、COCO-Stuff-10K 和 NYUv2 上的大量实验,SN-Netv2 在下游密集预测上展现出优于 SN-Netv1 的性能,并显示出作为灵活视觉骨干网络的强大能力,在训练效率和部署灵活性方面都取得了巨大优势。代码可在 https://github.com/ziplab/SN-Netv2 获取。

英文摘要:

Large pretrained plain vision Transformers (ViTs) have been the workhorse for many downstream tasks. However, existing works utilizing off-the-shelf ViTs are inefficient in terms of training and deployment, because adopting ViTs with individual sizes requires separate trainings and is restricted by fixed performance-efficiency trade-offs. In this paper, we are inspired by stitchable neural networks (SN-Net), which is a new framework that cheaply produces a single model that covers rich subnetworks by stitching pretrained model families, supporting diverse performance-efficiency trade-offs at runtime. Building upon this foundation, we introduce SN-Netv2, a systematically improved model stitching framework to facilitate downstream task adaptation. Specifically, we first propose a two-way stitching scheme to enlarge the stitching space. We then design a resource-constrained sampling strategy that takes into account the underlying FLOPs distributions in the space for better sampling. Finally, we observe that learning stitching layers as a low-rank update plays an essential role on downstream tasks to stabilize training and ensure a good Pareto frontier. With extensive experiments on ImageNet-1K, ADE20K, COCO-Stuff-10K and NYUv2, SN-Netv2 demonstrates superior performance over SN-Netv1 on downstream dense predictions and shows strong ability as a flexible vision backbone, achieving great advantages in both training efficiency and deployment flexibility. Code is available at https://github.com/ziplab/SN-Netv2.

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

↑