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

将内核扩展到31 x31:重新审视CNN中的大型内核设计

Scaling Up Your Kernels to 31x31: Revisiting Large Kernel Design in CNNs

Beijing National Research Center for Information Science and Technology (BNRist)(北京信息科学与技术国家研究中心);Tsinghua University(清华大学);MEGVII Technology(旷视科技);Aberystwyth University(阿伯里斯特威斯大学)

Xiaohan Ding, Xiangyu Zhang, Yizhuang Zhou, Jungong Han, Guiguang Ding, Jian Sun

摘要:

我们重新审视现代卷积神经网络(CNN)中的大核设计。受视觉Transformer(ViTs)最新进展的启发,在本文中,我们证明了使用几个大卷积核而不是一堆小核可能是一个更强大的范例。我们提出了五项准则,例如,应用重新参数化的大深度卷积,设计高效的高性能大核CNN。根据指导方针,我们提出了RepLKNet,这是一种纯CNN架构,其内核大小为31 x31,而不是常用的3x 3。RepLKNet极大地缩小了CNN和ViT之间的性能差距,例如,在ImageNet和一些典型的下游任务上实现与Swin Transformer相当或更好的结果,具有更低的延迟。RepLKNet还显示出对大数据和大型模型的良好可扩展性,在ImageNet上获得了87.8%的top-1准确率,在ADE 20 K上获得了56.0%的mIoU,这在具有类似模型大小的最先进技术中非常具有竞争力。我们的研究进一步表明,与小核CNN相比,大核CNN具有更大的有效感受野和更高的形状偏差,而不是纹理偏差。代码和模型在https://github.com/megvii-research/RepLKNet。

英文摘要:

We revisit large kernel design in modern convolutional neural networks (CNNs). Inspired by recent advances in vision transformers (ViTs), in this paper, we demonstrate that using a few large convolutional kernels instead of a stack of small kernels could be a more powerful paradigm. We suggested five guidelines, e.g., applying re-parameterized large depth-wise convolutions, to design efficient high-performance large-kernel CNNs. Following the guidelines, we propose RepLKNet, a pure CNN architecture whose kernel size is as large as 31x31, in contrast to commonly used 3x3. RepLKNet greatly closes the performance gap between CNNs and ViTs, e.g., achieving comparable or superior results than Swin Transformer on ImageNet and a few typical downstream tasks, with lower latency. RepLKNet also shows nice scalability to big data and large models, obtaining 87.8% top-1 accuracy on ImageNet and 56.0% mIoU on ADE20K, which is very competitive among the state-of-the-arts with similar model sizes. Our study further reveals that, in contrast to small-kernel CNNs, large-kernel CNNs have much larger effective receptive fields and higher shape bias rather than texture bias. Code & models at https://github.com/megvii-research/RepLKNet.

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

↑