arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.16845cs.LGcs.AI
收藏

快速图锐度感知最小化:增强并加速少样本节点分类

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

The Hong Kong University of Science and Technology(香港科技大学);The Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州));University of California, Merced(加州大学默塞德分校);University of California, Los Angeles(加州大学洛杉矶分校);Createlink Technology(创联科技);School of Computer Science and Engineering, Sun Yat-sen University(中山大学计算机科学与工程学院);School of Cyber Science and Technology, Shenzhen Campus of Sun Yat-sen University(中山大学深圳校区网络空间安全学院)

Yihong Luo, Yuhan Chen, Siya Qiu, Yiwei Wang, Chen Zhang, Yan Zhou, Xiaochun Cao, Jing Tang

AI总结:

本文提出FGSAM及FGSAM+算法,将GNN参数扰动与MLP快速最小化结合,以更低计算成本实现平坦最小值优化,从而增强并加速少样本节点分类。

摘要:

图神经网络(GNNs)在节点分类中表现出优越的性能。然而,GNNs在少样本节点分类(FSNC)任务中表现不佳,该任务要求模型具备鲁棒的泛化能力,以便在标签有限的情况下对未见过的类别做出准确预测。为应对这一挑战,我们提出将锐度感知最小化(Sharpness-Aware Minimization,SAM)——一种通过寻找损失景观中的平坦最小值来增强模型泛化能力的技术——集成到GNN训练中。然而,标准的SAM方法在每次训练迭代中包含两个前向-反向步骤,与基础优化器(如Adam)相比,计算成本翻倍。为缓解这一缺点,我们提出了一种新算法,即快速图锐度感知最小化(Fast Graph Sharpness-Aware Minimization,FGSAM),它将多层感知机(MLPs)的快速训练与GNNs的优越性能相结合。具体而言,我们利用GNNs进行参数扰动,同时使用MLPs来最小化扰动后的损失,从而能够更高效地找到具有良好泛化能力的平坦最小值。此外,我们的方法复用扰动阶段的梯度,以几乎为零的额外成本将图拓扑信息融入最小化过程。为进一步提升训练效率,我们开发了FGSAM+,它周期性地执行精确扰动。大量实验表明,我们提出的算法在FSNC任务中以更低的计算成本优于标准SAM。特别是,我们的FGSAM+作为SAM的一种变体,在大多数情况下提供了比基础优化器更快的优化速度。除FSNC外,我们提出的方法在异配图的标准节点分类任务中也表现出具有竞争力的性能,凸显了其广泛的适用性。代码可在 https://github.com/draym28/FGSAM_NeurIPS24 获取。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑