arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2311.09775cs.AReess.SP
收藏

MEGA:一种利用度感知混合精度量化的内存高效GNN加速器

MEGA: A Memory-Efficient GNN Accelerator Exploiting Degree-Aware Mixed-Precision Quantization

Zeyu Zhu, Fanrong Li, Gang Li, Zejian Liu, Zitao Mo, Qinghao Hu, Xiaoyao Liang, Jian Cheng

AI总结:

针对GNN推理中DRAM访问导致的延迟和能耗问题,提出MEGA加速器,通过度感知混合精度量化和异构架构协同设计,实现最高38.3倍加速和47.6倍能耗节省。

摘要:

图神经网络(GNN)因其在建模非欧几里得数据方面的卓越能力,正成为各个领域中颇具前景的技术。尽管已有大量加速器被提出用于加速GNN的推理,但我们的分析表明,由DRAM访问引起的延迟和能耗仍然显著阻碍了性能和能效的提升。为解决这一问题,本文通过算法与硬件协同设计,提出了一种内存高效的GNN加速器(MEGA)。具体而言,在算法层面,通过对节点属性的深入分析,我们观察到先前工作中与数据无关的量化在精度和内存效率方面并非最优。这促使我们提出了度感知混合精度量化方法,该方法根据节点的入度学习并分配适当的位宽,以在保持精度的同时尽可能压缩GNN。在硬件层面,我们采用异构架构设计,其中聚合和组合阶段分别以不同的数据流实现。为了提升性能和能效,我们还提出了一种自适应打包格式,以缓解由细粒度位宽和多样稀疏性引起的存储开销,并提出了一种压缩边调度方法,以增强数据局部性并进一步缓解图中极度稀疏邻接矩阵引起的访问不规则性。我们在28nm工艺节点上实现了MEGA加速器。大量实验表明,与四种最先进的GNN加速器HyGCN、GCNAX、GROW和SGCN相比,MEGA分别实现了平均38.3倍、7.1倍、4.0倍、3.6倍的加速,以及47.6倍、7.2倍、5.4倍、4.5倍的能耗节省,同时保持了任务精度。

英文摘要:

Graph Neural Networks (GNNs) are becoming a promising technique in various domains due to their excellent capabilities in modeling non-Euclidean data. Although a spectrum of accelerators has been proposed to accelerate the inference of GNNs, our analysis demonstrates that the latency and energy consumption induced by DRAM access still significantly impedes the improvement of performance and energy efficiency. To address this issue, we propose a Memory-Efficient GNN Accelerator (MEGA) through algorithm and hardware co-design in this work. Specifically, at the algorithm level, through an in-depth analysis of the node property, we observe that the data-independent quantization in previous works is not optimal in terms of accuracy and memory efficiency. This motivates us to propose the Degree-Aware mixed-precision quantization method, in which a proper bitwidth is learned and allocated to a node according to its in-degree to compress GNNs as much as possible while maintaining accuracy. At the hardware level, we employ a heterogeneous architecture design in which the aggregation and combination phases are implemented separately with different dataflows. In order to boost the performance and energy efficiency, we also present an Adaptive-Package format to alleviate the storage overhead caused by the fine-grained bitwidth and diverse sparsity, and a Condense-Edge scheduling method to enhance the data locality and further alleviate the access irregularity induced by the extremely sparse adjacency matrix in the graph. We implement our MEGA accelerator in a 28nm technology node. Extensive experiments demonstrate that MEGA can achieve an average speedup of 38.3x, 7.1x, 4.0x, 3.6x and 47.6x, 7.2x, 5.4x, 4.5x energy savings over four state-of-the-art GNN accelerators, HyGCN, GCNAX, GROW, and SGCN, respectively, while retaining task accuracy.

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

↑