Introduction
Deploying Deep Neural Networks (DNNs) on edge devices requires meeting strict hardware constraints, such as real-time latency limits or tight power budgets. Hardware-aware Neural Architecture Search (NAS) automates the discovery of models that fit these constraints. However, existing co-search frameworks suffer from the "cold start" problem: they explore and train architectures from scratch. This takes hundreds to thousands of GPU hours per target hardware, which is slow, expensive, and carries a massive carbon footprint.
Conversely, simply grabbing a highly accurate pre-trained model from an existing "model zoo" rarely works out of the box, as these models often violate the target hardware's latency constraints. The challenge is figuring out how to rapidly adapt existing pre-trained models to specific hardware. While model compression (pruning, quantization) seems like the obvious answer, applying it blindly can ruin accuracy without actually improving hardware speed, because different layers have entirely different performance bottlenecks.
The HotNAS Framework
The authors propose HotNAS, a framework that starts with a pre-trained model zoo and adapts it to a target FPGA using four collaborative components. Unlike traditional NAS, HotNAS starts from a "hot state," significantly reducing search time.
The framework consists of:
- iDetect (Performance Bottleneck Detector): Analyzes each layer of a neural network to determine its specific hardware bottleneck—whether it is compute-bound, or memory-bound by input feature maps (IFM), output feature maps (OFM), or weights.
- iSpace (Integrated Search Space): Creates a tailored search space for each layer based on iDetect's findings. It includes pattern pruning, channel pruning, quantization, filter expansion, and hardware parameters (like bandwidth allocation and loop tiling).
- iDesign (Compression-Aware Performance Model): A hardware performance model for FPGAs that explicitly supports depthwise convolutions and the aforementioned compression techniques, allowing the system to accurately estimate latency without deploying every iteration.
- iSearch (Two-Step Exploration): An RNN-based reinforcement learning optimizer. It first filters the model zoo to find promising backbone architectures. Then, it simultaneously explores the architecture, compression, and hardware spaces to maximize accuracy while strictly meeting the target latency.
Experimental Results
HotNAS was evaluated on ImageNet and CIFAR-10 datasets using various backbone architectures like ResNet, MobileNet-v2, MnasNet, FBNet, and ProxylessNAS.
Key Performance Gains
- Massive Speedup in Search Time: HotNAS reduced the architecture search time from over 200 GPU hours to under 3 GPU hours for ImageNet, and just 20 minutes for CIFAR-10.
- Superior Accuracy-Latency Tradeoff: On ImageNet, targeting a strict 5ms latency constraint on a Xilinx ZCU102 FPGA, HotNAS adapted a ProxylessNAS backbone to achieve a 5.79% Top-1 and 3.97% Top-5 accuracy improvement over the best baseline model that could meet the same constraint.
- Significant Latency Reductions: On CIFAR-10, HotNAS reduced the latency of a pre-trained ResNet model by 43.90% (from 3.44ms to 1.93ms) while actually increasing accuracy by 0.03%.
- Co-Exploration Matters: Ablation studies showed that optimizing the hardware parameters alongside the neural architecture yielded models that were both faster (by ~0.3ms) and more accurate (+2.15%) than optimizing the architecture alone.
Conclusion
HotNAS demonstrates that starting from pre-trained models and intelligently matching compression techniques to hardware bottlenecks can dramatically accelerate hardware-aware NAS. By co-optimizing architecture and hardware parameters, HotNAS achieves state-of-the-art results with a fraction of the computational cost of traditional methods. While currently focused on FPGAs, the framework's open nature allows for future expansion into ASIC design spaces including dataflow and loop order optimizations.
Summary updated