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

FBNet: Hardware-Aware Efficient ConvNet Design via Differentiable Neural Architecture Search.

Bichen Wu, Xiaoliang Dai, Peizhao Zhang, Yanghan Wang, Fei Sun, Yiming Wu, Yuandong Tian, Peter Vajda, Yangqing Jia, Kurt Keutzer · DOI

TL;DR

This paper introduces FBNet, a novel Differentiable Neural Architecture Search (DNAS) framework that efficiently designs ConvNets optimized for specific mobile hardware. By using gradient-based optimization and a hardware-aware latency loss, FBNet significantly reduces search costs and discovers architectures that outperform existing methods in both accuracy and latency.

What Problem Does This Paper Address?

Designing efficient Convolutional Neural Networks (ConvNets) for mobile devices is a significant challenge. The sheer size of the possible network architectures (the "design space") is combinatorially vast, making exhaustive search infeasible. Traditional methods like manual design or Neural Architecture Search (NAS) using reinforcement learning are computationally expensive, often requiring days or weeks of training for each candidate architecture. Furthermore, existing approaches often focus on metrics like FLOPs (Floating Point Operations), which don't always correlate with actual execution speed (latency) on specific hardware. This means an architecture optimized for low FLOPs might still be slow on a particular mobile phone. The optimality of a ConvNet is also highly dependent on factors like input resolution and the target device, necessitating case-by-case redesigns, which were previously too costly.

Methods

The core innovation is a Differentiable Neural Architecture Search (DNAS) framework. Instead of treating architecture search as a discrete, combinatorial problem, DNAS reframes it as a continuous optimization problem.

Here's how it works:

  • Stochastic Super Net: The search space is represented by a "super net" where each layer can choose from a set of pre-defined blocks (e.g., different kernel sizes, expansion ratios). This super net is "stochastic," meaning it samples blocks based on learned probabilities.
  • Gradient-Based Optimization: Using the Gumbel Softmax trick, the probabilities of selecting each block are made differentiable. This allows the framework to use standard gradient descent (like SGD) to optimize these probabilities directly, rather than relying on computationally expensive reinforcement learning.
  • Hardware-Aware Loss Function: The loss function is crucial. It combines a standard cross-entropy loss (for accuracy) with a latency-aware loss. This latency loss is computed using a latency lookup table. The framework first benchmarks the latency of individual operators (blocks) on the target device and then uses this data to estimate the latency of any given architecture. This makes the latency estimation differentiable with respect to the architecture choices.
  • Layer-wise Search: Unlike some prior NAS methods that searched for a single "cell" structure to repeat across layers, FBNet allows each layer to independently choose its optimal block. This provides greater flexibility and leads to more efficient architectures.

Datasets

  • ImageNet 2012: Used for training and evaluating the ConvNet architectures. The authors mention using a subset of 100 classes for training the stochastic super net to reduce training time, while the final architectures are trained on the full 1000 classes.
  • Samsung Galaxy S8 and iPhone X: These devices were used to build the latency lookup tables and to benchmark the performance of the searched models.

Key Insights and Ideas

  • Differentiability is Key for Efficiency: Making the architecture search differentiable (via Gumbel Softmax) is the primary driver of the massive reduction in search cost compared to previous RL-based NAS methods.
  • Latency Matters More Than FLOPs: The paper strongly emphasizes that FLOP count is a poor proxy for actual mobile device latency. By directly optimizing for measured latency, FBNet achieves better real-world performance.
  • Hardware-Awareness is Crucial for Deployment: The performance of an architecture is highly dependent on the target device. FBNet's ability to generate device-specific models (e.g., one for Samsung S8, another for iPhone X) demonstrates the sub-optimality of deploying a single architecture across diverse hardware.
  • Layer-wise Flexibility Outperforms Cell-wise Repetition: Allowing each layer to select its best block, rather than repeating a single cell structure, leads to shallower and more efficient networks, especially for lower input resolutions.

Key Results

  • Significant Speedup in Search Cost: FBNet's DNAS framework achieved a search cost of only 216 GPU-hours, which is estimated to be 420x faster than MnasNet.
  • State-of-the-Art Performance: FBNet models (FBNets) surpass existing manually designed and automatically generated efficient ConvNets.
  • FBNet-B: Achieved 74.1% top-1 accuracy on ImageNet with 295M FLOPs and 23.1 ms latency on a Samsung S8. This is 2.4x smaller and 1.5x faster than MobileNetV2-1.3 with similar accuracy.
  • Device-Specific Optimization: An iPhone X-optimized FBNet achieved a 1.4x speedup on an iPhone X compared to a Samsung S8-optimized model, highlighting the importance of hardware-specific design.
  • Smallest Model: The smallest FBNet achieved 50.2% accuracy and a very low latency of 2.9 ms (345 FPS) on a Samsung S8.
  • Improved Accuracy with Scaling: When searching for different input resolutions and channel sizes, FBNets achieved 1.5% to 6.4% higher accuracy than MobileNetV2.

Limitations and Future Work

  • Latency Lookup Table Assumption: The latency estimation relies on the assumption that operator runtimes are independent. While stated as valid for many mobile CPUs/DSPs, this might not hold true in all scenarios.
  • Search Space Design: The performance of DNAS is dependent on the defined search space. While the paper explores a layer-wise search space, future work could explore even larger or more complex search spaces.
  • Device-Specific Optimization: The paper demonstrates the benefit of device-specific search. Future work could explore more automated ways to adapt models to a wider range of devices and hardware constraints.
  • Open-Sourced Models: The authors have open-sourced their FBNet models, encouraging further research and adoption.

Summary updated

BibTeX
@inproceedings{wu2019fbnet,
  author = {Bichen Wu and Xiaoliang Dai and Peizhao Zhang and Yanghan Wang and Fei Sun and Yiming Wu and Yuandong Tian and Peter Vajda and Yangqing Jia and Kurt Keutzer},
  title = {{FBNet: Hardware-Aware Efficient ConvNet Design via Differentiable Neural Architecture Search.}},
  booktitle = {CVPR},
  year = {2019},
  doi = {10.1109/cvpr.2019.01099},
}
Figure