Graph Representational Learning: When Does More Expressivity Hurt Generalization?
Sohir Maskey, Raffaele Paolino, Fabian Jogl, Gitta Kutyniok, Johannes F. Lutzeyer
TL;DR
This paper tackles the question of when increasing GNN expressivity improves or hurts generalization. It introduces task-aligned pseudometrics, the $\zeta$-Tree Mover Distances (\zeta-TMDs), to quantify structure–label alignment and proves Lipschitz continuity of $\zeta$-MPNNs with respect to these distances. It then derives data-dependent PAC-Bayes generalization bounds that decompose into a model-complexity term and a structural similarity term, where the latter depends on the distance between training and test graphs under $\zeta$-TMD$^{T+1}$. The results show that larger expressivity helps only when it enhances the alignment between the training and test structures; otherwise, it can degrade generalization due to increased structural discrepancy. Empirical experiments on synthetic and real graph datasets corroborate the theory, showing that task-aligned, moderately expressive GNNs can outperform highly expressive ones and that generalization deteriorates as test graphs become structurally distant from the training set.
Abstract
Graph Neural Networks (GNNs) are powerful tools for learning on structured data, yet the relationship between their expressivity and predictive performance remains unclear. We introduce a family of premetrics that capture different degrees of structural similarity between graphs and relate these similarities to generalization, and consequently, the performance of expressive GNNs. By considering a setting where graph labels are correlated with structural features, we derive generalization bounds that depend on the distance between training and test graphs, model complexity, and training set size. These bounds reveal that more expressive GNNs may generalize worse unless their increased complexity is balanced by a sufficiently large training set or reduced distance between training and test graphs. Our findings relate expressivity and generalization, offering theoretical insights supported by empirical results.
