Computation Reallocation for Object Detection
TL;DR
Object detection backbones are traditionally "borrowed" from image classification models, but this one-size-fits-all approach is sub-optimal for localization tasks. This paper introduces CR-NAS (Computation Reallocation Neural Architecture Search), a method that shifts existing computation budgets across different feature resolutions and spatial positions to create backbones specifically optimized for detection. This reallocation yields significant accuracy gains on COCO and VOC datasets without increasing FLOPs.
What Problem Does This Paper Address?
In computer vision, the "backbone" (the part of the network that extracts features) is almost always a model like ResNet or MobileNet that was originally designed to win image classification challenges like ImageNet.
However, classification and detection are fundamentally different. Classification asks "What is in this image?" while detection asks "What is it, and exactly where is it?" The authors argue that classification-centric backbones have a "redundant" Effective Receptive Field (ERF) for high-resolution features and an "insufficient" ERF for low-resolution features. Essentially, standard architectures spend computational resources in the wrong places for detection tasks. The challenge is to find a way to reallocate these resources—moving layers from shallow stages to deeper stages or adjusting spatial sampling—to better suit the needs of an object detector.
Methods
The authors propose a two-level search space and a hierarchical search procedure called CR-NAS:
- Stage Reallocation (Macro Level): Instead of using the standard distribution of blocks (e.g., the [3, 4, 23, 3] block distribution in ResNet101), the search algorithm determines the optimal number of blocks for each of the four stages of the backbone. The goal is to balance the ERF across different resolutions.
- Convolution Reallocation (Micro Level): Within the blocks, the authors use dilated convolutions to adjust the spatial receptive field. Dilated convolutions act as a "cheat code" in architecture design: they increase the receptive field without adding any extra parameters or FLOPs.
- Hierarchical Search Strategy: To handle the massive search space, the authors first search for the best stage-level allocation. Once the macro-structure is fixed, they use a Greedy Operation Search to decide the dilation rates for each block.
- One-Shot NAS: To avoid the astronomical cost of training every candidate architecture from scratch, they use a "supernet" approach. They train one giant network containing all possible paths and then evaluate sub-networks (candidates) by inheriting weights from this supernet.
Key Insights and Ideas
- The ERF Mismatch: The core "Aha!" moment is the visualization of the Effective Receptive Field. Standard ResNets have a limited ERF for low-resolution features (P5), which makes it hard to detect large objects. By moving computation to deeper stages and adjusting dilations, the ERF becomes significantly more balanced.
- Zero-Cost Improvement: Because the method reallocates existing blocks and uses dilation (which doesn't add FLOPs), the performance gains are essentially "free" in terms of the computational budget.
- Classification $\neq$ Detection: The paper demonstrates that a backbone that performs better on ImageNet classification doesn't necessarily perform better on COCO detection. This highlights the critical need for detection-specific architecture search.
- Deep Stage Priority: The search results consistently showed that reallocating more capacity to "deep" stages (the later parts of the network) is beneficial for detection, as it allows the network to better handle the scale variance of objects.
Key Results
The results show consistent improvements across various backbone families evaluated on MS COCO, PASCAL VOC, and ImageNet:
- CR-ResNet50: Achieved 38.3% AP on COCO, a +1.9% improvement over the standard ResNet50 baseline with nearly identical FLOPs.
- CR-MobileNetV2: Achieved 33.9% AP, a +1.7% improvement over the baseline.
- CR-ResNet101: Outperformed the baseline by +1.6% AP.
- Transferability: The discovered backbones aren't just for one specific detector. When plugged into Cascade Mask R-CNN or paired with NAS-FPN, they continued to outperform standard backbones, showing the "CR" versions are fundamentally better feature extractors for detection tasks.
- Instance Segmentation: The improvements carried over to segmentation tasks, with CR-ResNet50 yielding a +1.3% mask AP improvement.
Limitations and Future Work
- Hierarchical Coupling: The search is split into two stages (stage-level then block-level). While efficient, this assumes the two levels aren't so tightly coupled that a joint search would find a significantly better global optimum.
- Search Cost: While one-shot NAS is much faster than training from scratch, training the initial supernet still requires significant GPU resources.
- Manual Constraints: The search space for stage reallocation is still somewhat constrained by human-defined ranges (e.g., "at least one block per stage"). Future work could explore even more radical reallocations.
Summary updated