一句话:提出 GALA DSL 与编译器,通过两级 IR 组合算子内/间优化并支持训练专用变换,实现 GNN 推理与训练加速。
现有图神经网络(GNN)加速系统通常只在算子内或算子间层面进行优化,忽略了二者组合带来的协同机会,并且大多聚焦前向推理,较少关注训练阶段的优化。为弥补这些缺失,本文提出 GALA——一种领域特定语言(DSL)及其编译器。GALA DSL 将算子内变换暴露为调度命令,编译器则引入新颖的算子间变换,并通过两个新的中间表示(IR)跟踪与组合算子内和算子间变换。这些 IR 还维护包含训练过程的 GNN 程序全局视图,从而支持训练专用变换以更激进地优化 GNN 训练。评估表明,GALA 在多种系统、图和 GNN 模型上取得了推理 2.55 倍、训练 2.52 倍的几何平均加速,并在不同图规模和模型配置下表现良好,同时允许用户探索不同优化方式及其权衡空间。
Multiple frameworks and optimizations have been proposed for accelerating Graph Neural Network (GNN) workloads over the years, achieving sizable runtime performance improvements. However, we notice that existing systems usually explore optimizing either at the intra-operator level or at the inter-operator level, missing synergies that exist due to their compositions. Further, most existing works focus primarily on optimizing the forward computation of GNNs, often overlooking opportunities for training-specific optimizations. To exploit these missed optimization opportunities, we introduce GALA, a domain-specific language (DSL) and a compiler that allows composing optimizations at different levels. The GALA DSL exposes intra-operator transformations as scheduling commands, while we introduce novel inter-operator transformations as part of the compiler. The composition of these transformations is made possible through the introduction of two novel intermediate representations (IR) in the GALA compiler that tracks and composes transformations at both the intra- and inter-operator levels. Further, the IRs maintain a global view of the GNN program, including its training process. This allows us to introduce training-specific transformations to aggressively optimize GNN training. Our evaluations show that GALA achieves a geo-mean speedup of 2.55× for inference and 2.52× for training across multiple systems, graphs, and GNN models. We also show that GALA performs well across different graph sizes and GNN model configurations, as well as allows users to explore different methods of performing similar optimizations leading to different tradeoff spaces.
@article{paperbot2909,
title = {GALA: A High Performance Graph Neural Network Acceleration LAnguage and Compiler},
author = {Damitha Lenadora and Nikhil Jayakumar and Chamika Sudusinghe and Charith Mendis},
journal = {Proceedings of the ACM on Programming Languages},
volume = {9},
number = {OOPSLA2},
year = {2025},
doi = {10.1145/3763113}
}