Relational graph neural networks (RGNNs) are graph neural networks (GNNs) with dedicated structures for modeling the different types of nodes and/or 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 due to their inherent computation patterns, gap between the programming interface and kernel APIs, and heavy programming efforts in optimizing kernels caused by their coupling with data layout and heterogeneity. To systematically address these challenges, we propose Pigeon, a novel two-level intermediate representation (IR) and its code generator framework, that (a) represents the key properties of the RGNN models to bridge the gap between the programming interface and kernel APIs, (b) decouples model semantics, data layout, and operators-specific optimization from each other to reduce programming efforts, (c) expresses and leverages optimization opportunities in inter-operator transforms, data layout, and operator-specific schedules. By building on one general matrix multiply (GEMM) template and a node/edge traversal template, Pigeon achieves up to 7.8x speed-up in inference and 5.6x speed-up in training compared with the state-of-the-art public systems in select models, i.e., RGCN, RGAT, HGT, when running heterogeneous graphs provided by Deep Graph Library (DGL) and Open Graph Benchmark (OGB). Pigeon also triggers fewer out-of-memory (OOM) errors. In addition, we propose linear operator fusion and compact materialization to further accelerate the system by up to 2.2x.
翻译:螺旋形神经网络(RGNNs)是图形神经网络(GNNS),有专门结构用于模拟不同类型的节点和/或异质图形中的边缘。虽然由于多功能性和准确性,许多现实世界应用中越来越多地采用RGNs,但由于其内在的计算模式、编程界面与内核动力指数之间的差距,以及在优化内核与数据布局和异质性交织造成的内核方面所做的大量编程努力。为了系统地应对这些挑战,我们提议建立Sigeon、新颖的双级中间代表(IR)及其代码生成框架。尽管由于其多功能和准确性,RGNNs越来越多地被应用于许多现实世界应用程序中,但是它们带来了性与系统设计界面之间的差异和系统设计设计系统设计的挑战。 (c) 表示并利用内部直径直对内核结构的优化机会,数据布局和操作员特定的计划表。 通过运行一个直径直流的直径直径直径直径透式矩阵(GEOMMM) 和直径直径直径直径直径直径直的系统,在Silal-real-real-real-real-real-real-reval-reval-ral-reval-ral-ral-ral-ration-ral-ral-Od dal-ral-ral-ration-ration-ration-ration-ration-ration-ral-ral-ral-ral-ral-ration-lation-lation-lation-lation-lation-ld-lation-lation-ld-ld-ld-lation-ld-ld-ld-l-l-l-l-l-l-l-l-l-l-l-l-ld-ld-ld-l-ld-lation-lation-lation-lation-lation-lation-lation-ld-ld-ld-ld-ld-ld-ld-lation-l-ld-l-l-l-lation-l和Od-lation-l-l-l-l-l-l-l