ANNETTE:基于堆叠模型的精确神经网络执行时间估计
ANNETTE: Accurate Neural Network Execution Time Estimation with Stacked Models
摘要:
随着DNN的新加速器硬件的推出,AI应用程序的计算能力迅速提高。然而,随着DNN算法变得越来越复杂并针对特定应用进行了优化,延迟要求仍然具有挑战性,在设计空间中找到最佳点至关重要。为了将架构搜索与目标硬件解耦,我们提出了一个时间估计框架,该框架允许基于映射和逐层估计模型在硬件加速器上对DNN的推理延迟进行建模。该方法从微内核和多层基准测试中提取一组模型,并生成一个用于映射和网络执行时间估计的堆栈模型。我们比较估计精度和保真度的生成的混合模型,统计模型与屋顶模型,和一个完善的屋顶模型进行评估。我们在ZCU 102 SoC板上使用DNNDK和Intel Neural Compute Stick 2在一组12个最先进的神经网络上测试混合模型。DNNDK的平均估计误差为3.47%,NCS2的平均估计误差为7.44%,优于几乎所有选定网络的统计和分析层模型。对于NASBench数据集的34个网络的随机选择子集,混合模型在Spearman秩相关系数度量中达到0.988的保真度。ANNETTE的代码可在https://github.com/embedded-machine-learning/annette上公开获得。
英文摘要:
With new accelerator hardware for DNN, the computing power for AI applications has increased rapidly. However, as DNN algorithms become more complex and optimized for specific applications, latency requirements remain challenging, and it is critical to find the optimal points in the design space. To decouple the architectural search from the target hardware, we propose a time estimation framework that allows for modeling the inference latency of DNNs on hardware accelerators based on mapping and layer-wise estimation models. The proposed methodology extracts a set of models from micro-kernel and multi-layer benchmarks and generates a stacked model for mapping and network execution time estimation. We compare estimation accuracy and fidelity of the generated mixed models, statistical models with the roofline model, and a refined roofline model for evaluation. We test the mixed models on the ZCU102 SoC board with DNNDK and Intel Neural Compute Stick 2 on a set of 12 state-of-the-art neural networks. It shows an average estimation error of 3.47% for the DNNDK and 7.44% for the NCS2, outperforming the statistical and analytical layer models for almost all selected networks. For a randomly selected subset of 34 networks of the NASBench dataset, the mixed model reaches fidelity of 0.988 in Spearman's rank correlation coefficient metric. The code of ANNETTE is publicly available at https://github.com/embedded-machine-learning/annette.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。