Abstract
Many convolutional neural networks (CNNs) rely on progressive downsampling of their feature maps to increase the network’s receptive field and decrease computational cost. However, this comes at the price of losing granularity in the feature maps, limiting the ability to correctly understand images or recover fine detail in dense prediction tasks. To address this, common practice is to replace the last few downsampling operations in a CNN with dilated convolutions, allowing to retain the feature map resolution without reducing the receptive field, albeit increasing the computational cost. This allows to trade off predictive performance against cost, depending on the output feature resolution. By either regularly downsampling or not downsampling the entire feature map, existing work implicitly treats all regions of the input image and subsequent feature maps as equally important, which generally does not hold. We propose an adaptive downsampling scheme that generalizes the above idea by allowing to process informative regions at a higher resolution than less informative ones. In a variety of experiments, we demonstrate the versatility of our adaptive downsampling strategy and empirically show that it improves the cost-accuracy trade-off of various established CNNs.
Introduction
In the design of modern Convolutional Neural Networks (CNNs), downsampling is a fundamental operation used to expand the receptive field and manage computational complexity. However, uniform downsampling is inherently destructive, discarding high-frequency spatial information that is often critical for dense prediction tasks such as semantic segmentation or keypoint detection. While dilated (atrous) convolutions offer a way to maintain resolution without sacrificing the receptive field, they do so at a significant computational premium.
The core inefficiency lies in the uniform treatment of all spatial regions. In most natural images, informative content—such as object boundaries or intricate textures—is sparse. For instance, a bird's silhouette requires high-resolution processing, whereas the surrounding clear sky can be represented at a much lower resolution without loss of semantic meaning. This research introduces a content-adaptive downsampling strategy that dynamically allocates computational resources to regions of high importance.
Methodology
The proposed framework replaces standard, uniform downsampling with a content-adaptive scheme. The network utilizes a downsampling mask to determine which spatial patches should be reduced in resolution and which should remain at full resolution.
Multi-resolution Grids and Sparse Convolutions
The resulting feature maps form a hybrid, quadtree-like structure. To process these non-uniform grids efficiently, the authors leverage Submanifold Sparse Convolutions (SSC). A key technical contribution is the modification of the SSC algorithm to ensure that "inactive" (low-resolution) pixels correctly contribute to their neighbors, preserving the mathematical equivalence to a dense high-resolution feature map in the selected regions. This ensures that the network's receptive field and feature integrity remain intact.
Mask Generation Strategies
The effectiveness of adaptive downsampling depends on the quality of the spatial mask. The researchers explored three primary strategies:
- Oracle Mask: Uses ground-truth information to identify optimal regions for high-resolution processing, serving as an upper bound for performance.
- Edge Mask: Employs simple, non-learnable filters (e.g., Sobel) to identify object boundaries and high-frequency details.
- Learned Mask: Utilizes a lightweight auxiliary CNN branch to predict a saliency-like importance map directly from the features.
Experimental Results
The approach was validated on two benchmarks: Cityscapes for urban semantic segmentation and HPatches for local image descriptors.
Semantic Segmentation
On the Cityscapes dataset using a ResNet-101 backbone, the adaptive method achieved a mean Intersection over Union (mIoU) of 0.775. This performance is virtually identical to the high-resolution baseline but was achieved with a 35% reduction in computational cost (measured in Multiply-Adds) and a 40% improvement in inference speed.
Keypoint Description
The gains were even more pronounced in keypoint tasks. The adaptive model reached the same accuracy as the standard high-resolution model while requiring 70% fewer computations. Furthermore, the architecture demonstrated significant robustness; when provided with suboptimal or even random masks, the performance gracefully degraded to that of a standard low-resolution model rather than failing catastrophically.
Conclusion and Future Work
Content-adaptive downsampling provides a powerful mechanism for balancing accuracy and efficiency in CNNs. By treating spatial resolution as a dynamic parameter rather than a fixed architectural choice, models can "focus" their computational budget where it is most needed.
While the theoretical savings in FLOPs are substantial, current "wall-clock" speedups are constrained by the fact that modern hardware and deep learning libraries are heavily optimized for dense, regular tensors. Future work will focus on optimizing sparse kernels for better hardware utilization and extending this adaptive logic to temporal (video) and volumetric (3D) data.
Summary updated