Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

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

About

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.

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

Related benchmarks

TaskDatasetResultRank
Semantic segmentationADE20K (val)
mIoU52.4
2888
Object DetectionCOCO 2017 (val)--
2643
Image ClassificationImageNet-1K 1.0 (val)
Top-1 Accuracy86.6
1952
Image ClassificationImageNet-1k (val)
Top-1 Accuracy83.5
1469
Instance SegmentationCOCO 2017 (val)
APm0.465
1201
ClassificationImageNet-1K 1.0 (val)
Top-1 Accuracy (%)83.5
1163
Object DetectionCOCO (val)--
633
Image ClassificationImageNet-1K
Top-1 Acc83.5
600
Semantic segmentationCityscapes (val)--
572
Image ClassificationImageNet-1k (val)
Top-1 Accuracy87.8
543
Showing 10 of 21 rows

Other info

Code

Follow for update