Adversarial Weight Perturbation Improves Generalization in Graph Neural Networks

Yihan Wu, Aleksandar Bojchevski, Heng Huang
12/9/2022
cs.LG
gnn

Official code: yihwu/WT-AWP (0 stars, Python, last commit 2022-11-22).

Abstract

A lot of theoretical and empirical evidence shows that the flatter local minima tend to improve generalization. Adversarial Weight Perturbation (AWP) is an emerging technique to efficiently and effectively find such minima.

Show full abstract

In AWP we minimize the loss w.r.t. a bounded worst-case perturbation of the model parameters thereby favoring local minima with a small loss in a neighborhood around them. The benefits of AWP, and more generally the connections between flatness and generalization, have been extensively studied for i.i.d. data such as images. In this paper, we extensively study this phenomenon for graph data. Along the way, we first derive a generalization bound for non-i.i.d. node classification tasks. Then we identify a vanishing-gradient issue with all existing formulations of AWP and we propose a new Weighted Truncated AWP (WT-AWP) to alleviate this issue. We show that regularizing graph neural networks with WT-AWP consistently improves both natural and robust generalization across many different graph learning tasks and models.

View on arXivView PDF

Code Implementations(1)

yihwu/WT-AWPOfficial100%

Code of paper "Adversarial Weight Perturbation Improves Generalization \\in Graph Neural Network (AAAI 23)"

00Python, Jupyter NotebookNov 22, 20224 years ago

Similar Papers

Cite this paper

@article{wu2022adversarial,
  title  = {Adversarial Weight Perturbation Improves Generalization in Graph Neural Networks},
  author = {Yihan Wu and Aleksandar Bojchevski and Heng Huang},
  year   = {2022},
  eprint = {2212.04983},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.04983}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2212.04983.svg)](https://codeofpaper.com/paper/2212.04983)

Discussion