arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2205.15568cs.LGcs.PF
收藏

硬件感知的DNN自动调整,以提高探测时间和鲁棒性

HW-Aware Initialization of DNN Auto-Tuning to Improve Exploration Time and Robustness

Robert Bosch GmbH(罗伯特·博世有限公司);University of Tübingen(图宾根大学);Heidelberg University(海德堡大学)

Dennis Rieber, Moritz Reiber, Oliver Bringmann, Holger Fröning

摘要:

使用ML模型和硬件在环优化DNN运算符的延迟的过程(称为自动调整)已经成为部署神经网络的普遍方法。从循环优化的搜索空间中,必须选择提供最佳性能的候选。通过硬件测量来评估各个配置的性能。可能配置的组合爆炸,以及硬件评估的成本使得在实践中对搜索空间的详尽探索是不可行的。随机森林或强化学习等机器学习方法用于帮助选择硬件评估的候选者。对于x86和GPGPU架构等通用硬件,与cuDNN等手动优化库相比,可以实现令人印象深刻的性能提升。该方法在硬件加速器的空间中也是有用的,其中高性能库并不总是可用的。然而,硬件加速器在其编程方面通常不太灵活,这导致运算符配置在硬件目标上不可执行。这项工作评估这些无效的配置如何影响自动调整过程及其底层的性能预测模型的VTA硬件。根据这些结果,开发了一种有效性驱动的AutoTVM初始化方法,仅需要41.6%的必要硬件测量来找到最佳解决方案,同时提高了搜索鲁棒性。

英文摘要:

The process of optimizing the latency of DNN operators with ML models and hardware-in-the-loop, called auto-tuning, has established itself as a pervasive method for the deployment of neural networks. From a search space of loop-optimizations, the candidate providing the best performance has to be selected. Performance of individual configurations is evaluated through hardware measurements. The combinatorial explosion of possible configurations, together with the cost of hardware evaluation makes exhaustive explorations of the search space infeasible in practice. Machine Learning methods, like random forests or reinforcement learning are used to aid in the selection of candidates for hardware evaluation. For general purpose hardware like x86 and GPGPU architectures impressive performance gains can be achieved, compared to hand-optimized libraries like cuDNN. The method is also useful in the space of hardware accelerators with less wide-spread adoption, where a high-performance library is not always available. However, hardware accelerators are often less flexible with respect to their programming which leads to operator configurations not executable on the hardware target. This work evaluates how these invalid configurations affect the auto-tuning process and its underlying performance prediction model for the VTA hardware. From these results, a validity-driven initialization method for AutoTVM is developed, only requiring 41.6% of the necessary hardware measurements to find the best solution, while improving search robustness.

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

↑