TL;DR
DetOFA introduces an efficient way to train Once-for-All (OFA) supernets for object detection by dynamically pruning the architecture search space. By using a transformer-based "path filter" to predict and eliminate poorly performing sub-networks during training, it reduces computational costs by up to 63% while simultaneously improving accuracy across various hardware resource constraints.
What Problem Does This Paper Address?
Supernet-based Neural Architecture Search (NAS) has revolutionized how we deploy deep learning models across diverse hardware platforms. Instead of training a separate model for every device (e.g., a flagship smartphone vs. an IoT edge camera), a massive "supernet" is trained once. From this supernet, smaller sub-networks ("paths") can be extracted to fit specific resource budgets (FLOPs, latency).
However, while supernet NAS works beautifully for image classification on massive datasets like ImageNet, it struggles with object detection. Object detection datasets (like Pascal VOC) are often orders of magnitude smaller than classification datasets. When you try to train a massive supernet containing up to $10^{19}$ potential architectures on a small dataset, the sub-networks severely underfit, leading to a significant drop in final performance.
Previous attempts to solve this relied on rigid, handcrafted pruning rules. This paper introduces DetOFA, which automates search space pruning dynamically during training.
Methods
The core innovation of DetOFA is the Path Filter, a performance predictor designed to identify and discard weak sub-networks before they waste valuable training cycles.
The method operates in two main phases:
- FLOPs-Bounded Path Filter: The authors designed a transformer encoder that takes a tokenized description of a network path (its depth, width, and expansion ratios) along with a target "FLOPs bucket index." Crucially, the path filter is trained using a pairwise ranking loss calculated only between paths within the same FLOPs bucket. This ensures the filter learns which architectures perform best under similar resource constraints.
- Two-Level Search Space Pruning:
- Operation Pruning: Before fine-tuning the supernet, the path filter evaluates individual layer configurations (operations) and removes the worst-performing ones from the search space entirely.
- Path Pruning: During supernet training, when a path is sampled, the path filter checks its score. If it falls below a specific threshold for its FLOPs budget, the path is skipped, and a better one is sampled instead. This focuses the supernet's capacity entirely on high-potential architectures.
Datasets
The authors evaluated DetOFA on two standard object detection benchmarks, using CenterNet as their base detector framework:
- Pascal VOC (2007+2012): A relatively small dataset containing roughly 16,000 images across 20 classes.
- Microsoft COCO (2017): A larger, more challenging benchmark used to verify scalability.
- ImageNet (ILSVRC2012): Used for the initial pre-training of the supernet backbone and the path filter.
Key Insights and Ideas
- Intra-Budget Ranking Matters Most: Standard predictors try to guess absolute accuracy across the entire search space. DetOFA succeeds because its path filter focuses strictly on relative ranking within the same resource budget. It doesn't matter if a low-FLOP model has lower absolute accuracy than a high-FLOP model; what matters is finding the best model for that low-FLOP constraint.
- Mitigating Underfitting via Focus: By skipping the training of architectures predicted to perform poorly, the supernet avoids diluting its shared weights. This effectively concentrates the limited training data on optimizing the best-performing shared weights.
- Architecture Sensitivity in Detection: The authors observed that object detection models are much more sensitive to backbone architecture variations than classification models. Specifically, maintaining depth and channel capacity on the output side of the backbone is critical for feeding the up-convolutional detection heads. Handcrafted pruning methods often accidentally eliminate these vital paths, whereas the data-driven path filter preserves them.
Key Results
DetOFA establishes a superior accuracy-FLOPs Pareto front compared to standard Once-for-All (OFA) and handcrafted alternatives like CompOFA:
- Resource Efficiency: DetOFA achieved a 30% reduction in computational cost for Pascal VOC and a 63% reduction for COCO when searching for the optimal network architecture compared to standard OFA.
- Accuracy Improvements: It delivered an average precision (AP) improvement of 0.85 points on Pascal VOC and 0.45 points on COCO across the Pareto front.
- Higher Quality Sub-networks: Uniform sampling of the trained supernet demonstrated that DetOFA consistently produces a higher population of high-performing paths across all FLOP buckets than standard training regimes.
Limitations and Future Work
While DetOFA marks a significant step forward for detection-based NAS, the authors note a few areas for improvement:
- Backbone-Centric Search: The current search space only optimizes the CNN backbone. The up-convolutional layers and detection heads remain fixed.
- Search Space Complexity: The tokenization scheme currently assumes a relatively straightforward block/layer connectivity structure. Extending the path filter to highly complex, non-linear search spaces remains an open challenge.
- Task Expansion: Future work includes validating this method on other downstream vision tasks like semantic segmentation and human pose estimation.
Summary updated