arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2501.12634cs.AR
收藏

SoMa:识别、探索和理解DNN加速器的DRAM通信调度空间

SoMa: Identifying, Exploring, and Understanding the DRAM Communication Scheduling Space for DNN Accelerators

Jingwei Cai, Xuan Wang, Mingyu Gao, Sen Peng, Zijian Zhu, Yuchen Wei, Zuotong Wu, Kaisheng Ma

AI总结:

SoMa提出了一种以张量为中心的表示法和端到端调度框架,用于识别、探索和理解DNN加速器的DRAM通信调度空间,相比SOTA框架平均提升2.11倍性能并降低37.3%能耗。

摘要:

现代深度神经网络(DNN)加速器配备了越来越大的片上缓冲区,以提供更多机会来缓解日益严重的DRAM带宽压力。然而,现有大多数关于缓冲区利用的研究仍主要聚焦于单层数据流调度优化。随着缓冲区增大到足以容纳大多数网络中大多数单层权重时,单层数据流优化对DRAM通信的影响显著减弱。因此,开发融合多层的新范式以充分利用日益丰富的片上缓冲区资源来减少DRAM访问变得尤为重要,但仍是一个开放挑战。为应对这一挑战,我们首先通过分析现有工作在层融合范式上的缺陷,并认识到在调度数据从DRAM预取和存储到DRAM的时序方面存在巨大优化潜力,从而识别出DRAM通信调度中的优化机会。为充分利用这些优化机会,我们开发了一种以张量为中心的表示法(Tensor-centric Notation)及其对应的解析方法,用以表示不同的DRAM通信调度方案,并描绘DRAM通信调度的整体空间。然后,为了针对多样化的加速器和工作负载全面且高效地探索DRAM通信调度空间,我们开发了一个端到端的调度框架SoMa,该框架已被开发成我们商业加速器产品的编译器。与最先进的Cocco框架相比,SoMa平均实现了2.11倍的性能提升和37.3%的能耗降低。随后,我们利用SoMa研究LLM的优化,进行设计空间探索(DSE),并通过一个实际示例分析DRAM通信调度空间,得出了一些(更多)结论。

英文摘要:

Modern Deep Neural Network (DNN) accelerators are equipped with increasingly larger on-chip buffers to provide more opportunities to alleviate the increasingly severe DRAM bandwidth pressure. However, most existing research on buffer utilization still primarily focuses on single-layer dataflow scheduling optimization. As buffers grow large enough to accommodate most single-layer weights in most networks, the impact of single-layer dataflow optimization on DRAM communication diminishes significantly. Therefore, developing new paradigms that fuse multiple layers to fully leverage the increasingly abundant on-chip buffer resources to reduce DRAM accesses has become particularly important, yet remains an open challenge. To address this challenge, we first identify the optimization opportunities in DRAM communication scheduling by analyzing the drawbacks of existing works on the layer fusion paradigm and recognizing the vast optimization potential in scheduling the timing of data prefetching from and storing to DRAM. To fully exploit these optimization opportunities, we develop a Tensor-centric Notation and its corresponding parsing method to represent different DRAM communication scheduling schemes and depict the overall space of DRAM communication scheduling. Then, to thoroughly and efficiently explore the space of DRAM communication scheduling for diverse accelerators and workloads, we develop an end-to-end scheduling framework, SoMa, which has already been developed into a compiler for our commercial accelerator product. Compared with the state-of-the-art (SOTA) Cocco framework, SoMa achieves, on average, a 2.11x performance improvement and a 37.3% reduction in energy cost simultaneously. Then, we leverage SoMa to study optimizations for LLM, perform design space exploration (DSE), and analyze the DRAM communication scheduling space through a practical example, yielding some..(more)

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

↑