Distilling Optimal Neural Networks: Rapid Search in Diverse Spaces

Bert Moons, Parham Noorzad, Andrii Skliar, Giovanni Mariani, Dushyant Mehta, Chris Lott, Tijmen Blankevoort · DOI

Introduction

Designing optimal neural network architectures is a complex, moving target. An architecture optimized for a desktop GPU often performs poorly on mobile DSPs or NPUs. Traditional Neural Architecture Search (NAS) methods attempt to automate this design process but frequently suffer from two primary limitations: scalability and structural diversity. Most NAS algorithms are "one-and-done," requiring a full, expensive re-run for every new hardware target. Furthermore, many rely on weight-sharing techniques that restrict the search to structurally similar models, preventing the exploration of diverse macro-architectural choices like varying layer types or attention mechanisms.

Overview of the DONNA pipeline and its advantages in design cost and search space diversity.

DONNA (Distilling Optimal Neural Network Architectures) addresses these challenges by decoupling accuracy prediction from hardware-specific search. This high-speed pipeline enables the discovery of state-of-the-art architectures across diverse platforms up to 100x faster than previous methods like MNasNet.

Methodology

DONNA decomposes the NAS process into three distinct, efficient phases that leverage knowledge distillation to streamline search.

The three-phase DONNA process: Blockwise Knowledge Distillation, Architecture Library building, and Linear Accuracy Prediction.

Phase 1: Building a Block Library (BKD)

Instead of training thousands of complete models, DONNA utilizes Blockwise Knowledge Distillation (BKD). Starting with a trained reference model, individual blocks are replaced one by one with various candidates (differing in kernels, activations, etc.). Each candidate block is trained for a single epoch to mimic the teacher's output, producing a "quality metric" known as the Noise-to-Signal-Power Ratio (NSR) for every possible block configuration.

Phase 2: The Accuracy Predictor

A small subset of 20-50 full-model architectures is sampled and briefly fine-tuned. By combining the block-level NSR metrics from Phase 1 with the accuracies of these sampled models, a linear regression model is fitted. This predictor can then estimate the accuracy of trillions of potential architectures in milliseconds.

Using the accuracy predictor alongside actual on-device latency measurements, an evolutionary algorithm (NSGA-II) identifies the Pareto-optimal front. This allows for the selection of models that provide the best accuracy for any specific latency or power budget. Finally, the selected models undergo End-to-end Knowledge Distillation (EKD), achieving top-tier performance in under 50 epochs—a 9x speedup compared to training from scratch.

Key Results and Insights

DONNA demonstrates significant improvements in both search efficiency and model performance across multiple benchmarks:

  • Search Efficiency: DONNA is 100x faster than MNasNet in identifying optimal on-device architectures.
  • Hardware Performance: On an Nvidia V100 GPU, DONNA-searched architectures are 20% faster than EfficientNet-B0 and MobileNetV2 at equivalent accuracy. On a Samsung S20, it identified a model 10% faster than MobileNetV2-1.4x with 0.5% higher accuracy.
  • Downstream Tasks: When applied to object detection on MS-COCO, DONNA backbones achieved up to 2.4% higher mAP than Once-for-All (OFA) models at similar latencies.

Generalization and Diversity

A key insight of DONNA is that the NSR of individual blocks serves as a remarkably robust proxy for final model performance. The accuracy predictor generalizes effectively even to architectures outside its initial search space, such as "ShiftNets" or quantized INT8 models. By avoiding the constraints of weight-sharing NAS, DONNA can explore macro-diversity, such as swapping grouped for depthwise convolutions or toggling Squeeze-and-Excite (SE) blocks, leading to superior hardware-specific designs.

Conclusion

By decoupling accuracy prediction from hardware constraints, DONNA provides a scalable and diverse framework for rapid neural architecture search. While the method currently depends on a reference model's global structure, its ability to generalize and rapidly adapt to new deployment scenarios represents a significant advancement in automated model design.

Summary updated

BibTeX
@inproceedings{moons2021distilling,
  author = {Bert Moons and Parham Noorzad and Andrii Skliar and Giovanni Mariani and Dushyant Mehta and Chris Lott and Tijmen Blankevoort},
  title = {{Distilling Optimal Neural Networks: Rapid Search in Diverse Spaces}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2021},
  doi = {10.1109/iccv48922.2021.01201},
}
Figure