Introduction
In the world of Graph Neural Networks (GNNs), "more expressive" is usually treated as "better." For years, the GNN community has been engaged in an expressivity arms race, focusing on making models more powerful—specifically, better at distinguishing between non-isomorphic graphs (often measured by the Weisfeiler-Lehman hierarchy). The prevailing assumption has been that a model capable of "seeing" more complex graph structures will naturally perform better on downstream tasks.
However, empirical results have painted a more confusing picture. In some cases, a simple model that largely ignores complex graph structure outperforms a state-of-the-art, highly expressive GNN. This paper tackles this "expressivity-performance gap," proving that excessive model power can actually destroy generalization unless that power is perfectly aligned with the specific structural features that define the task.
Theoretical Framework
The authors argue that classical machine learning theory fails to fully explain generalization in modern, over-parameterized GNNs. They suggest that generalization is a delicate balance between a model's inductive bias (what it is capable of seeing) and the structure-label correlation present in the data. To bridge the gap between theory and practice, they introduce three main components:
- $\zeta$-Tree Mover Distances ($\zeta$-TMDs): The authors introduce a family of pseudometrics to measure how similar two graphs are. Unlike standard metrics, these are parameterized by a specific graph invariant (like degree distribution or cycle counts). This allows them to quantify "similarity" through the lens of a specific level of expressivity.
- Strong Simulation: They utilize the concept of "strongly simulatable" color refinement algorithms. This maps complex GNN architectures (like those that count subgraphs) back to a standard message-passing framework on a transformed graph, making them easier to analyze theoretically.
- New Generalization Bounds: Using a PAC-Bayesian framework, they derive a generalization bound that decomposes the "generalization gap" into a Capacity Term (related to model width, weight norms, and node degrees) and a Structural Similarity Term (measuring the distance between training and test graphs under the chosen $\zeta$-TMD).
Empirical Findings
The researchers validated their theory using both synthetic tasks (cycle-counting on Erdos–Rényi, Barabási–Albert, and Stochastic Block Model graphs) and established real-world benchmarks from the TUDataset collection (including BZR, MUTAGENICITY, and NCI109).
The "Goldilocks" Zone of Expressivity
A key insight is that alignment is critical. If a task depends on 4-cycles, a model that can count 4-cycles is necessary. However, moving to a much more powerful model doesn't just add "extra" power; it increases the model's complexity and the "distance" between graphs in its latent space, which can lead to overfitting on irrelevant structural noise.
In the synthetic cycle task, the $\mathcal{F}_4$-MPNN (specifically designed to count 4-cycles) achieved the lowest test error. More expressive models like the LF-G actually performed significantly worse, confirming that "over-expressivity" hurts generalization when the extra capacity is not aligned with the task's underlying rules.
Memorization vs. Learning
To test memorization versus generalization, the authors conducted experiments where labels were progressively randomized (label noise).
Much like over-parameterized ImageNet models, GNNs are perfectly capable of memorizing completely random labels on graphs. As shown above, the training loss converges to near zero even with 100% label noise, while the test error scales predictably with the noise level. This proves that high training performance in GNNs is often just "memorization" unless there is a genuine structural alignment between the data and the model.
Furthermore, the authors demonstrated that their theoretical bounds closely tracked the actual empirical generalization error across multiple real-world datasets, validating the TMD as a meaningful measure for GNN generalization.
Limitations and Future Work
While a significant step forward, the authors note that their bounds currently serve better as qualitative guidelines rather than precise numerical estimates for test error. Additionally, in real-world tasks, we rarely know in advance which structural features (and thus which $\zeta$-TMD) are most relevant. Identifying the optimal pseudometric for a new dataset remains an open challenge.
A promising future direction is leveraging these TMD metrics to design better data augmentation strategies—essentially generating synthetic graphs that "fill the gaps" in the structural distance between training and test sets to improve generalization.
Summary updated