arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.00629cs.AR
收藏

Cocco:面向内存容量-通信优化的硬件-映射协同探索

Cocco: Hardware-Mapping Co-Exploration towards Memory Capacity-Communication Optimization

Zhanhong Tan, Zijian Zhu, Kaisheng Ma

AI总结:

针对现有DNN加速器内存优化方法通用性不足的问题,该研究提出Cocco硬件-映射协同探索框架,通过图级执行方案和遗传优化方法,以更小内存降低通信开销,相比典型方法成本最多降低50.33%。

摘要:

内存在当前数据密集型DNN加速器中是关键的设计考量因素,因其深刻决定了能耗、带宽需求和面积成本。随着DNN结构愈发复杂,需要更大的片上内存容量来降低数据移动开销,但这会以硅片成本为代价。以往部分研究提出了面向内存的优化方法,例如不同的数据复用和层融合方案,但这些方法的通用性和有效性不足以应对各类图结构。\n本文探究了网络结构与内存特性之间的内在联系,以同时优化硬件和映射。首先,我们提出了一种图级执行方案,以及配套的数据流和内存管理方法。该方案能够以高数据复用率和低硬件开销执行任意图模式。随后,我们提出了Cocco——一种利用网络的图级特性的硬件-映射协同探索框架。其目标是用更小的内存容量最小化通信开销,例如能耗和带宽需求。我们将图划分调度和内存配置搜索建模为一个优化问题,并采用基于遗传的方法为大型不规则网络实现高效的协同探索。实验表明,与以往研究中提出的贪心算法和动态规划相比,Cocco在图划分方面实现了更低的外部内存访问量、更低的带宽需求和更稳定的优化效果。与其他典型方法相比,Cocco通过协同探索还将成本降低了1.89%至50.33%。

英文摘要:

Memory is a critical design consideration in current data-intensive DNN accelerators, as it profoundly determines energy consumption, bandwidth requirements, and area costs. As DNN structures become more complex, a larger on-chip memory capacity is required to reduce data movement overhead, but at the expense of silicon costs. Some previous works have proposed memory-oriented optimizations, such as different data reuse and layer fusion schemes. However, these methods are not general and potent enough to cope with various graph structures. In this paper, we explore the intrinsic connection between network structures and memory features to optimize both hardware and mapping. First, we introduce a graph-level execution scheme with a corresponding dataflow and memory management method. This scheme enables the execution of arbitrary graph patterns with high data reuse and low hardware overhead. Subsequently, we propose Cocco, a hardware-mapping co-exploration framework leveraging graph-level features of networks. It aims to minimize communication overhead, such as energy consumption and bandwidth requirements, with a smaller memory capacity. We formulate the graph-partition scheduling and memory configuration search as an optimization problem and employ a genetic-based method to achieve efficient co-exploration for large and irregular networks. Experiments demonstrate that Cocco obtains lower external memory access, lower bandwidth requirements, and more stable optimization for graph partition compared to the greedy algorithm and dynamic programming introduced in prior works. Cocco also reduces the costs by 1.89% to 50.33% using co-exploration compared to other typical methods.

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

↑