Abstract
Convolution has been the cornerstone of computer vision for decades, characterized by spatial-agnostic and channel-specific properties. This paper introduces Involution, a novel neural operator that inverts these design principles. Involution is spatial-specific and channel-agnostic, allowing for large-receptive-field modeling with high efficiency. By dynamically generating kernels based on local context, Involution-based architectures (RedNet) outperform ResNet baselines across classification, detection, and segmentation tasks while significantly reducing parameter counts and computational costs.
Introduction
Standard convolution relies on two fundamental properties: spatial-agnosticism (weight sharing across locations) and channel-specificity (unique filters for each channel). While efficient, these properties limit the model's ability to adapt to diverse visual patterns and often lead to redundancy across channels. Furthermore, the computational cost of large convolutional kernels restricts most models to small 3x3 windows, limiting long-range spatial modeling.
Involution addresses these limitations by flipping the script. It employs kernels that are unique to each spatial location but shared across channels. This shift enables the use of much larger kernels (e.g., 7x7) to capture broader context without the typical parameter explosion associated with standard convolution.
Methodology: The Involution Operator
The core of the proposed method is the involution operator. Unlike convolution, where a fixed filter is applied everywhere, involution generates a unique $K \times K$ kernel for every pixel $(i, j)$ in the feature map.
Spatial-Specific and Channel-Agnostic
- Spatial-specific kernels: Each location $(i, j)$ has its own kernel, allowing the model to adapt its weights to the specific content at that position.
- Channel-agnostic kernels: The same kernel is shared across all channels (or groups of channels) at a given location. This drastically reduces the number of parameters, making large kernels computationally feasible.
- Dynamic Kernel Generation: To handle varying image resolutions, kernels are generated on-the-fly by a small meta-network that takes the feature vector at $(i, j)$ as input.
The authors utilize this operator to build RedNet, a family of architectures that replace the standard 3x3 convolutions in ResNet bottleneck blocks with 7x7 involutions.
Experimental Results
The researchers evaluated RedNet against standard ResNet baselines and other state-of-the-art attention-based models on ImageNet, MS COCO, and Cityscapes.
ImageNet Classification
As shown in the table above, RedNet-50 achieves a top-1 accuracy of 78.4%, surpassing ResNet-50 (76.8%) while using 40% fewer parameters and 34% fewer FLOPs. Notably, RedNet-101 achieves performance comparable to ResNet-152 but with a significantly lower computational budget.
Object Detection and Segmentation
On MS COCO, RedNet-50 improves bounding box AP by up to 2.5% and mask AP by 2.4% over ResNet-50. In semantic segmentation on Cityscapes, RedNet-50 provides a 4.7% absolute increase in mean IoU compared to the baseline.
Discussion and Insights
Involution provides a unifying perspective on self-attention. The authors argue that self-attention can be viewed as a complex form of involution where kernels are generated through Query-Key comparisons. Involution demonstrates that generating kernels from a single pixel's content is often sufficient and more efficient.
By decoupling channel-spatial interactions (kernel generation), spatial interactions (involution), and channel interactions (1x1 convolutions), RedNet achieves a superior accuracy-efficiency trade-off. However, a current limitation is the lack of hardware-level optimization for involution compared to the highly tuned 3x3 convolution kernels in modern GPUs. Future work involves optimizing CUDA implementations and exploring more sophisticated kernel generation methods.
Summary updated