Generalization of Graph Neural Networks is Robust to Model Mismatch

Zhiyang Wang, Juan Cerviño, Alejandro Ribeiro · DOI

Introduction

Theoretical analyses of Graph Neural Networks (GNNs) often rely on the assumption that training and testing data are independent and identically distributed (i.i.d.). However, real-world deployments frequently encounter "model mismatch"—where the generative process of the graph shifts due to sensor drift or environmental changes. This paper provides a theoretical guarantee that GNNs are robust to such mismatches by modeling graphs as discrete samples from an underlying Riemannian manifold.

Theoretical Framework: Manifolds and Mismatches

The authors bridge the gap between discrete graphs and continuous surfaces using Manifold Neural Networks (MNNs). They define model mismatch as a deformation ($\tau$) of the manifold, which results in either node feature perturbations or topological edge changes in the sampled graph.

Illustration of (a) the original manifold $\mathcal{M}$, (b) a mismatched manifold $\mathcal{M}'$ due to deformation, and (c) a perturbed manifold function $f'$.

To ensure robustness, the researchers employ low-pass and integral Lipschitz filters. These filters are designed to be smooth in the spectral domain, allowing the GNN to inherit the stability of the underlying MNN. The study derives generalization bounds showing that the "gap" between training and expected error is controlled by the number of nodes ($N$), the manifold dimension ($d$), and the magnitude of the mismatch ($\gamma$).

Key Insights

The Robustness-Discriminability Trade-off

A central finding is the trade-off between a model's robustness and its ability to distinguish high-frequency details. To remain robust to manifold deformations, filters must be restricted to low-pass components. While this prevents the model from being distracted by local "wobbles," it also means the GNN may lose the ability to capture fine-grained, high-frequency features necessary for certain tasks.

Scaling and Architecture

The theoretical bounds suggest that the generalization gap decreases as the number of nodes ($N$) increases, as a denser sampling provides a more accurate approximation of the manifold. Furthermore, the authors observed that shallower GNNs with fewer hidden units often exhibit greater robustness, as deeper models tend to overfit the specific geometry of the training manifold.

Experimental Validation

The theory was validated using OGBN-Arxiv (node classification) and ModelNet10 (graph classification).

  • Node Classification: On the Arxiv citation network, the generalization gap increased linearly with feature/edge perturbations, but the rate of increase was significantly lower for models trained with more nodes, supporting the scaling theory.
  • Graph Classification: On ModelNet10, GNNs using Lipschitz-constrained filters maintained significantly smaller generalization gaps when test point clouds were subjected to Gaussian noise compared to standard GNN architectures.

Conclusion and Future Work

While the current framework assumes bandlimited signals and mild mismatches that preserve basic manifold properties, it offers a rigorous foundation for understanding OOD generalization in geometric deep learning. Future research may extend these bounds to "catastrophic" topological shifts or more extreme domain adaptation scenarios.

Summary updated

BibTeX
@inproceedings{wang2025generalization,
  author = {Zhiyang Wang and Juan Cerviño and Alejandro Ribeiro},
  title = {{Generalization of Graph Neural Networks is Robust to Model Mismatch}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i20.35441},
}
Figure