Generalization in Graph Neural Networks: Improved PAC-Bayesian Bounds on Graph Diffusion

Haotian Ju, Dongyue Li, Aneesh Sharma, Hongyang R. Zhang
2/9/2023
cs.LGcs.SImath.ST

No official code found. Best implementation: VirtuosoResearch/Generalization-in-graph-neural-networks (15 stars, MIT, last commit 2025-08-11).

Abstract

Graph neural networks are widely used tools for graph prediction tasks. Motivated by their empirical performance, prior works have developed generalization bounds for graph neural networks, which scale with graph structures in terms of the maximum degree. In this paper, we present generalization bounds that instead scale with the largest singular value of the graph neural network's feature diffusion matrix. These bounds are numerically much smaller than prior bounds for real-world graphs. We also construct a lower bound of the generalization gap that matches our upper bound asymptotically. To achieve these results, we analyze a unified model that includes prior works' settings (i.e., convolutional and message-passing networks) and new settings (i.e., graph isomorphism networks). Our key idea is to measure the stability of graph neural networks against noise perturbations using Hessians. Empirically, we find that Hessian-based measurements correlate with the observed generalization gaps of graph neural networks accurately. Optimizing noise stability properties for fine-tuning pretrained graph neural networks also improves test performance on several graph-level classification tasks.

View on arXivView PDF

Code Implementations(1)

MIT

Measuring generalization properties of graph neural networks

151PythonFeb 21, 20231 years agoMIT
fine-tuninggeneralization-gapgraph-neural-networkshessianmessage-passing-neural-network

Similar Papers

Cite this paper

@article{ju2023generalization,
  title  = {Generalization in Graph Neural Networks: Improved PAC-Bayesian Bounds on Graph Diffusion},
  author = {Haotian Ju and Dongyue Li and Aneesh Sharma and Hongyang R. Zhang},
  year   = {2023},
  eprint = {2302.04451},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2302.04451v3}
}

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/2302.04451.svg)](https://codeofpaper.com/paper/2302.04451)

Discussion