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

自动渐进学习用于视觉Transformer的有效训练

Automated Progressive Learning for Efficient Training of Vision Transformers

Baidu Research(百度研究院);University of Technology Sydney(悉尼科技大学);Monash University(莫纳什大学);University of Oxford(牛津大学);Sun Yat-sen University(中山大学);Zhejiang University(浙江大学)

Changlin Li, Bohan Zhuang, Guangrun Wang, Xiaodan Liang, Xiaojun Chang, Yi Yang

摘要:

视觉Transformer(ViTs)的最新进展带来了对计算能力的贪婪需求,突出了开发ViTs有效训练方法的迫切需要。渐进式学习是一种在训练过程中模型容量逐渐增长的训练方案,已经开始显示出其在有效训练中的能力。在本文中,我们采取了切实可行的一步,通过定制和自动化渐进式学习的ViTs的有效培训。首先,我们通过引入动量增长(MoGrow)来弥合模型增长带来的差距,为ViTs的渐进式学习开发了一个强大的手动基线。然后,我们提出了自动渐进学习(AutoProg),这是一种有效的训练方案,旨在通过自动增加训练过载来实现无损加速;这是通过自适应地决定模型在渐进学习期间是否,在哪里以及应该增长多少来实现的。具体来说,我们首先放松的增长计划的优化子网络结构优化问题,然后提出了一个弹性超网的子网络性能的一次性估计。通过循环利用超网的参数,将搜索开销降到最低。在ImageNet上使用DeiT和VOLO两个代表性的ViT模型进行了大量的有效训练实验,结果表明AutoProg可以将ViT训练加速高达85.1%,而不会降低性能。代码:https://github.com/changlin31/AutoProg

英文摘要:

Recent advances in vision Transformers (ViTs) have come with a voracious appetite for computing power, high-lighting the urgent need to develop efficient training methods for ViTs. Progressive learning, a training scheme where the model capacity grows progressively during training, has started showing its ability in efficient training. In this paper, we take a practical step towards efficient training of ViTs by customizing and automating progressive learning. First, we develop a strong manual baseline for progressive learning of ViTs, by introducing momentum growth (MoGrow) to bridge the gap brought by model growth. Then, we propose automated progressive learning (AutoProg), an efficient training scheme that aims to achieve lossless acceleration by automatically increasing the training overload on-the-fly; this is achieved by adaptively deciding whether, where and how much should the model grow during progressive learning. Specifically, we first relax the optimization of the growth schedule to sub-network architecture optimization problem, then propose one-shot estimation of the sub-network performance via an elastic supernet. The searching overhead is reduced to minimal by recycling the parameters of the supernet. Extensive experiments of efficient training on ImageNet with two representative ViT models, DeiT and VOLO, demonstrate that AutoProg can accelerate ViTs training by up to 85.1% with no performance drop. Code: https://github.com/changlin31/AutoProg

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

↑