[论文解读] A Unified Lottery Ticket Hypothesis for Graph Neural Networks
本文提出统一 GNN 稀疏化(UGS),以共同修剪图和 GNN 权重,并将 Lottery Ticket Hypothesis 泛化到图神经网络,产生 Graph Lottery Tickets (GLTs),在保持性能的同时实现显著的推理节省。
With graphs rapidly growing in size and deeper graph neural networks (GNNs) emerging, the training and inference of GNNs become increasingly expensive. Existing network weight pruning algorithms cannot address the main space and computational bottleneck in GNNs, caused by the size and connectivity of the graph. To this end, this paper first presents a unified GNN sparsification (UGS) framework that simultaneously prunes the graph adjacency matrix and the model weights, for effectively accelerating GNN inference on large-scale graphs. Leveraging this new tool, we further generalize the recently popular lottery ticket hypothesis to GNNs for the first time, by defining a graph lottery ticket (GLT) as a pair of core sub-dataset and sparse sub-network, which can be jointly identified from the original GNN and the full dense graph by iteratively applying UGS. Like its counterpart in convolutional neural networks, GLT can be trained in isolation to match the performance of training with the full model and graph, and can be drawn from both randomly initialized and self-supervised pre-trained GNNs. Our proposal has been experimentally verified across various GNN architectures and diverse tasks, on both small-scale graph datasets (Cora, Citeseer and PubMed), and large-scale datasets from the challenging Open Graph Benchmark (OGB). Specifically, for node classification, our found GLTs achieve the same accuracies with 20%~98% MACs saving on small graphs and 25%~85% MACs saving on large ones. For link prediction, GLTs lead to 48%~97% and 70% MACs saving on small and large graph datasets, respectively, without compromising predictive performance. Codes available at https://github.com/VITA-Group/Unified-LTH-GNN.
研究动机与目标
- 通过联合修剪图结构和模型参数来降低大规模图上 GNN 推理的计算成本。
- 通过定义 Graph Lottery Tickets (GLTs),将 Lottery Ticket Hypothesis 泛化到 GNNs,GLTs 将稀疏子图与稀疏子网络结合起来。
- 证明 GLTs 可以从随机初始化和自监督预训练中获得,适用于不同 GNN 架构和任务。
- 展示 UGS/GLTs 在大数据集上的深度 GNN 的可扩展性,并提供关于稀疏程度和硬件影响的见解。
提出的方法
- 提出统一 GNN 稀疏化(UGS),使用图的可微掩码 m_g 和模型权重的可微掩码 m_theta,对 A 和 Theta 进行联合裁剪,损失函数为 L_UGS = L({m_g ⊙ A, X}, m_theta ⊙ Θ) + γ1||m_g||1 + γ2||m_theta||1。
- 通过迭代剪枝(Algorithm 2)定位 Graph Lottery Tickets:反复应用 UGS 并将权重回 rewind 到初始初始化,得到具有指定图稀疏度 s_g 和模型稀疏度 s_theta 的 GLTs。
- 将 GLT 定义为三元组 (sparse graph G_s, sparse mask m_theta, initialization Θ0),在性能上与在完整图和密集模型上的训练相当。
- 在小图(Cora、Citeseer、PubMed)和大图(OGB)上,以及在节点分类和链接预测任务上,对 GCN/GIN/GAT 架构评估 GLTs。
实验结果
研究问题
- RQ1一个统一的稀疏化框架是否能够在不牺牲性能的前提下同时裁剪图结构和 GNN 权重?
- RQ2在不同的 GNN 架构和任务中是否存在 Graph Lottery Tickets,且能否从随机初始化或自监督预训练中找到?
- RQ3图中的稀疏度和模型稀疏度如何影响小图与大图上的节点分类和链接预测?
- RQ4UGS 是否可扩展到大规模数据集上的深层 GNN,对大图的图密度如何影响对剪枝的鲁棒性?
主要发现
- GLTs 在 Cora、Citeseer、PubMed 上的 GCN、GIN、GAT 实现了显著的 MACs 节省且性能几乎不变。
- GLTs 对节点可实现 20%–98% MACs 节省,对大图实现 25%–85% MACs 节省,图稀疏度最高可达 58.19%,模型稀疏度最高可达 97.75%。
- 对于链接预测,GLTs 在小图上实现 48%–97% MACs 节省,在大图上实现 70% 节省且不损失准确性。
- UGS 优于随机剪枝,并且在与 ADMM 竞争方面具有可比性,在扩展到大图和现代 GNN 变体方面具有优势。
- GLTs 可以从自监督预训练(GraphCL)推导,在许多设置中相比随机初始化提供鲁棒性和性能提升。
- UGS 可扩展到大规模数据集上的深 28 层 ResGCN,在大型数据集上实现显著的 MACs 节省(例如,在某些数据集上高达 85%),同时保持性能。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。