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

ADE-HGNN:通过利用注意力差异加速异构图神经网络

ADE-HGNN: Accelerating HGNNs through Attention Disparity Exploitation

Dengke Han, Meng Wu, Runzhen Xue, Mingyu Yan, Xiaochun Ye, Dongrui Fan

AI总结:

本文提出ADE-HGNN加速器,通过基于最小堆的运行时剪枝方法利用HGNN中的注意力差异,并结合操作融合执行流和专用硬件剪枝器,在保持精度的同时显著提升推理性能并降低能耗。

摘要:

异构图神经网络(HGNNs)近期在处理异构图数据方面展现了强大的能力,使其被广泛应用于许多关键的现实领域。大多数HGNN模型利用注意力机制来显著提高模型准确率,但代价是增加了计算复杂度和内存带宽需求。幸运的是,从源顶点到共同目标顶点的注意力差异揭示了在邻居聚合过程中通过剪枝不重要的源顶点来提升模型执行性能的机会。在本研究中,我们首先对HGNN模型中的注意力差异进行定量分析,即对于同一目标顶点,不同源顶点的重要性各不相同。为了充分利用这一发现进行推理加速,我们提出了一种基于最小堆的运行时剪枝方法,并将其映射到专用硬件剪枝器上以丢弃不重要的顶点。鉴于剪枝开销本身不可忽略,且无法通过传统的分阶段执行范式来摊销,我们引入了HGNNs的操作融合执行流,在利用阶段间并行性的同时重叠剪枝开销。最后,我们提出了一种新型HGNN加速器ADE-HGNN的设计,专门用于支持所提出的执行框架。实验结果表明,ADE-HGNN在NVIDIA GPU T4平台上平均实现了28.21倍的性能提升,在先进的GPU A100上实现了7.98倍的性能提升,且推理精度损失保持在0.11%~1.47%的可忽略范围内。此外,ADE-HGNN将能耗显著降低至这两个平台能耗的1.97%和5.37%。

英文摘要:

Heterogeneous Graph Neural Networks (HGNNs) have recently demonstrated great power in handling heterogeneous graph data, rendering them widely applied in many critical real-world domains. Most HGNN models leverage attention mechanisms to significantly improvemodel accuracy, albeit at the cost of increased computational complexity and memory bandwidth requirements. Fortunately, the attention disparity from source vertices towards a common target vertex unveils an opportunity to boost the model execution performance by pruning unimportant source vertices during neighbor aggregation. In this study, we commence with a quantitative analysis of the attention disparity in HGNN models, where the importance of different source vertices varies for the same target vertex. To fully exploit this finding for inference acceleration, we propose a runtime pruning method based on min-heap and map it to a dedicated hardware pruner to discard unimportant vertices. Given that the pruning overhead itself is non-negligible and cannot be amortized by conventional staged execution paradigm, an operation-fusion execution fow of HGNNs is introduced to overlap the pruning overhead while harnessing inter-stage parallelism. Finally, we present the design of a novel HGNN accelerator, ADE-HGNN, tailored to support the proposed execution framework. Our experimental results demonstrate that ADE-HGNN achieves an average performance improvement of 28.21x over the NVIDIA GPU T4 platform and 7.98x over the advanced GPU A100, with the inference accuracy loss kept within a negligible range of 0.11%~1.47%. Furthermore, ADE-HGNN significantly reduces energy consumption to 1.97% and 5.37% of the two platforms, respectively.

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

↑