Skip to main content
QUICK REVIEW

[Paper Review] FBNet: Hardware-Aware Efficient ConvNet Design via Differentiable Neural Architecture Search

BoRui Wu, Xiaoliang Dai|arXiv (Cornell University)|Dec 9, 2018
Advanced Neural Network ApplicationsComputer Science30 references88 citations
TL;DR

FBNet uses differentiable neural architecture search to design hardware-aware ConvNets optimized for target devices, achieving high accuracy with low latency and reduced search cost. FBNet-B reaches 74.1% top-1 on ImageNet with 295M FLOPs and 23.1 ms on Samsung S8, with substantially lower search cost than prior NAS methods.

ABSTRACT

Designing accurate and efficient ConvNets for mobile devices is challenging because the design space is combinatorially large. Due to this, previous neural architecture search (NAS) methods are computationally expensive. ConvNet architecture optimality depends on factors such as input resolution and target devices. However, existing approaches are too expensive for case-by-case redesigns. Also, previous work focuses primarily on reducing FLOPs, but FLOP count does not always reflect actual latency. To address these, we propose a differentiable neural architecture search (DNAS) framework that uses gradient-based methods to optimize ConvNet architectures, avoiding enumerating and training individual architectures separately as in previous methods. FBNets, a family of models discovered by DNAS surpass state-of-the-art models both designed manually and generated automatically. FBNet-B achieves 74.1% top-1 accuracy on ImageNet with 295M FLOPs and 23.1 ms latency on a Samsung S8 phone, 2.4x smaller and 1.5x faster than MobileNetV2-1.3 with similar accuracy. Despite higher accuracy and lower latency than MnasNet, we estimate FBNet-B's search cost is 420x smaller than MnasNet's, at only 216 GPU-hours. Searched for different resolutions and channel sizes, FBNets achieve 1.5% to 6.4% higher accuracy than MobileNetV2. The smallest FBNet achieves 50.2% accuracy and 2.9 ms latency (345 frames per second) on a Samsung S8. Over a Samsung-optimized FBNet, the iPhone-X-optimized model achieves a 1.4x speedup on an iPhone X.

Motivation & Objective

  • Address the mismatch between accuracy and real hardware latency in ConvNet design for mobile devices.
  • Develop a differentiable NAS (DNAS) framework to efficiently search layer-wise architectures tailored to target hardware.
  • Define a latency-aware loss and a differentiable latency estimator to guide architecture search.
  • Demonstrate FBNet models that outperform manually designed and other automatically searched models on mobile benchmarks.

Proposed method

  • Represent the search space as a layer-wise macro-architecture with 22 layers and 9 candidate blocks per layer.
  • Use a stochastic super net where each layer samples a block with probability via Gumbel-Softmax to enable gradient-based optimization.
  • Define a latency-aware loss as L(a,w)=CE(a,w) * alpha * log(LAT(a))^beta, where LAT(a) is estimated by a differentiable latency lookup table.
  • Estimate LAT(a) as LAT(a)=sum_l LAT(b_l^(a)) to make latency differentiable w.r.t. architecture choices.
  • Train weights w_a of all operators as in standard CNN training while updating architecture parameters theta to favor higher-accuracy, lower-latency blocks.
  • Sample final architectures from the learned distribution P_theta and train them from scratch for evaluation.

Experimental results

Research questions

  • RQ1Can differentiable neural architecture search (DNAS) efficiently discover hardware-aware ConvNets tailored to target mobile devices?
  • RQ2Does incorporating a latency-aware objective yield architectures with lower actual latency without sacrificing accuracy?
  • RQ3How does layer-wise block flexibility (vs. cell-level reuse) impact accuracy and latency on real hardware?
  • RQ4What are the attainable accuracy-latency trade-offs across different input resolutions and channel scaling?
  • RQ5Do device-specific latency characteristics justify separate networks per target device?

Key findings

  • FBNet models achieve competitive or superior accuracy with lower latency and FLOPs compared with state-of-the-art efficient networks.
  • FBNet-B attains 74.1% top-1 accuracy with 295M FLOPs and 23.1 ms latency on Samsung S8, outperforming MobileNetV2-1.3 and approaching MnasNet with far lower search cost.
  • DNAS dramatically reduces search cost to about 216 GPU-hours, ~421x faster than MnasNet and orders of magnitude faster than NAS/PNAS/DARTS in the reported comparisons.
  • Extending DNAS to different input resolutions and channel scales yields 1.5% to 6.4% absolute accuracy gains over MobileNetV2 baselines under similar latency.
  • FBNet-small variants achieve very low latency (as low as 2.9 ms) with reasonable accuracy, and device-specific optimizations (iPhone X vs Samsung S8) substantively improve on-device speed.
  • FBNet-iPhoneX and FBNet-S8 show that architecture choices adapt to device-specific runtimes, validating the need for per-device hardware-aware design.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.