Scaling Up Your Kernels to 31x31: Revisiting Large Kernel Design in CNNs
Xiaohan Ding, Xiangyu Zhang, Yizhuang Zhou, Jungong Han, Guiguang, Ding, Jian Sun

TL;DR
This paper introduces RepLKNet, a CNN architecture with large 31x31 kernels inspired by vision transformers, achieving competitive performance and scalability, and challenging the dominance of small kernels in CNN design.
Contribution
The paper proposes a new large-kernel CNN design guideline and introduces RepLKNet, demonstrating that large kernels can outperform small ones in modern CNNs.
Findings
RepLKNet achieves 87.8% top-1 accuracy on ImageNet.
Large-kernel CNNs have larger receptive fields and higher shape bias.
RepLKNet outperforms comparable models on downstream tasks.
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdvanced Neural Network Applications · Brain Tumor Detection and Classification · CCD and CMOS Imaging Sensors
MethodsLarge convolutional kernels · Multi-Head Attention · Attention Is All You Need · Linear Layer · Dropout · Dense Connections · Residual Connection · Layer Normalization · Absolute Position Encodings · Adam
