NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

DetOFA: Efficient Training of Once-for-All Networks for Object Detection by Using Pre-trained Supernet and Path Filter

Yuiko Sakuma, Masato Ishii, Takuya Narihira · OpenReview

Abstract

We address the challenge of training a large supernet for the object detection task, using a relatively small amount of training data. Specifically, we propose an efficient supernet-based neural architecture search (NAS) method that uses transfer learning and search space pruning. First, the supernet is pre-trained on a classification task, for which large datasets are available. Second, the search space defined by the supernet is pruned by removing candidate models that are predicted to perform poorly. To effectively remove the candidates over a wide range of resource constraints, we particularly design a performance predictor, called path filter, which can accurately predict the relative performance of the models that satisfy similar resource constraints. Hence, supernet training is more focused on the best-performing candidates. Our path filter handles prediction for paths with different resource budgets. Compared to once-for-all, our proposed method reduces the computational cost of the optimal network architecture by 30% and 63%, while yielding better accuracy-floating point operations Pareto front (0.85 and 0.45 points of improvement on average precision for Pascal VOC and COCO, respectively).

Introduction

Deploying object detection models across diverse hardware environments—from high-end GPUs to low-power edge devices—typically requires a unique architecture for every specific resource constraint. "Once-for-All" (OFA) networks offer a solution by training a single massive "supernet" from which various sub-networks (paths) can be extracted without retraining. However, training a supernet for object detection is challenging due to data scarcity. While image classification supernets benefit from the 1.2 million images in ImageNet, detection datasets like Pascal VOC are significantly smaller, making the massive search space of a supernet prone to underfitting. The challenge lies in efficiently training a detection supernet when data is insufficient to cover billions of possible configurations.

Methodology: The Path Filter and Search Space Pruning

DetOFA addresses this by introducing a "Path Filter" to narrow the search space during training. The Path Filter is a Transformer-based encoder that predicts the relative performance of an architecture configuration (depth, width, expansion ratios) given a resource budget (FLOPs).

Overview of the DetOFA framework showing the path sampling and filtering process.

Crucially, the filter is trained using a pairwise ranking loss within "FLOPs buckets," ensuring it identifies the best models for specific power budgets rather than simply favoring larger models. The search space is pruned in two ways:

  1. Operation Pruning: Removing layer configurations (e.g., specific kernel sizes or widths) that consistently perform poorly across many paths.
  2. Path Pruning: During supernet fine-tuning, sampled paths predicted to perform poorly by the filter are skipped. This focuses gradient updates on the most promising architectures, effectively overcoming data scarcity by concentrating on high-quality candidates.

Experimental Results

The researchers evaluated DetOFA on Pascal VOC and MS COCO benchmarks. DetOFA consistently outperformed standard OFA and other state-of-the-art NAS methods like CompOFA. It achieved a superior Pareto front, improving Average Precision (AP) by 0.85 points on Pascal VOC and 0.45 points on COCO compared to standard OFA.

Performance comparison of DetOFA against standard OFA and other NAS methods on Pascal VOC and MS COCO.

Furthermore, the method significantly improved search efficiency, reducing the computational cost of finding optimal architectures by 30% on Pascal VOC and 63% on COCO. The path filter showed high precision (over 0.8) in identifying the weakest 25% of paths, confirming that the pruning effectively targeted low-performing candidates.

Conclusion

DetOFA demonstrates that relative ranking and budget-aware pruning can significantly enhance supernet training for object detection. By focusing on the "cream of the crop" architectures, it enables efficient NAS even with limited data. Future work may extend this strategy beyond the backbone to up-convolutional layers and detection heads, or apply it to other vision tasks like semantic segmentation and human pose estimation.

Summary updated

BibTeX
@inproceedings{sakuma2023detofa,
  author = {Yuiko Sakuma and Masato Ishii and Takuya Narihira},
  title = {{DetOFA: Efficient Training of Once-for-All Networks for Object Detection by Using Pre-trained Supernet and Path Filter}},
  booktitle = {Workshops @ ICCV},
  year = {2023},
  url = {https://openreview.net/forum?id=IVINTD7jgp},
}
Figure