了解DNN数据流的重用、性能和硬件成本:使用MAESTRO的以数据为中心的方法
Understanding Reuse, Performance, and Hardware Cost of DNN Dataflows: A Data-Centric Approach Using MAESTRO
摘要:
DNN加速器用于利用重用和执行分段的数据分区和调度策略被称为低功耗,它们直接影响DNN加速器设计的性能和能效。加速器微架构规定了可用于执行层或网络的一个或多个线程。为层形状选择最佳的波纹可以对利用率和能源效率产生很大的影响,但是对波纹的选择和后果以及帮助建筑师探索协同优化设计空间的工具和方法缺乏了解。在这项工作中,我们首先引入了一组以数据为中心的指令,以编译器友好的形式简洁地指定DNN队列的空间。然后,我们将展示如何分析这些指令,以推断各种形式的重用,并利用它们使用硬件功能。我们将此分析编入分析成本模型MAESTRO(通过时空重用和占用建模加速器效率),该模型估计了DNN模型和硬件配置的执行时间和能源效率等各种成本效益权衡。我们演示了使用MAESTRO来驱动硬件设计空间探索(DSE)实验,该实验在4.8亿个设计中搜索,以每秒0.17万个设计的平均速度识别250万个有效设计,包括帕累托最优吞吐量和能量优化设计点。
英文摘要:
The data partitioning and scheduling strategies used by DNN accelerators to leverage reuse and perform staging are known as dataflow, and they directly impact the performance and energy efficiency of DNN accelerator designs. An accelerator microarchitecture dictates the dataflow(s) that can be employed to execute a layer or network. Selecting an optimal dataflow for a layer shape can have a large impact on utilization and energy efficiency, but there is a lack of understanding on the choices and consequences of dataflows, and of tools and methodologies to help architects explore the co-optimization design space. In this work, we first introduce a set of data-centric directives to concisely specify the space of DNN dataflows in a compilerfriendly form. We then show how these directives can be analyzed to infer various forms of reuse and to exploit them using hardware capabilities. We codify this analysis into an analytical cost model, MAESTRO (Modeling Accelerator Efficiency via Spatio-Temporal Reuse and Occupancy), that estimates various cost-benefit tradeoffs of a dataflow including execution time and energy efficiency for a DNN model and hardware configuration. We demonstrate the use of MAESTRO to drive a hardware design space exploration (DSE) experiment, which searches across 480M designs to identify 2.5M valid designs at an average rate of 0.17M designs per second, including Pareto-optimal throughput- and energy-optimized design points.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。