Abstract
Feature pyramid has been an efficient method to extract features at different scales. Development over this method mainly focuses on aggregating contextual information at different levels while seldom touching the inter-level correlation in the feature pyramid. Early computer vision methods extracted scale-invariant features by locating the feature extrema in both spatial and scale dimension. Inspired by this, a convolution across the pyramid level is proposed in this study, which is termed pyramid convolution and is a modified 3-D convolution. Stacked pyramid convolutions directly extract 3-D (scale and spatial) features and outperforms other meticulously designed feature fusion modules. Based on the viewpoint of 3-D convolution, an integrated batch normalization that collects statistics from the whole feature pyramid is naturally inserted after the pyramid convolution. Furthermore, we also show that the naive pyramid convolution, together with the design of RetinaNet head, actually best applies for extracting features from a Gaussian pyramid, whose properties can hardly be satisfied by a feature pyramid. In order to alleviate this discrepancy, we build a scale-equalizing pyramid convolution (SEPC) that aligns the shared pyramid convolution kernel only at high-level feature maps. Being computationally efficient and compatible with the head design of most single-stage object detectors, the SEPC module brings significant performance improvement (>4AP increase on MS-COCO2017 dataset) in state-of-the-art one-stage object detectors, and a light version of SEPC also has 3.5AP gain with only around 7% inference time increase. The pyramid convolution also functions well as a stand-alone module in two-stage object detectors and is able to improve the performance by 2AP. The source code can be found at https://github.com/jshilong/SEPC.
Introduction
In object detection, handling objects at vastly different scales is a classic challenge. The standard solution is the Feature Pyramid Network (FPN), which extracts features at multiple resolutions. However, most modern detectors treat these pyramid levels as somewhat independent or use simple fusion (like summing them up), ignoring critical inter-level correlations.
In traditional computer vision (e.g., SIFT), scale-invariance was achieved by searching for extrema across a continuous "scale-space." In deep learning, the "pyramid" built by backbones like ResNet is not a perfect scale-space. As features go deeper, they become semantically complex and "blurry" due to repeated non-linear operations. This creates a discrepancy between the theoretical Gaussian pyramid and the actual feature pyramid, making standard shared convolutions across levels suboptimal.
Methodology
The authors propose Scale-Equalizing Pyramid Convolution (SEPC), which treats the feature pyramid as a 3D tensor to perform convolutions across both spatial and scale dimensions.
Pyramid Convolution (PConv)
Instead of standard 2D convolution, PConv operates across $N$ adjacent levels of the pyramid. The authors noted that the standard RetinaNet head is essentially a special case of a 3D pyramid convolution with a scale-kernel size of 1. By expanding this kernel size to 3, the model can "see" across scales. To accommodate different resolutions, PConv employs varying strides: a stride of 2 for the larger (lower) level, stride 1 for the current level, and an upsampling/stride 0.5 for the smaller (higher) level.
Scale-Equalizing and Normalization
Since deep backbones distort the scale-space, SEPC uses Deformable Convolution to predict offsets for the kernels. At higher pyramid levels, the kernel "deforms" to align its receptive field with lower levels, effectively "equalizing" the pyramid. Additionally, Integrated Batch Normalization (iBN) is introduced. Unlike standard BN which is calculated per level, iBN collects statistics across the entire pyramid, stabilizing training for small, high-level feature maps.
Experimental Results
The researchers evaluated SEPC on the MS COCO 2017 dataset. The module demonstrated significant "plug-and-play" performance gains across various architectures.
- Single-Stage Detectors: SEPC improved detectors like RetinaNet, FCOS, FSAF, and FreeAnchor by approximately 4 AP. FreeAnchor, for instance, jumped from 38.5 to 42.8 AP.
- Efficiency: A "lite" version of SEPC (SEPC-lite) provides a 3.5 AP gain with only a 7% increase in inference time, making it highly practical for real-world deployment.
- Two-Stage Compatibility: Faster R-CNN and Mask R-CNN saw a solid ~2 AP boost when incorporating PConv.
When combined with a ResNext-101 backbone, SEPC achieved 50.1 AP on COCO, surpassing many more complex and computationally heavy architectures.
Conclusion
SEPC effectively bridges the gap between deep feature pyramids and theoretical scale-spaces. By treating the pyramid as a 3D structure and using deformable convolutions for alignment, it provides a substantial performance boost with minimal overhead. Future work may explore more complex 3D kernels or inter-scale attention mechanisms to further exploit these inter-level correlations.
Summary updated