[Paper Review] Graph Neural Networks are Inherently Good Generalizers: Insights by Bridging GNNs and MLPs
This paper introduces Propagational MLPs (PMLPs), a novel model class that trains like a standard MLP but applies message passing during inference, mirroring GNN architecture. The key finding is that PMLPs consistently match or exceed both MLPs and GNNs in node classification, revealing that GNNs' superior generalization stems not from training dynamics but from the inherent inductive bias of message passing in inference, fundamentally reshaping understanding of GNN generalization capabilities.
Graph neural networks (GNNs), as the de-facto model class for representation learning on graphs, are built upon the multi-layer perceptrons (MLP) architecture with additional message passing layers to allow features to flow across nodes. While conventional wisdom commonly attributes the success of GNNs to their advanced expressivity, we conjecture that this is not the main cause of GNNs' superiority in node-level prediction tasks. This paper pinpoints the major source of GNNs' performance gain to their intrinsic generalization capability, by introducing an intermediate model class dubbed as P(ropagational)MLP, which is identical to standard MLP in training, but then adopts GNN's architecture in testing. Intriguingly, we observe that PMLPs consistently perform on par with (or even exceed) their GNN counterparts, while being much more efficient in training. This finding sheds new insights into understanding the learning behavior of GNNs, and can be used as an analytic tool for dissecting various GNN-related research problems. As an initial step to analyze the inherent generalizability of GNNs, we show the essential difference between MLP and PMLP at infinite-width limit lies in the NTK feature map in the post-training stage. Moreover, by examining their extrapolation behavior, we find that though many GNNs and their PMLP counterparts cannot extrapolate non-linear functions for extremely out-of-distribution samples, they have greater potential to generalize to testing samples near the training data range as natural advantages of GNN architectures.
Motivation & Objective
- To investigate whether the generalization superiority of GNNs over MLPs arises from their architecture or training process.
- To isolate the role of message passing in GNNs' performance by decoupling training and inference architectures.
- To challenge the conventional belief that GNNs' success stems from enhanced representational power, and instead attribute it to inductive bias in inference.
- To provide a new analytic framework—PMLPs—for dissecting GNN behavior and understanding generalization in graph neural networks.
Proposed method
- Introduce PMLP, a model that uses standard MLP training (same architecture, data, loss, optimizer) but applies non-parametric message passing layers during inference.
- Train a standard MLP on graph-structured data, then apply GNN-style message passing at test time to form PMLP.
- Compare PMLP performance against both vanilla MLP and full GNNs across multiple benchmarks and architectural variations.
- Analyze the infinite-width limit of PMLP and MLP to identify differences in their Neural Tangent Kernel (NTK) feature maps post-training.
- Examine generalization and extrapolation behavior under distribution shifts, particularly near the training data support.
- Use t-SNE visualizations to compare internal node representations learned by MLP, PMLP, and GNNs, assessing class separability.
Experimental results
Research questions
- RQ1Does the message passing mechanism in GNNs inherently improve generalization, independent of training dynamics?
- RQ2Can a model trained as an MLP but tested with message passing (PMLP) achieve performance comparable to a full GNN?
- RQ3What is the primary source of GNNs’ generalization advantage over MLPs: representational capacity or inductive bias in inference?
- RQ4How do PMLP and GNNs differ in their ability to extrapolate to out-of-distribution samples, especially near the training distribution?
- RQ5What distinguishes the NTK feature maps of PMLP and MLP at infinite width, and how does this relate to generalization?
Key findings
- PMLPs consistently outperform vanilla MLPs in testing accuracy despite sharing the same trained weights, indicating that message passing in inference inherently improves generalization.
- PMLPs achieve performance on par with or even exceeding their corresponding GNNs in node classification, particularly under noisy or sparsified graph settings.
- The generalization gap of PMLP is significantly smaller than that of MLP, demonstrating that the GNN architecture’s inductive bias during inference reduces overfitting.
- In the infinite-width limit, the NTK feature map of PMLP differs from that of MLP, revealing a structural distinction tied to the message passing mechanism.
- Both PMLP and GNNs show smoother transition and better generalization to samples near the training distribution, while MLPs linearize abruptly outside the support.
- t-SNE visualizations confirm that PMLP and GNNs learn more discriminative, class-separable node representations than MLP, even though PMLP uses the same weights as MLP during training.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.