Skip to main content
QUICK REVIEW

[论文解读] Understanding GNN Computational Graph: A Coordinated Computation, IO, and Memory Perspective

Hengrui Zhang, Zhongming Yu|arXiv (Cornell University)|Oct 18, 2021
Advanced Graph Neural NetworksComputer Science参考文献 25被引用 21
一句话总结

本文提出了一种图神经网络(GNN)的协同优化框架,可减少冗余计算,通过统一的线程映射实现算子融合,并通过重新计算消除过多的中间内存存储。该方法相较于最先进框架实现了最高2.75倍的加速,内存I/O减少6.89倍,内存占用减少7.73倍,使大规模GNN可在消费级GPU(如RTX 2080)上高效运行。

ABSTRACT

Graph Neural Networks (GNNs) have been widely used in various domains, and GNNs with sophisticated computational graph lead to higher latency and larger memory consumption. Optimizing the GNN computational graph suffers from: (1) Redundant neural operator computation. The same data are propagated through the graph structure to perform the same neural operation multiple times in GNNs, leading to redundant computation which accounts for 92.4% of total operators. (2) Inconsistent thread mapping. Efficient thread mapping schemes for vertex-centric and edge-centric operators are different. This inconsistency prohibits operator fusion to reduce memory IO. (3) Excessive intermediate data. For GNN training which is usually performed concurrently with inference, intermediate data must be stored for the backward pass, consuming 91.9% of the total memory requirement. To tackle these challenges, we propose following designs to optimize the GNN computational graph from a novel coordinated computation, IO, and memory perspective: (1) Propagation-postponed operator reorganization. We reorganize operators to perform neural operations before the propagation, thus the redundant computation is eliminated. (2) Unified thread mapping for fusion. We propose a unified thread mapping scheme for both vertex- and edge-centric operators to enable fusion and reduce IO. (3) Intermediate data recomputation. Intermediate data are recomputed during the backward pass to reduce the total memory consumption. Extensive experimental results on three typical GNN models show that, we achieve up to 2.75x end-to-end speedup, 6.89x less memory IO, and 7.73x less memory consumption over state-of-the-art frameworks.

研究动机与目标

  • 解决复杂GNN计算图中的高延迟和高内存消耗问题。
  • 消除因相同数据重复传播而导致的冗余神经算子计算。
  • 克服顶点中心与边中心算子之间线程映射不一致的问题,从而实现算子融合。
  • 减少GNN训练过程中存储中间激活值带来的内存开销。
  • 开发一个全面的优化框架,协调训练与推理过程中计算、I/O与内存的使用。

提出的方法

  • 提出传播延迟的算子重组方法,在图传播前执行神经运算,消除92.4%的冗余算子。
  • 引入统一的线程映射方案,实现顶点中心与边中心算子的融合,降低内存I/O。
  • 在反向传播过程中采用中间数据重新计算,避免存储大量中间特征。
  • 利用统一线程映射在不同类型GNN算子之间实施算子融合,最小化数据移动。
  • 设计系统化的优化流水线,协调整个GNN训练与推理流水线中计算、I/O与内存使用。
  • 在三个GNN模型上使用真实世界基准和GPU工作负载验证该框架。

实验结果

研究问题

  • RQ1如何在不改变模型功能的前提下,系统性地消除GNN中冗余的神经算子计算?
  • RQ2顶点中心与边中心算子之间线程映射不一致的根本原因是什么?如何统一以实现算子融合?
  • RQ3通过重新计算而非存储中间数据,能在多大程度上减少GNN训练中的中间内存消耗?
  • RQ4在计算、I/O与内存之间实施协同优化策略,能否显著提升端到端GNN性能?
  • RQ5所提出的框架能否使大规模GNN在消费级GPU上高效运行?

主要发现

  • 传播延迟的算子重组将冗余计算减少了92.4%的总算子数,实现平均1.68倍加速。
  • 统一的线程映射使顶点与边中心算子得以融合,内存I/O最高降低5.45倍。
  • 中间数据重新计算通过消除中间特征存储,将内存消耗最高降低2.21倍。
  • 完整框架相较于最先进GNN框架实现最高2.75倍的端到端加速。
  • 该框架使大规模GNN模型可在NVIDIA RTX 2080(8 GB)GPU上运行,此前该任务需依赖RTX 3090(24 GB)GPU。
  • 重新计算的开销低于10%,远低于先前DNN研究中报告的30%开销。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。