arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2104.12766cs.CV
收藏

HAO:用于高效推理的硬件感知神经架构优化

HAO: Hardware-aware neural Architecture Optimization for Efficient Inference

University of California, Berkeley(加州大学伯克利分校);The University of Hong Kong(香港大学)

Zhen Dong, Yizhao Gao, Qijing Huang, John Wawrzynek, Hayden K. H. So, Kurt Keutzer

摘要:

DNN的自动算法-硬件协同设计在提高FPGA上DNN的性能方面取得了巨大成功。然而,由于神经网络架构和硬件加速器实现的难以处理的搜索空间,该过程仍然具有挑战性。不同于现有的硬件感知神经架构搜索(NAS)算法,仅仅依赖于昂贵的基于学习的方法,我们的工作将整数规划的搜索算法修剪的设计空间。给定一组硬件资源约束,我们的整数编程公式直接输出最佳加速器配置,用于映射最小化延迟的DNN子图。我们使用不同的DNN子图与不同的量化方案的准确度预测,并生成准确度延迟帕累托边界。在低计算成本的情况下,我们的算法可以在Xilinx Zynq(ZU 3EG)FPGA上生成量化网络,实现最先进的精度和硬件性能,用于ImageNet数据集上的图像分类。我们的算法搜索的解决方案在ImageNet上以50帧速率达到72.5%的top-1准确率,比MnasNet快60%,比FBNet快135%,具有可比的准确性。

英文摘要:

Automatic algorithm-hardware co-design for DNN has shown great success in improving the performance of DNNs on FPGAs. However, this process remains challenging due to the intractable search space of neural network architectures and hardware accelerator implementation. Differing from existing hardware-aware neural architecture search (NAS) algorithms that rely solely on the expensive learning-based approaches, our work incorporates integer programming into the search algorithm to prune the design space. Given a set of hardware resource constraints, our integer programming formulation directly outputs the optimal accelerator configuration for mapping a DNN subgraph that minimizes latency. We use an accuracy predictor for different DNN subgraphs with different quantization schemes and generate accuracy-latency pareto frontiers. With low computational cost, our algorithm can generate quantized networks that achieve state-of-the-art accuracy and hardware performance on Xilinx Zynq (ZU3EG) FPGA for image classification on ImageNet dataset. The solution searched by our algorithm achieves 72.5% top-1 accuracy on ImageNet at framerate 50, which is 60% faster than MnasNet and 135% faster than FBNet with comparable accuracy.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑