arXiv:2410.16845cs.LGcs.AI2024-10NeurIPS被引 7

用快速算法提升GNN在少样本节点分类中的泛化能力

Fast Graph Sharpness-Aware Minimization for Enhancing and Accelerating Few-Shot Node Classification

  • 用MLP加速计算,结合GNN做参数扰动,实现高效平滑最小化
  • 在少样本任务中性能超越标准SAM,计算开销更低
  • 适合需要快速训练且泛化强的图神经网络应用场景

图神经网络(GNN)在节点分类任务中表现优异,但在少样本节点分类(FSNC)中因标签稀疏而泛化能力不足。本文提出快速图平滑感知最小化(FGSAM),将增强泛化能力的平滑最小化(SAM)思想引入GNN训练。传统SAM需每步执行两次前向-反向传播,计算成本翻倍;为此,我们利用GNN进行参数扰动,用MLP最小化扰动后的损失,从而更高效地寻找平坦损失谷底。同时,复用扰动阶段梯度,在几乎无额外开销下融入图拓扑信息。进一步提出FGSAM+,定期执行精确扰动以提升效率。实验表明,该方法在FSNC任务中优于标准SAM且计算成本更低,多数情况下优化速度超过基础优化器(如Adam)。此外,在异质图的标准节点分类任务中也表现良好,验证了其广泛适用性。代码已开源。

原文摘要 · Abstract (English)

Graph Neural Networks (GNNs) have shown superior performance in node classification. However, GNNs perform poorly in the Few-Shot Node Classification (FSNC) task that requires robust generalization to make accurate predictions for unseen classes with limited labels. To tackle the challenge, we propose the integration of Sharpness-Aware Minimization (SAM)--a technique designed to enhance model generalization by finding a flat minimum of the loss landscape--into GNN training. The standard SAM approach, however, consists of two forward-backward steps in each training iteration, doubling the computational cost compared to the base optimizer (e.g., Adam). To mitigate this drawback, we introduce a novel algorithm, Fast Graph Sharpness-Aware Minimization (FGSAM), that integrates the rapid training of Multi-Layer Perceptrons (MLPs) with the superior performance of GNNs. Specifically, we utilize GNNs for parameter perturbation while employing MLPs to minimize the perturbed loss so that we can find a flat minimum with good generalization more efficiently. Moreover, our method reutilizes the gradient from the perturbation phase to incorporate graph topology into the minimization process at almost zero additional cost. To further enhance training efficiency, we develop FGSAM+ that executes exact perturbations periodically. Extensive experiments demonstrate that our proposed algorithm outperforms the standard SAM with lower computational costs in FSNC tasks. In particular, our FGSAM+ as a SAM variant offers a faster optimization than the base optimizer in most cases. In addition to FSNC, our proposed methods also demonstrate competitive performance in the standard node classification task for heterophilic graphs, highlighting the broad applicability. The code is available at https://github.com/draym28/FGSAM_NeurIPS24.

图神经网络少样本学习优化算法

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。