Generalization of Geometric Graph Neural Networks

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

Introduction

In the field of graph representation learning, Graph Neural Networks (GNNs) have demonstrated remarkable success across diverse applications, from protein structure prediction to social network analysis. However, a significant theoretical disconnect has persisted: while empirical evidence suggests that GNNs generalize better as training graphs grow larger, many traditional theoretical bounds predict the opposite. This paper addresses this discrepancy by establishing a rigorous foundation for the generalization of GNNs when data is sampled from an underlying geometric structure, such as a manifold.

Theoretical Framework: From Graphs to Manifolds

The authors bridge the gap between discrete graph operations and continuous geometric spaces by introducing Manifold Neural Networks (MNNs) as the continuous limit of GNNs. They model graphs as $N$ points sampled i.i.d. from a $d$-dimensional manifold, where edges are defined by proximity (epsilon-graphs).

A key contribution is the derivation of a non-asymptotic convergence result. The authors prove that as the number of nodes $N$ increases, the output of a GNN on a sampled graph converges to the output of an MNN on the continuous manifold. Under specific conditions—including the use of low-pass filters, normalized Lipschitz nonlinearities, and Lipschitz loss functions—the generalization gap ($GA$) is bounded by: $$GA = O\left( \left( \frac{\log N/\delta}{N} \right)^{\frac{1}{d+4}} \right)$$ This bound reveals that the generalization error decreases polynomially with the number of nodes $N$, while the "curse of dimensionality" is reflected in the $d+4$ term in the exponent.

Empirical Validation

To validate these theoretical predictions, the researchers conducted extensive experiments on standard citation network datasets, including Arxiv, Cora, CiteSeer, and PubMed. The primary focus was measuring the generalization gap—the difference between training and testing performance—as the number of nodes in the training set varied.

As shown in Figure 1, there is a clear log-linear relationship between the generalization gap and the number of training nodes. On a log-log scale, the decay of the loss difference follows a nearly perfect linear fit, with Pearson correlation coefficients exceeding 0.98 for the Arxiv dataset. This confirms that a single, sufficiently large graph can provide enough geometric information for a GNN to learn the underlying manifold structure and generalize to unseen data.

Model Complexity and Scaling

The study also explored how architectural choices, such as the number of layers and hidden units, impact generalization. While increasing model complexity often improves absolute performance, it can also expand the generalization gap.

Scaling parameters 'a' and 'b' for accuracy and loss as a function of hidden unit size and number of layers.

Figure 5 illustrates how the parameters of the linear approximation ($y = ax + b$) for the generalization gap evolve with model width and depth. These results suggest that more complex models require more data to effectively "settle" into the manifold's geometry, though the fundamental scaling law remains consistent across different architectures.

Conclusion

This work provides a crucial theoretical justification for the empirical success of GNNs on large-scale geometric data. By demonstrating that the generalization gap shrinks as $N$ increases, the authors show that GNNs are capable of learning continuous structures from discrete samples. Future research may extend these findings to non-smooth manifolds or architectures utilizing high-pass filters, further broadening our understanding of graph-based generalization.

Summary updated

BibTeX
@article{wang2025generalization,
  author = {Zhiyang Wang and Juan Cerviño and Alejandro Ribeiro},
  title = {{Generalization of Geometric Graph Neural Networks}},
  journal = {IEEE Trans. Signal Process.},
  year = {2025},
  doi = {10.1109/tsp.2025.3553378},
}
Figure