[Paper Review] $ShiftwiseConv:$ Small Convolutional Kernel with Large Kernel Effect
The paper introduces the shift-wise operator to emulate large convolutional kernels using small kernels with shift and sparse group convolutions, achieving strong ImageNet performance with lower cost.
Large kernels make standard convolutional neural networks (CNNs) great again over transformer architectures in various vision tasks. Nonetheless, recent studies meticulously designed around increasing kernel size have shown diminishing returns or stagnation in performance. Thus, the hidden factors of large kernel convolution that affect model performance remain unexplored. In this paper, we reveal that the key hidden factors of large kernels can be summarized as two separate components: extracting features at a certain granularity and fusing features by multiple pathways. To this end, we leverage the multi-path long-distance sparse dependency relationship to enhance feature utilization via the proposed Shiftwise (SW) convolution operator with a pure CNN architecture. In a wide range of vision tasks such as classification, segmentation, and detection, SW surpasses state-of-the-art transformers and CNN architectures, including SLaK and UniRepLKNet. More importantly, our experiments demonstrate that $3 imes 3$ convolutions can replace large convolutions in existing large kernel CNNs to achieve comparable effects, which may inspire follow-up works. Code and all the models at https://github.com/lidc54/shift-wiseConv.
Motivation & Objective
- Motivate CNNs to achieve large-kernel receptive fields without hardware-unfriendly large kernels.
- Propose the shift-wise operator that decomposes large kernels into small ones with shift-based aggregation.
- Introduce coarse-grained sparsity (grouped shifts) and reparameterization to boost performance and efficiency.
- Demonstrate comparable accuracy to large-kernel baselines on ImageNet-1K with reduced parameters/compute.
Proposed method
- Decompose a large MxN kernel into multiple small kxk kernels and apply a shift to each result to emulate the large kernel effect.
- Introduce a sparse group convolution via pruning to create long-range dependencies while maintaining hardware efficiency.
- Combine ghost and reparameterization techniques to fuse multi-branch savings into a single inference path.
- Define focus length and focus width to generalize the shift-wise operator to various kernel shapes and sizes.
- Apply a shared sparse mask across branches to enable reparameterization during inference while preserving structure.
Experimental results
Research questions
- RQ1Can small convolution kernels, combined with shift operations, replicate the receptive field of large kernels?
- RQ2Does coarse-grained sparsity in shift-wise grouping provide sparse long-range dependencies with hardware efficiency?
- RQ3How does the shift-wise operator compare to existing large-kernel CNN approaches in terms of parameters, FLOPs, and accuracy on ImageNet-1K?
Key findings
- Shift-wise modules achieve large-kernel effects with substantially fewer parameters and FLOPs than some large-kernel baselines.
- On ImageNet-1K, shift-wise variants reach competitive accuracy with notable reductions in computation and parameters compared to SLaK-type architectures.
- Sparse training yields a data-driven reduction in active groups across stages, increasing early-stage sparsity and reducing later-stage parameters.
- Inference-optimized reparameterization (ghost/rep) enables multi-branch training gains to be merged into a single efficient path.
- Hardware-friendly implementation via reparameterized shift-based convolutions improves throughput on GPUs for comparable accuracy.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.