Abstract
Standard Convolutional Neural Networks (CNNs) rely on spatial weight sharing, which ensures efficiency and translation invariance but limits the model's ability to adapt to varying semantic content across an image. We present Dynamic Region-Aware Convolution (DRConv), a novel operator that partitions images into semantically consistent regions and applies specialized, dynamically generated filters to each. DRConv maintains the efficiency of standard convolutions while providing the representational power of local convolutions. Evaluated across ImageNet classification, face recognition, and COCO object detection, DRConv consistently outperforms baseline architectures like MobileNet and ShuffleNet with negligible computational overhead.
Introduction: Beyond Rigid Weight Sharing
The success of modern CNNs is largely attributed to the weight-sharing mechanism, where a single filter is applied across all spatial locations. While this provides translation invariance, it assumes a "one-size-fits-all" approach to feature extraction. Conversely, "local convolutions" assign a unique filter to every pixel, which increases representational capacity but at the cost of massive parameter counts and a loss of translation invariance.
DRConv seeks a middle ground. By identifying semantically similar regions within an image and sharing specialized filters only within those regions, the model can adapt its processing logic to the local context (e.g., treating a face differently than the background) without the drawbacks of purely local methods.
Architecture and Methodology
DRConv is designed as a "plug-and-play" module consisting of three primary components: a Learnable Guided Mask, a Filter Generator, and a Region-Shared Convolutional layer.
- Learnable Guided Mask: This module generates a spatial mask that assigns each pixel to one of $m$ regions. To make this "hard" assignment differentiable, the authors employ a
softmaxapproximation during backpropagation, allowing the partitioning logic to be learned end-to-end. - Filter Generator Module: Instead of using fixed weights, DRConv uses a small sub-network to generate $m$ filters dynamically for each input image. This allows the filters to adapt to specific image characteristics like lighting or pose.
- Region-Shared Convolution: The final operation applies the generated filters to their corresponding regions. Pixels in the same semantic region share the same dynamic filter, preserving local translation invariance.
Semantic Partitioning and Visualizations
The core innovation of DRConv is its ability to automatically discover semantic structures. Visualizations of the guided masks reveal that the network naturally learns to segment images into meaningful parts without explicit supervision.
As shown in the figure above, the masks effectively separate foreground objects from backgrounds and identify specific components, such as facial features or animal limbs. This semantic awareness allows the model to "transfer" complexity from the channel dimension to the spatial dimension, using its parameters more intelligently.
Experimental Results
The researchers benchmarked DRConv across several competitive tasks:
- ImageNet Classification: Integrating DRConv into a ShuffleNetV2-0.5× backbone resulted in a top-1 accuracy of 67.1%, a 6.3% relative improvement over the standard baseline with nearly identical Multiply-Adds (MADDs).
- Face Recognition: On the MegaFace benchmark, DRConv-MobileFaceNet achieved 96.2% accuracy, surpassing specialized local convolution methods while maintaining a significantly smaller parameter footprint.
- Object Detection: Replacing standard 1x1 convolutions in a DetNAS-300M backbone with DRConv improved the COCO $AP^{bbox}$ by 1.8 points (from 36.6 to 38.4).
Conclusion and Future Directions
DRConv provides a powerful mechanism for increasing the representational capacity of efficient networks. By moving from global weight sharing to region-aware dynamic filtering, it achieves state-of-the-art results across multiple vision tasks. Future work may address the spatial discontinuity of masks in shallower layers and optimize the custom kernels for better hardware acceleration on standard GPUs.
Summary updated