[Paper Review] EH-DNAS: End-to-End Hardware-aware Differentiable Neural Architecture Search
EH-DNAS proposes an end-to-end hardware-aware differentiable neural architecture search framework that integrates hardware performance benchmarking with differentiable architecture search by learning a differentiable model to predict end-to-end hardware latency. It achieves 1.4× and 1.6× average improvement in hardware performance on customized accelerators and existing hardware platforms, respectively, while preserving classification accuracy.
In hardware-aware Differentiable Neural Architecture Search (DNAS), it is challenging to compute gradients of hardware metrics to perform architecture search. Existing works rely on linear approximations with limited support to customized hardware accelerators. In this work, we propose End-to-end Hardware-aware DNAS (EH-DNAS), a seamless integration of end-to-end hardware benchmarking, and fully automated DNAS to deliver hardware-efficient deep neural networks on various platforms, including Edge GPUs, Edge TPUs, Mobile CPUs, and customized accelerators. Given a desired hardware platform, we propose to learn a differentiable model predicting the end-to-end hardware performance of neural network architectures for DNAS. We also introduce E2E-Perf, an end-to-end hardware benchmarking tool for customized accelerators. Experiments on CIFAR10 and ImageNet show that EH-DNAS improves the hardware performance by an average of $1.4 imes$ on customized accelerators and $1.6 imes$ on existing hardware processors while maintaining the classification accuracy.
Motivation & Objective
- To address the challenge of integrating realistic hardware performance feedback into differentiable neural architecture search (DNAS) for diverse hardware platforms.
- To overcome the limitations of linear approximations and proxy metrics (e.g., FLOPS, parameters) that poorly correlate with actual hardware latency.
- To enable effective architecture search on customized accelerators, including those with non-standard memory and compute patterns.
- To develop a scalable, differentiable hardware loss function that supports both generic and pipeline-based accelerator paradigms.
- To achieve high hardware efficiency without sacrificing model accuracy on benchmark datasets like CIFAR10 and ImageNet.
Proposed method
- Proposes E2E-Perf, a hardware benchmarking tool that measures end-to-end inference latency of neural architectures on customized accelerators, enabling accurate performance data collection.
- Learns a differentiable function $\mathcal{F}_\phi$ to approximate hardware performance as a function of architecture, allowing gradient-based optimization in DNAS.
- Integrates the learned hardware loss $\mathcal{L}_{\text{hw}}(\mathbf{a}) = \mathcal{F}_\phi(\mathbf{a})$ directly into the DNAS training objective for joint accuracy and hardware efficiency optimization.
- Employs a deep neural network with learnable embeddings to model complex, non-linear hardware performance relationships across layers and accelerator types.
- Uses a two-stage pipeline: first, collect hardware performance data via E2E-Perf; second, train the differentiable hardware loss model before end-to-end DNAS.
- Supports both generic and pipeline-based accelerator paradigms, enabling broader hardware compatibility than prior linear approximation methods.
Experimental results
Research questions
- RQ1Can a differentiable hardware loss function be effectively learned from end-to-end hardware measurements to guide DNAS?
- RQ2How does the proposed EH-DNAS framework compare to LUT-based and proxy-based methods in terms of hardware performance estimation accuracy?
- RQ3To what extent can EH-DNAS improve hardware efficiency on customized accelerators while maintaining model accuracy?
- RQ4Does the framework generalize across diverse hardware platforms, including Edge GPUs, Edge TPUs, Mobile CPUs, and custom accelerators?
- RQ5How does model complexity in the learned hardware loss affect estimation accuracy and search performance?
Key findings
- EH-DNAS improves hardware performance by an average of 1.4× on customized accelerators and 1.6× on existing hardware processors (Edge GPUs, Edge TPUs, Mobile CPUs) while maintaining classification accuracy.
- The proposed differentiable hardware loss achieves an average estimation error rate of 3.6% on customized accelerators, significantly lower than the 32.5% error of LUT-based methods.
- On mobile platforms like Raspberry Pi 4 and Pixel 3, EH-DNAS reduces error rates to 38.0% and 48.4% respectively, outperforming LUTs that suffer from high variance due to OS and memory bottlenecks.
- The framework discovers more complex and efficient architectures than LUT-based methods, which tend to oversimplify by reducing layer complexity.
- Ablation studies show that embedding size 10 in the hardware loss model achieves optimal trade-off between complexity and accuracy, with 3.6% error rate.
- By adjusting the hardware loss weighting hyperparameter $\beta$, EH-DNAS enables a 2× improvement in hardware performance with less than 1% drop in accuracy, demonstrating strong efficiency-accuracy trade-offs.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.