Saved in:
Bibliographic Details
Main Authors: Luo, Yihong, Chen, Yuhan, Qiu, Siya, Wang, Yiwei, Zhang, Chen, Zhou, Yan, Cao, Xiaochun, Tang, Jing
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2410.16845
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910660556750848
author Luo, Yihong
Chen, Yuhan
Qiu, Siya
Wang, Yiwei
Zhang, Chen
Zhou, Yan
Cao, Xiaochun
Tang, Jing
author_facet Luo, Yihong
Chen, Yuhan
Qiu, Siya
Wang, Yiwei
Zhang, Chen
Zhou, Yan
Cao, Xiaochun
Tang, Jing
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2410_16845
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Fast Graph Sharpness-Aware Minimization for Enhancing and Accelerating Few-Shot Node Classification
Luo, Yihong
Chen, Yuhan
Qiu, Siya
Wang, Yiwei
Zhang, Chen
Zhou, Yan
Cao, Xiaochun
Tang, Jing
Machine Learning
Artificial Intelligence
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.
title Fast Graph Sharpness-Aware Minimization for Enhancing and Accelerating Few-Shot Node Classification
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2410.16845