NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

GMConv: Modulating Effective Receptive Fields for Convolutional Kernels

Qi Chen, Chao Li, Jia Ning, Stephen Lin, Kun He

TL;DR

This paper introduces GMConv, a novel convolutional kernel that modulates the effective receptive field (ERF) of CNNs by applying a Gaussian-like mask. This approach allows CNNs to better mimic the Gaussian distribution of ERFs, leading to improved performance in image classification and object detection tasks without significant computational overhead.

What Problem Does This Paper Address?

Convolutional Neural Networks (CNNs) have been the backbone of computer vision for years, but their fundamental building blocks, convolutional kernels, typically operate with fixed, square receptive fields (RFs). While the network's performance is ultimately dictated by its effective receptive field (ERF) – the region of the input that truly influences an output pixel – this ERF is not directly controlled by the kernel shape. Existing research has shown that ERFs often exhibit a Gaussian distribution, meaning certain input regions contribute more than others. However, standard CNN kernels don't inherently leverage this property. This paper aims to bridge this gap by proposing a method to explicitly modulate the convolutional kernel to better approximate the desirable Gaussian-shaped ERF, thereby enhancing CNN performance.

Methods

The core innovation is the Gaussian Mask Convolutional Kernel (GMConv). GMConv introduces a concentric Gaussian mask that is applied over the standard convolutional kernel. This mask refines the kernel's response, effectively shaping its receptive field to be more Gaussian-like.

The authors propose two versions:

  • Static GMConv (S-GMConv): This version uses a single parameter ($\sigma$) to define a circular Gaussian mask. It's a straightforward drop-in replacement for standard convolutions and can be trained end-to-end.
  • Dynamic GMConv (D-GMConv): This more advanced version uses a learnable module to predict parameters for an elliptical Gaussian mask. This allows for more flexible RF modulation, adapting to different input features. The sigma module is inspired by the Squeeze-and-Excitation mechanism, using global pooling to generate channel-wise context vectors that inform the mask parameters.

The mask is generated using either a 1D or 2D Gaussian function, normalized to avoid extreme values. The resulting masked kernel is then used in the convolution operation.

Datasets

The paper evaluates GMConv on the following datasets:

  • CIFAR-10 and CIFAR-100: Used for image classification experiments with ResNet architectures.
  • ImageNet: Used for image classification experiments with AlexNet, ResNet, and MobileNetV2 architectures.
  • COCO 2017: Used for object detection experiments with Faster R-CNN and Cascade R-CNN, using ResNet-50-FPN as the backbone.

Key Insights and Ideas

  • ERF Matters More Than RF: The paper reinforces the idea that the effective receptive field (ERF), not just the geometric receptive field (RF), is crucial for CNN performance.
  • Gaussian ERFs are Desirable: The observation that ERFs often follow a Gaussian distribution is leveraged to design a kernel that explicitly mimics this shape.
  • Masking is Key: Instead of designing entirely new kernel shapes, GMConv uses a mask to modulate existing square kernels, offering a more efficient way to achieve flexible RFs.
  • Static vs. Dynamic Trade-off: S-GMConv offers simplicity and efficiency, while D-GMConv provides greater flexibility at the cost of slightly increased complexity.
  • Layer-Specific RF Preferences: The research suggests that shallower layers benefit from smaller receptive fields, while deeper layers prefer larger ones, a finding that can inform future CNN architectures.
  • Stem Layer Importance: Even though the stem layer is a small part of the network, modifications here (using D-GMConv) can significantly impact overall performance.

Key Results

  • Image Classification: GMConv consistently improved Top-1 accuracy on ImageNet across various models. For instance, AlexNet saw a boost of 0.98% and ResNet-50 by 0.85%. Similar improvements were observed on CIFAR datasets.
  • Object Detection: On COCO, GMConv improved AP by 0.8% for Faster R-CNN and 0.5% for Cascade R-CNN, particularly benefiting the detection of medium-sized objects.
  • Efficiency: GMConv introduces negligible computational overhead as the mask can be integrated into the kernel weights after training.
  • Visualization: RF mask visualizations showed that S-GMConv tends to shrink receptive fields in shallow layers and preserve them in deeper layers, aligning with the observed performance trends.

Limitations and Future Work

  • MobileNetV2 Anomaly: An exception was noted where S-GMConv showed a slight decrease in performance on MobileNetV2. The authors hypothesize this might be due to MobileNetV2's reliance on small 3x3 kernels throughout, making it less receptive to RF shrinking in shallow layers.
  • D-GMConv Convergence: The paper mentions that pure D-GMConv variants were difficult to converge and achieve reasonable accuracy, suggesting that combining it with S-GMConv is a more practical approach.
  • Future Directions: The authors suggest that their findings on layer-specific RF preferences could guide future CNN architecture designs. They also highlight the potential of combining GMConv with other advanced techniques like deformable convolutions for further performance gains.

Summary updated

BibTeX
@article{chen2023gmconv,
  author = {Qi Chen and Chao Li and Jia Ning and Stephen Lin and Kun He},
  title = {{GMConv: Modulating Effective Receptive Fields for Convolutional Kernels}},
  journal = {IEEE Trans. Neural Networks Learn. Syst.},
  year = {2023},
}
Figure