arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2109.03810cs.CV
收藏

规模化的ReLU对培训视觉Transformer的重要性

Scaled ReLU Matters for Training Vision Transformers

Alibaba Group(阿里巴巴集团)

Pichao Wang, Xue Wang, Hao Luo, Jingkai Zhou, Zhipeng Zhou, Fan Wang, Hao Li, Rong Jin

摘要:

视觉Transformer(ViT)已经成为卷积神经网络(CNN)的替代设计范例。然而,ViTs的训练比CNN困难得多,因为它对训练参数敏感,例如学习率,优化器和预热时期。在~ \cite{xiao2021early}中对训练困难的原因进行了经验分析,作者推测问题在于ViT模型的\textit{patchify-stem},并提出早期卷积有助于Transformers更好地观察。在本文中,我们进一步研究了这个问题,并扩展了上述结论:只有早期卷积对稳定训练没有帮助,但\textit{convolutional stem}(\textit{conv-stem})中的缩放ReLU操作很重要。我们从理论上和经验上验证了\textit{conv-stem}中的缩放ReLU不仅提高了训练稳定性,而且还增加了补丁令牌的多样性,从而通过添加少量参数和触发器来大幅提升峰值性能。此外,进行了大量的实验,以证明以前的ViTs远没有得到很好的训练,进一步表明ViTs有很大的潜力成为CNN的更好的替代品。

英文摘要:

Vision transformers (ViTs) have been an alternative design paradigm to convolutional neural networks (CNNs). However, the training of ViTs is much harder than CNNs, as it is sensitive to the training parameters, such as learning rate, optimizer and warmup epoch. The reasons for training difficulty are empirically analysed in ~\cite{xiao2021early}, and the authors conjecture that the issue lies with the \textit{patchify-stem} of ViT models and propose that early convolutions help transformers see better. In this paper, we further investigate this problem and extend the above conclusion: only early convolutions do not help for stable training, but the scaled ReLU operation in the \textit{convolutional stem} (\textit{conv-stem}) matters. We verify, both theoretically and empirically, that scaled ReLU in \textit{conv-stem} not only improves training stabilization, but also increases the diversity of patch tokens, thus boosting peak performance with a large margin via adding few parameters and flops. In addition, extensive experiments are conducted to demonstrate that previous ViTs are far from being well trained, further showing that ViTs have great potential to be a better substitute of CNNs.

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

↑