Hector: An Efficient Programming and Compilation Framework for Implementing Relational Graph Neural Networks in GPU Architectures
Kun Wu, Mert Hidayetoglu, Xiang Song, Sitao Huang, Da Zheng, Israt Nisa, Wen-Mei Hwu
摘要
Relational graph neural networks (RGNNs) are graph neural networks with dedicated structures for modeling the different types of nodes and edges in heterogeneous graphs. While RGNNs have been increasingly adopted in many real-world applications due to their versatility and accuracy, they pose performance and system design challenges: inherent memory-intensive computation patterns, the gap between the programming interface and kernel APIs, and heavy programming effort required to optimize kernels caused by their coupling with data layout and heterogeneity. To systematically address these challenges, we propose Hector, a novel two-level intermediate representation and its code generator framework that (a) captures the key properties of RGNN models, and opportunities to reduce memory accesses in inter-operator scheduling and materialization, (b) generates code with flexible data access schemes to eliminate redundant data copies, and (c) decouples model semantics, data layout, and operators-specific optimizations from each other to reduce programming effort. By building on one general matrix multiply (GEMM) template and a node/edge traversal template, Hector achieves up to 9.9× speed-up in inference and 43.7× speed-up in training compared with the state-of-the-art public systems on select models, RGCN, RGAT and HGT, when running heterogeneous graphs provided by Deep Graph Library (DGL) and Open Graph Benchmark (OGB). In addition, Hector does not trigger any out-of-memory (OOM) exception in these tests. We also propose linear operator reordering and compact materialization to further accelerate the system by up to 3.8×. As an indicator of the reduction of programming effort, Hector takes in 51 lines of code expressing the three models and generates a total of 8K lines of CUDA and C++ code. Through profiling, we found that higher memory efficiency allows Hector to accommodate larger input and therefore attain higher throughput in forward propagation, while backward propagation is bound by latency introduced by atomic updates and outer products.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 2 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Large Graph Convolutional Network Training with GPU-Oriented Data Communication Architecture 引用了 Open Graph Benchmark: Datasets for Machine Learning on Graphs
- SparseTIR: Composable Abstractions for Sparse Compilation in Deep Learning 引用了 Open Graph Benchmark: Datasets for Machine Learning on Graphs
- SparseTIR: Composable Abstractions for Sparse Compilation in Deep Learning 引用了 GE-SpMM: general-purpose sparse matrix-matrix multiplication on GPUs for graph neural networks
- SparseTIR: Composable Abstractions for Sparse Compilation in Deep Learning 引用了 FeatGraph: a flexible and efficient backend for graph neural network systems
- GALA: A High Performance Graph Neural Network Acceleration LAnguage and Compiler 引用了 SparseTIR: Composable Abstractions for Sparse Compilation in Deep Learning
引用它的顶会 Paper2
- GALA: A High Performance Graph Neural Network Acceleration LAnguage and CompilerDamitha Lenadora, Nikhil Jayakumar, Chamika Sudusinghe, Charith MendisOOPSLA 2025 · 1 次引用
- Lightweight and Locality-Aware Composition of Black-Box SubroutinesManya Bansal, Dillon Sharlet, Jonathan Ragan-Kelley, Saman P. AmarasinghePLDI 2025
它引用的 Paper8
- Open Graph Benchmark: Datasets for Machine Learning on GraphsWeihua Hu, Matthias Fey, Marinka Zitnik, Yuxiao Dong 等NeurIPS 2020 · 3,935 次引用
- GE-SpMM: general-purpose sparse matrix-matrix multiplication on GPUs for graph neural networksGuyue Huang, Guohao Dai, Yu Wang, Huazhong YangSC 2020 · 130 次引用
- SparseTIR: Composable Abstractions for Sparse Compilation in Deep LearningZihao Ye, Ruihang Lai, Junru Shao, Tianqi Chen 等ASPLOS 2023 · 86 次引用
- Large Graph Convolutional Network Training with GPU-Oriented Data Communication ArchitectureSeungwon Min, Kun Wu, Sitao Huang, Mert Hidayetoglu 等VLDB 2021 · 85 次引用
- FeatGraph: a flexible and efficient backend for graph neural network systemsYuwei Hu, Zihao Ye, Minjie Wang, Jiali Yu 等SC 2020 · 57 次引用
相关 Paper
- HGL: Accelerating Heterogeneous GNN Training with Holistic Representation and OptimizationYuntao Gui, Yidi Wu, Han Yang, Tatiana Jin 等SC 2022 · 9 次引用
- Heta: Distributed Training of Heterogeneous Graph Neural NetworksYuchen Zhong, Junwei Su, Chuan Wu, Minjie WangVLDB 2025 · 2 次引用
- Seastar: vertex-centric programming for graph neural networksYidi Wu, Kaihao Ma, Zhenkun Cai, Tatiana Jin 等EuroSys 2021 · 57 次引用
- GDR-HGNN: A Heterogeneous Graph Neural Networks Accelerator Frontend with Graph Decoupling and RecouplingRunzhen Xue, Mingyu Yan, Dengke Han, Yihan Teng 等DAC 2024 · 6 次引用
- On Efficient Scaling of GNNs via IO-Aware Layers ImplementationsDaria Fomina, Daniil Krasylnikov, Alexey Boykov, Andrey Dolgovyazov 等ICML 2026
