一句话:提出图级执行方案与硬件-映射协同探索框架 Cocco,以较小内存降低 DNN 加速器通信开销。
DNN 加速器中,片上内存容量影响能耗、带宽与面积,但增大内存以降低数据搬移会付出硅成本,已有内存优化难以通用适配复杂图结构。本文揭示网络结构与内存特征的联系,提出图级执行方案及配套数据流与内存管理,使任意图模式以高复用、低开销执行;进而提出 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.
DOI 原文 · arXiv · PDF(开放获取) · DBLP
@inproceedings{abs-2402-00629,
title = {Cocco: Hardware-Mapping Co-Exploration towards Memory Capacity-Communication Optimization},
author = {Zhanhong Tan and Zijian Zhu and Kaisheng Ma},
booktitle = {ASPLOS},
year = {2024},
doi = {10.1145/3617232.3624865}
}