Tackling Neural Architecture Search With Quality Diversity Optimization

Lennart Schneider, Florian Pfisterer, Paul Kent, Juergen Branke, Bernd Bischl, Janek Thomas

TL;DR

This paper reframes multi-objective Neural Architecture Search (NAS) as a Quality Diversity Optimization (QDO) problem. By focusing on finding the best-performing models for specific hardware "niches" (like mobile phones vs. desktops) rather than trying to map the entire theoretical Pareto front, the authors introduce new optimizers that are significantly more efficient and effective than traditional multi-objective approaches.

What Problem Does This Paper Address?

In the world of Neural Architecture Search (NAS), we often want models that are not just accurate, but also efficient (e.g., low latency or small memory footprint). Traditionally, this is treated as a multi-objective optimization problem, where the goal is to find a "Pareto front"—a set of models representing every possible optimal trade-off between accuracy and efficiency.

However, the authors argue that this is often overkill. In practice, engineers usually have a discrete set of target devices (niches) with specific constraints. Searching for the entire Pareto front wastes computational resources on trade-offs that will never be used. For example, if you only need the best model for a specific microcontroller and a specific smartphone, you don't need to know the optimal trade-offs for every device in between.

Figure 1: The difference between searching for a full Pareto front (black line) and targeting specific hardware niches (green dots).

Methods

The authors propose qdNAS, a framework that treats NAS as a QDO problem. Instead of maximizing a single objective or finding a front, QDO maintains an "archive" of the best-performing solution for each predefined niche.

They introduce three novel QD optimizers for NAS:

  1. BOP-Elites*: A Bayesian Optimization (BO) approach adapted for NAS. It uses random forest surrogates and a specialized path encoding to handle the discrete, graph-like nature of neural architectures.
  2. qdHB (Quality Diversity Hyperband): A multi-fidelity optimizer based on Hyperband. It uses low-fidelity evaluations (e.g., training for fewer epochs) to quickly discard poor architectures while ensuring that promising candidates for every niche are promoted.
  3. BOP-ElitesHB: A hybrid that combines the sample efficiency of Bayesian Optimization with the speed of multi-fidelity Hyperband.

Datasets

The researchers evaluated their methods on several standard NAS benchmarks and a real-world search space:

  • NAS-Bench-101: A tabular benchmark using CIFAR-10, where the secondary objective is the number of trainable parameters.
  • NAS-Bench-201: Evaluated on CIFAR-10, CIFAR-100, and ImageNet16-120, using latency as the secondary objective.
  • MobileNetV3 Search Space: A large-scale, practical search space where they used accuracy predictors and latency look-up tables for a Samsung Note 10.
  • Stanford Dogs: Used for a downstream application in model pruning/compression.

Key Insights and Ideas

  • Niches over Fronts: By defining niches (e.g., "models under 10ms latency"), the search becomes more focused. The optimizer doesn't just look for any diverse model; it looks for the best model within each category.
  • Multi-fidelity is Essential: Performance estimation is the most expensive part of NAS. Adapting Hyperband to a QD setting allows the search to explore many more architectures by using "cheap" early training results to filter candidates.
  • Nested Niches: Unlike classical QD, which assumes niches are separate, NAS niches are often nested. A model small enough for a phone is also small enough for a laptop. The authors show that allowing niches to overlap improves search efficiency.
  • Generality: The QD approach is "orthogonal" to the search strategy. You can turn almost any iterative NAS algorithm into a QD algorithm by changing how it selects and archives candidates.

Key Results

The experiments demonstrated that QD-based NAS consistently outperforms traditional multi-objective NAS (like ParEGO or moHB) in both solution quality and efficiency.

  • Efficiency Boost: The hybrid BOP-ElitesHB was found to be, on average, 2.41x faster than its multi-objective counterpart (ParEGOHB) at reaching the same level of performance.
  • Superior Performance: In final rankings across 12 benchmark problems, BOP-ElitesHB and BOP-Elites* consistently took the top spots for both validation and test error.
  • Anytime Performance: As shown in Figure 2, the model-based QD optimizers (red and green lines) converge to lower error rates much faster than random search or standard multi-objective methods.
Figure 2: Anytime performance across different benchmarks. The QD-based optimizers (BOP-ElitesHB and BOP-Elites*) generally show faster convergence to lower validation errors compared to baselines.

Limitations and Future Work

  • Pre-defined Niches: The framework requires knowing the niches (hardware constraints) beforehand. If the target constraints are unknown or change frequently, a traditional multi-objective approach might still be preferable.
  • Niche Stability: The multi-fidelity methods assume that a model's niche membership (e.g., its latency) doesn't change based on how many epochs it's trained for. While generally true for hardware metrics, this might not hold for all possible feature functions.
  • Future Directions: The authors suggest that QD could be integrated into "one-shot" NAS methods (where a single large supernet is trained) to make the sub-network extraction process even more efficient for multiple devices.

Summary updated

Abstract

Neural architecture search (NAS) has been studied extensively and has grown to become a research field with substantial impact. While classical single-objective NAS searches for the architecture with the best performance, multi-objective NAS considers multiple objectives that should be optimized simultaneously, e.g., minimizing resource usage along the validation error. Although considerable progress has been made in the field of multi-objective NAS, we argue that there is some discrepancy between the actual optimization problem of practical interest and the optimization problem that multi-objective NAS tries to solve. We resolve this discrepancy by formulating the multi-objective NAS problem as a quality diversity optimization (QDO) problem and introduce three quality diversity NAS optimizers (two of them belonging to the group of multifidelity optimizers), which search for high-performing yet diverse architectures that are optimal for application-specific niches, e.g., hardware constraints. By comparing these optimizers to their multi-objective counterparts, we demonstrate that quality diversity NAS in general outperforms multi-objective NAS with respect to quality of solutions and efficiency. We further show how applications and future NAS research can thrive on QDO.
BibTeX
@inproceedings{schneider2022tackling,
  author = {Lennart Schneider and Florian Pfisterer and Paul Kent and Juergen Branke and Bernd Bischl and Janek Thomas},
  title = {{Tackling Neural Architecture Search With Quality Diversity Optimization}},
  booktitle = {AutoML-Conf (Main Track)},
  year = {2022},
  url = {https://openreview.net/forum?id=r0feZb6S8l9},
}
Figure