arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2006.03968cs.LGstat.ML
收藏

硬件感知DNN的生成式设计

Generative Design of Hardware-aware DNNs

Georgia Institute of Technology(佐治亚理工学院);SIEMENS Corporate Technology(西门子企业技术)

Sheng-Chun Kao, Arun Ramamurthy, Tushar Krishna

摘要:

为了在边缘/云上有效地运行DNN,许多新的DNN推理加速器正在被频繁地设计和部署。为了提高DNN的资源效率,模型量化是一种广泛使用的方法。然而,不同的加速器/HW具有不同的资源,导致需要每个HW的专用量化策略。此外,对每一层使用相同的量化可能是次优的,从而增加了可能的量化选择的设计空间。这使得手动调整不可行。最近在自动确定每层的量化方面的工作是由诸如强化学习之类的优化方法驱动的。然而,这些方法需要为每个新的硬件平台重新训练RL。我们提出了一种自主量化和硬件感知调谐的新方法。我们提出了一个生成模型,AQGAN,它以目标精度为条件,生成一套量化配置。使用条件生成模型,用户可以在推理时间内自主地生成具有不同目标的不同配置。此外,我们提出了一个简化的硬件调整流程,它使用生成模型来生成建议,并根据硬件资源预算执行简单的选择,其过程是快速和交互式的。我们在ImageNet数据集上广泛使用的五个有效模型上评估了我们的模型。我们比较现有的均匀量化和国家的最先进的自主量化方法。然而,我们的生成模型显示出具有竞争力的准确性,每个设计点的搜索成本降低了大约2度。我们的生成模型表明,生成的量化配置在所有实验中的误差小于3.5%。

英文摘要:

To efficiently run DNNs on the edge/cloud, many new DNN inference accelerators are being designed and deployed frequently. To enhance the resource efficiency of DNNs, model quantization is a widely-used approach. However, different accelerator/HW has different resources leading to the need for specialized quantization strategy of each HW. Moreover, using the same quantization for every layer may be sub-optimal, increasing the designspace of possible quantization choices. This makes manual-tuning infeasible. Recent work in automatically determining quantization for each layer is driven by optimization methods such as reinforcement learning. However, these approaches need re-training the RL for every new HW platform. We propose a new way for autonomous quantization and HW-aware tuning. We propose a generative model, AQGAN, which takes a target accuracy as the condition and generates a suite of quantization configurations. With the conditional generative model, the user can autonomously generate different configurations with different targets in inference time. Moreover, we propose a simplified HW-tuning flow, which uses the generative model to generate proposals and execute simple selection based on the HW resource budget, whose process is fast and interactive. We evaluate our model on five of the widely-used efficient models on the ImageNet dataset. We compare with existing uniform quantization and state-of-the-art autonomous quantization methods. Our generative model shows competitive achieved accuracy, however, with around two degrees less search cost for each design point. Our generative model shows the generated quantization configuration can lead to less than 3.5% error across all experiments.

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

↑