CMDS:利用多存储体存储器的DNN加速器跨层数据流优化
CMDS: Cross-layer Dataflow Optimization for DNN Accelerators Exploiting Multi-bank Memories
AI总结:
针对现有DNN数据流优化框架独立处理层、忽略多存储体存储器布局导致跨层效率低的问题,提出CMDS跨层调度器,结合层间依赖与多存储体重排优化,实现显著的能耗与延迟降低。
摘要:
深度神经网络(DNN)采用广泛的网络拓扑结构,以在各类应用中实现高精度。这种模型多样性使得无法找到单一的“数据流”(执行调度),能在所有可能的层和网络拓扑中都达到最优性能。已有多个框架支持针对给定DNN层和硬件探索最佳数据流。然而,在同一个DNN模型内从一层切换到下一层的数据流时,层与层之间的存储器数据布局不匹配会导致硬件效率低下。遗憾的是,所有现有框架都独立处理每一层,且通常将存储器建模为黑盒(一个大型的单体宽存储器),这种方式忽略了数据布局,也无法处理连续层之间的数据布局依赖关系,因此无法进行数据流跨层优化。为此,本研究聚焦跨层数据流优化,将层间的数据依赖和数据布局重排开销纳入考量。此外,我们提出利用现代DNN加速器中普遍存在的多存储体存储器,高效地重排数据,从而以低开销支持更多数据流。这些创新通过跨层存储器感知数据流调度器(Cross-layer Memory-aware Dataflow Scheduler,CMDS)实现。CMDS能够在建模DNN执行的能耗/延迟时,考虑因各层最优数据流不同而产生的差异化数据布局需求。与采用层优化、无存储器感知调度的现有最优(SOTA)方法相比,CMDS在硬件成本可忽略不计的情况下,实现了最高5.5倍的能耗降低和1.35倍的延迟降低。
英文摘要:
Deep neural networks (DNN) use a wide range of network topologies to achieve high accuracy within diverse applications. This model diversity makes it impossible to identify a single "dataflow" (execution schedule) to perform optimally across all possible layers and network topologies. Several frameworks support the exploration of the best dataflow for a given DNN layer and hardware. However, switching the dataflow from one layer to the next layer within one DNN model can result in hardware inefficiencies stemming from memory data layout mismatch among the layers. Unfortunately, all existing frameworks treat each layer independently and typically model memories as black boxes (one large monolithic wide memory), which ignores the data layout and can not deal with the data layout dependencies of sequential layers. These frameworks are not capable of doing dataflow cross-layer optimization. This work, hence, aims at cross-layer dataflow optimization, taking the data dependency and data layout reshuffling overheads among layers into account. Additionally, we propose to exploit the multibank memories typically present in modern DNN accelerators towards efficiently reshuffling data to support more dataflow at low overhead. These innovations are supported through the Cross-layer Memory-aware Dataflow Scheduler (CMDS). CMDS can model DNN execution energy/latency while considering the different data layout requirements due to the varied optimal dataflow of layers. Compared with the state-of-the-art (SOTA), which performs layer-optimized memory-unaware scheduling, CMDS achieves up to 5.5X energy reduction and 1.35X latency reduction with negligible hardware cost.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。