TL;DR
While deep learning has revolutionized image classification, object detection remains challenging due to extreme variations in object scales. This paper introduces SNIP (Scale Normalization for Image Pyramids), a novel training paradigm that selectively backpropagates gradients only for objects that fall within a target size range at each scale of an image pyramid. By ensuring the network always processes objects at a resolution close to its pre-training domain, SNIP achieves state-of-the-art performance on the COCO dataset, particularly for tiny objects.
What Problem Does This Paper Address?
Why is object detection so much harder than image classification? One major culprit is scale variation.
When we fine-tune a detector pre-trained on ImageNet, we introduce a massive domain shift. In ImageNet, the median relative scale of an object is over 55% of the image area. In contrast, the median relative scale of an object in the MS COCO dataset is a mere 10.6%—meaning most objects occupy less than 1% of the total image area!
Standard approaches try to solve this using multi-scale training (MST), where images are randomly resized during training. However, MST forces a single network to learn filters for extreme scales simultaneously. At high resolutions, medium-to-large objects become gargantuan and blow up the network's receptive field; at low resolutions, small objects disappear entirely. This paper tackles how to effectively train a network to handle extreme scale variations without degrading its performance on either end of the spectrum.
Methods
Instead of modifying the network architecture to force scale invariance, the authors propose Scale Normalization for Image Pyramids (SNIP), a modification to standard multi-scale training.
- Image Pyramids at Train and Test Time: Images are sampled at multiple resolutions (e.g., $480$, $800$, and $1400$ pixels on the shorter side).
- Selective Gradient Backpropagation: This is the core novelty. For each scale in the pyramid, the algorithm determines which ground-truth bounding boxes fall within a specified valid resolution band $[s_i, e_i]$.
- If a Region of Interest (RoI) or anchor falls within this band, it is trained normally.
- If it falls outside the band (too large or too small), its gradients are simply ignored (set to zero) during backpropagation.
- Sub-Image Sampling (Chips): To handle the high GPU memory consumption of processing large $1400\times2000$ images, the authors crop $1000\times1000$ "chips" that greedily cover all the small objects in the image, accelerating training.
Because an object will appear at multiple scales across the pyramid, every object instance is guaranteed to fall into the valid range of at least one scale. Thus, no training data is lost, but the network is never forced to learn from objects at extreme, sub-optimal resolutions.
Datasets
The authors evaluate their approach using two primary datasets:
- ImageNet-1000: Used to analyze how standard CNN architectures behave when classifying images downsampled to low resolutions.
- MS COCO: Used to train and evaluate the final object detection performance (specifically evaluating on the minival and test-dev splits).
Key Insights and Ideas
- Upsampling Beats Custom Architectures: The authors found that fine-tuning a high-resolution network (pre-trained on standard ImageNet) on upsampled low-resolution images significantly outperforms training a specialized low-resolution network from scratch. The filters learned on high-resolution data retain crucial semantic features that transfer well when low-res images are upscaled.
- The Multi-Scale Training Trap: Standard multi-scale training actually hurts performance for very large objects because their feature representations at extreme resolutions deviate too far from what the network saw during ImageNet pre-training.
- Scale-Specific Masking: SNIP acts as a dynamic data filter. It allows the network to exploit all available training data across different image views while ensuring that the backpropagated gradients always come from objects that match the network's expected receptive field.
Key Results
SNIP demonstrates substantial improvements over baseline detectors on the COCO dataset, particularly for small objects:
- Small Object Boost: On a ResNet-50 R-FCN baseline, SNIP improved the Average Precision for small objects ($AP_S$) from 16.3% (single scale) and 19.5% (standard multi-scale) to 21.4%.
- State-of-the-Art Performance: When applied to a stronger Deformable-RFCN backbone with a DPN-98 classifier, SNIP achieved a single-model mAP of 45.7% and an ensemble mAP of 48.3% on COCO test-dev, winning the Best Student Entry at the COCO 2017 challenge.
Limitations and Future Work
The primary limitation of SNIP is computational overhead. Because it requires running inference and backpropagation across an image pyramid (multiple resolutions per image), it increases training and test times. Specifically, SNIP doubles the training time per epoch compared to standard single-scale training.
For future work, the authors suggest optimizing this pipeline by completely avoiding computation in large regions of high-resolution images where no valid-scale objects are present, which could significantly reduce the computational footprint.
Summary updated