Skip to main content
QUICK REVIEW

[Paper Review] Hardware Aware Neural Network Architectures using FbNet

Sai Vineeth Kalluru Srinivas, Harideep Nair|arXiv (Cornell University)|Jun 17, 2019
Advanced Neural Network ApplicationsComputer Science6 references4 citations
TL;DR

This paper proposes HANNA (Hardware Aware Neural Network Architecture), a differentiable Neural Architecture Search (NAS) method that jointly optimizes for accuracy, latency, and energy consumption on target devices like the Raspberry Pi. By extending FBNet's loss function with an energy term, HANNA discovers compact, efficient models that achieve 2.5x speedup and 3.8x lower energy use than MobileNetv2, with only a 4–5% accuracy drop.

ABSTRACT

We implement a differentiable Neural Architecture Search (NAS) method inspired by FBNet for discovering neural networks that are heavily optimized for a particular target device. The FBNet NAS method discovers a neural network from a given search space by optimizing over a loss function which accounts for accuracy and target device latency. We extend this loss function by adding an energy term. This will potentially enhance the ``hardware awareness" and help us find a neural network architecture that is optimal in terms of accuracy, latency and energy consumption, given a target device (Raspberry Pi in our case). We name our trained child architecture obtained at the end of search process as Hardware Aware Neural Network Architecture (HANNA). We prove the efficacy of our approach by benchmarking HANNA against two other state-of-the-art neural networks designed for mobile/embedded applications, namely MobileNetv2 and CondenseNet for CIFAR-10 dataset. Our results show that HANNA provides a speedup of about 2.5x and 1.7x, and reduces energy consumption by 3.8x and 2x compared to MobileNetv2 and CondenseNet respectively. HANNA is able to provide such significant speedup and energy efficiency benefits over the state-of-the-art baselines at the cost of a tolerable 4-5% drop in accuracy.

Motivation & Objective

  • To develop a neural architecture search method that optimizes for both performance and hardware constraints on edge devices.
  • To address the limitations of state-of-the-art models that prioritize accuracy at the cost of high latency and energy consumption on mobile and embedded platforms.
  • To extend existing NAS frameworks by incorporating energy consumption as a first-class objective in the search loss function.
  • To enable automated, efficient, and device-specific model generation without requiring expert knowledge in model compression or hardware tuning.
  • To demonstrate that joint optimization for accuracy, latency, and energy leads to superior real-world performance on low-power devices like the Raspberry Pi.

Proposed method

  • The method extends FBNet's differentiable NAS framework by introducing an energy term into the loss function, enabling joint optimization for accuracy, latency, and energy consumption.
  • The loss function is formulated as a weighted sum of accuracy, latency, and energy terms, with learnable hyperparameters α, β, γ, and δ controlling the trade-off between objectives.
  • A controller architecture samples child networks from a search space, trains them using a proxy dataset, and evaluates them on the target device (Raspberry Pi) for latency and energy metrics.
  • The search process uses gradient-based optimization over a continuous relaxation of the architecture space, enabling end-to-end training and efficient architecture discovery.
  • The final HANNA model is generated by sampling the most probable architecture from the learned parameters (theta), which is then fine-tuned and deployed on the target device.
  • A web interface is implemented to allow users to input hyperparameters and device lookup tables, enabling automated HANNA model generation via backend NAS training.

Experimental results

Research questions

  • RQ1Can joint optimization of accuracy, latency, and energy consumption in neural architecture search lead to superior performance on low-power edge devices?
  • RQ2How do different trade-off weights (α, β, γ, δ) affect the resulting model's latency and energy consumption?
  • RQ3Does adding an energy term to the NAS loss function significantly improve energy efficiency without sacrificing accuracy?
  • RQ4Can a differentiable NAS approach effectively discover compact, hardware-aware models that outperform state-of-the-art mobile-optimized networks like MobileNetv2 and CondenseNet?
  • RQ5To what extent can the search process be automated and abstracted into a user-friendly interface for non-expert deployment on target hardware?

Key findings

  • HANNA achieves a 2.5x speedup over MobileNetv2 and a 1.7x speedup over CondenseNet on the CIFAR-10 dataset when deployed on a Raspberry Pi.
  • HANNA reduces energy consumption by 3.8x compared to MobileNetv2 and 2x compared to CondenseNet, demonstrating significant energy efficiency gains.
  • Despite the improvements in speed and energy, HANNA incurs only a 4–5% drop in accuracy compared to MobileNetv2 and CondenseNet, which is considered tolerable for edge deployment.
  • The latency dominance metric shows that increasing β (exponential factor) is more effective than increasing α (multiplicative factor) in reducing latency.
  • The energy dominance metric confirms that increasing δ (for energy term) leads to a clear reduction in energy consumption, with model 12 achieving the lowest energy use at 3 J.
  • The web-based HANNA model generator enables non-expert users to create optimized models by specifying hyperparameters and device lookup tables, demonstrating practical deployability.

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.