[Paper Review] Discovering Multi-Hardware Mobile Models via Architecture Search
This paper proposes multi-hardware neural architecture search to develop a single model optimized for multiple accelerators (CPU, GPU, DSP, EdgeTPU), reducing deployment and engineering overhead. By introducing multi-hardware metrics and a compatible search space, the method discovers models achieving state-of-the-art accuracy-latency trade-offs across all hardware in a single search, outperforming single-hardware models on average and worst-case latency while cutting search cost by a factor of five.
Hardware-aware neural architecture designs have been predominantly focusing on optimizing model performance on single hardware and model development complexity, where another important factor, model deployment complexity, has been largely ignored. In this paper, we argue that, for applications that may be deployed on multiple hardware, having different single-hardware models across the deployed hardware makes it hard to guarantee consistent outputs across hardware and duplicates engineering work for debugging and fixing. To minimize such deployment cost, we propose an alternative solution, multi-hardware models, where a single architecture is developed for multiple hardware. With thoughtful search space design and incorporating the proposed multi-hardware metrics in neural architecture search, we discover multi-hardware models that give state-of-the-art (SoTA) performance across multiple hardware in both average and worse case scenarios. For performance on individual hardware, the single multi-hardware model yields similar or better results than SoTA performance on accelerators like GPU, DSP and EdgeTPU which was achieved by different models, while having similar performance with MobilenetV3 Large Minimalistic model on mobile CPU.
Motivation & Objective
- To address the high deployment and engineering cost of maintaining separate single-hardware models for multiple accelerators.
- To reduce model deployment complexity in applications targeting diverse hardware platforms.
- To develop a unified neural architecture search framework that optimizes for multiple hardware simultaneously.
- To minimize the trade-off between performance and portability across heterogeneous edge devices.
Proposed method
- Design a multi-hardware search space compatible with all target accelerators (CPU float, CPU uint8, GPU, DSP, EdgeTPU) to enable shared architecture search.
- Introduce normalized average and worst-case latency metrics to evaluate model efficiency across multiple hardware platforms.
- Modify existing NAS reward functions to incorporate both accuracy and multi-hardware latency performance.
- Use a shared search space and joint optimization to discover a single model that performs well on all targeted hardware.
- Apply a complementary search method compatible with any NAS algorithm to scale to diverse hardware configurations.
- Leverage hardware-aware latency measurements during search to ensure real-world efficiency on each target device.
Experimental results
Research questions
- RQ1Can a single neural architecture achieve competitive performance across multiple heterogeneous mobile accelerators without sacrificing efficiency?
- RQ2How does multi-hardware NAS compare to single-hardware NAS in terms of accuracy, latency, and search cost?
- RQ3What design choices emerge in multi-hardware models compared to single-hardware counterparts?
- RQ4How do multi-hardware metrics (average and worst-case latency) correlate with real-world performance across diverse hardware?
- RQ5Can multi-hardware models generalize to untargeted hardware not included in the search?
Key findings
- The multi-hardware model (Multi-AVG) achieves state-of-the-art accuracy-latency trade-off across five hardware platforms (CPU float, CPU uint8, GPU, DSP, EdgeTPU) in both average and worst-case latency.
- Multi-AVG achieves 75.8% ImageNet top-1 accuracy with a normalized average latency of 1.06 and worst-case latency of 1.25, outperforming single-hardware models on average and worst-case metrics.
- The multi-hardware search process reduces total search cost by a factor of five compared to running five separate single-hardware searches.
- The discovered multi-hardware models generalize well to untargeted hardware, showing strong performance on unseen accelerators.
- Multi-hardware models favor heavier later layers and avoid operations like SE and h-swish that are only beneficial on specific hardware, indicating a focus on cross-platform efficiency.
- The Multi-AVG model matches or exceeds the performance of task-specific single-hardware models on GPU, DSP, and EdgeTPU, while maintaining comparable performance to MobileNetV3 Large Minimalistic on mobile CPU.
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.