One-Shot Neural Ensemble Architecture Search by Diversity-Guided Search Space Shrinking

Minghao Chen, Houwen Peng, Jianlong Fu, Haibin Ling

TL;DR

This paper introduces NEAS, a novel one-shot neural architecture search (NAS) method that efficiently searches for ensembles of diverse, lightweight models. It tackles the challenges of enlarged search spaces and increased complexity by proposing a "diversity score" for guided search space shrinking and a "layer sharing" mechanism to reduce computational overhead.

What Problem Does This Paper Address?

Traditional NAS methods excel at finding a single, high-performing neural network architecture. However, for many computer vision tasks, model ensembles (combining multiple models) offer superior generalization and robustness compared to individual models. The challenge lies in efficiently searching for these ensembles. Existing NAS approaches struggle with the combinatorial explosion of possible ensemble architectures and the increased computational cost associated with training and deploying multiple models. This paper aims to bridge this gap by developing a method that can search for effective and efficient neural network ensembles in a single shot.

Methods

The core of NEAS lies in two main innovations:

  • Diversity-Guided Search Space Shrinking: To combat the massive search space of ensembles, NEAS introduces a novel "diversity score." This metric quantifies not only the individual quality of potential network components (operators) but also their diversity relative to each other. By prioritizing diverse and high-quality components, the search space is progressively pruned, making the search more efficient. This is a departure from traditional methods that often focus solely on individual operator accuracy.
  • Layer Sharing Mechanism: To mitigate the complexity and computational cost of ensembles, NEAS incorporates a layer-sharing strategy. This allows shallow layers of different ensemble members to be shared, while deeper layers can be specialized. A new "split point" search dimension is introduced to automatically determine the optimal point for this layer sharing, balancing diversity and efficiency under resource constraints (like FLOPs).

The overall process involves a "K-path Supernet Training" phase where the diversity score guides search space shrinking, followed by a "K-path Evolution Searching" phase to select the final ensemble architecture.

Datasets

  • ImageNet: Used for training and evaluating the searched neural network architectures.
  • COCO: Used to evaluate the generalization ability and robustness of the NEAS-discovered architectures on an object detection task.

Key Insights and Ideas

  • Ensembles are more than just the sum of their parts: The paper demonstrates that while individual paths in an ensemble might not always be the absolute best performers, their complementarity leads to superior ensemble performance. This highlights the importance of searching for diverse, rather than just individually optimal, components.
  • Diversity is key for ensemble robustness: The proposed "diversity score" is shown to be more effective than simple accuracy-based metrics for guiding the search space shrinking process in the context of ensembles. This suggests that explicitly encouraging diversity among candidate operators is crucial for finding robust ensembles.
  • Layer sharing is a practical necessity for efficient ensembles: The layer-sharing mechanism is critical for making ensemble search feasible. It allows for significant complexity reduction without sacrificing performance, demonstrating that efficient ensemble design is achievable.
  • One-shot NAS can be extended to ensembles: The paper successfully adapts the one-shot NAS paradigm, which trains a single supernet to represent many architectures, to the more complex problem of searching for ensembles.

Key Results

  • ImageNet Performance: NEAS achieves state-of-the-art results on ImageNet under aligned settings. For example, NEAS-L (574M FLOPs) achieves 80.0% top-1 accuracy, outperforming EfficientNet-B1 by 0.8% while being 160M FLOPs smaller. NEAS-S (314M FLOPs) achieves 77.9% top-1 accuracy, outperforming EfficientNet-B0 by 0.8% and being 19% smaller.
  • COCO Object Detection: The searched architectures show strong generalization. NEAS-S as a backbone for object detection on COCO achieves a 3.1% improvement in AP compared to MobileNetV3.
  • Diversity Score Effectiveness: Ablation studies show that the diversity-guided shrinking method improves the supernet's ranking ability and leads to better searched architectures compared to baseline and accuracy-based shrinking methods.
  • Layer Sharing Efficiency: The layer-sharing mechanism significantly reduces the complexity of ensemble models while maintaining high performance.

Limitations and Future Work

  • Computational Cost: While NEAS is a "one-shot" method, the training of the supernet and the evolution search still require significant computational resources, though less than traditional multi-stage NAS methods.
  • Hyperparameter Tuning: The effectiveness of the diversity score and layer sharing mechanism might depend on carefully tuned hyperparameters (e.g., $\beta$, $P_s$, $P_m$).
  • Future Work: The authors suggest exploring more sophisticated diversity metrics and investigating how to automatically determine the optimal number of ensemble paths. Further research into applying NEAS to other downstream tasks and exploring heterogeneous ensemble architectures could also be promising.

Summary updated

Abstract

Despite remarkable progress achieved, most neural architecture search (NAS) methods focus on searching for one single accurate and robust architecture. To further build models with better generalization capability and performance, model ensemble is usually adopted and performs better than stand-alone models. Inspired by the merits of model ensemble, we propose to search for multiple diverse models simultaneously as an alternative way to find powerful models. Searching for ensembles is non-trivial and has two key challenges: enlarged search space and potentially more complexity for the searched model. In this paper, we propose a one-shot neural ensemble architecture search (NEAS) solution that addresses the two challenges. For the first challenge, we introduce a novel diversity-based metric to guide search space shrinking, considering both the potentiality and diversity of candidate operators. For the second challenge, we enable a new search dimension to learn layer sharing among different models for efficiency purposes. The experiments on ImageNet clearly demonstrate that our solution can improve the supernet's capacity of ranking ensemble architectures, and further lead to better search results. The discovered architectures achieve superior performance compared with state-of-the-arts such as MobileNetV3 and EfficientNet families under aligned settings. Moreover, we evaluate the generalization ability and robustness of our searched architecture on the COCO detection benchmark and achieve a 3.1% improvement on AP compared with MobileNetV3. Codes and models are available at https://github.com/researchmm/NEAS.
BibTeX
@inproceedings{chen2021one,
  author = {Minghao Chen and Houwen Peng and Jianlong Fu and Haibin Ling},
  title = {{One-Shot Neural Ensemble Architecture Search by Diversity-Guided Search Space Shrinking}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  doi = {10.1109/cvpr46437.2021.01626},
}
Figure