[Paper Review] Understanding GNN Computational Graph: A Coordinated Computation, IO, and Memory Perspective
This paper proposes a coordinated optimization framework for Graph Neural Networks (GNNs) that reduces redundant computation, enables operator fusion via unified thread mapping, and eliminates excessive intermediate memory through recomputation. The approach achieves up to 2.75× speedup, 6.89× less memory I/O, and 7.73× less memory consumption compared to state-of-the-art frameworks, enabling large-scale GNNs to run on consumer-grade GPUs like the RTX 2080.
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.
Motivation & Objective
- To address high latency and memory consumption in complex GNN computational graphs.
- To eliminate redundant neural operator computation caused by repeated propagation of the same data.
- To overcome inconsistent thread mapping between vertex-centric and edge-centric operators that hinders fusion.
- To reduce memory overhead from storing intermediate activations during GNN training.
- To develop a holistic optimization framework that coordinates computation, I/O, and memory across training and inference.
Proposed method
- Proposes propagation-postponed operator reorganization to perform neural operations before graph propagation, eliminating 92.4% of redundant operators.
- Introduces a unified thread mapping scheme that enables fusion between vertex-centric and edge-centric operators, reducing memory I/O.
- Employs intermediate data recomputation during backpropagation to avoid storing large volumes of intermediate features.
- Applies operator fusion across different types of GNN operators using the unified thread mapping to minimize data movement.
- Designs a systematic optimization pipeline that coordinates computation, I/O, and memory usage across the entire GNN training and inference pipeline.
- Validates the framework on three GNN models using real-world benchmarks and GPU workloads.
Experimental results
Research questions
- RQ1How can redundant neural operator computation in GNNs be systematically eliminated without altering model functionality?
- RQ2What causes the inconsistency in thread mapping between vertex-centric and edge-centric operators, and how can it be unified to enable fusion?
- RQ3To what extent can intermediate memory consumption in GNN training be reduced by recomputing data instead of storing them?
- RQ4Can a coordinated optimization strategy across computation, I/O, and memory significantly improve end-to-end GNN performance?
- RQ5Can the proposed framework enable large-scale GNNs to run efficiently on consumer-grade GPUs?
Key findings
- The propagation-postponed operator reorganization reduces redundant computation by 92.4% of total operators, achieving an average 1.68× speedup.
- The unified thread mapping enables fusion of vertex- and edge-centric operators, reducing memory I/O by up to 5.45×.
- Intermediate data recomputation reduces memory consumption by up to 2.21× by eliminating storage of intermediate features.
- The full framework achieves up to 2.75× end-to-end speedup over state-of-the-art GNN frameworks.
- The framework enables running large-scale GNN models on an NVIDIA RTX 2080 (8 GB) GPU, which previously required an RTX 3090 (24 GB) GPU.
- The recomputation overhead is less than 10%, significantly lower than the 30% overhead reported in prior DNN work.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.