acceptodds
Published as a conference paper at NeurIPS 2026

On the Rademacher Complexity of Graph Neural Networks: Unifying Expressivity and Geometry

Martin Carrasco, Caio Deberaldini Netto, Ehimare Okoyomon, Aneeqa Mehrab, Vahan Martirosyan, Caterina Graziani

Abstract

Understanding the interplay between generalization, expressivity, and the geometry of the input space is a central challenge in graph learning. The expressivity of Graph Neural Networks (GNNs) is typically characterized through their correspondence with graph invariants, such as those from the Weisfeiler-Leman (WL) hierarchy. While more expressive GNNs can distinguish a richer set of graphs, they are also associated with weaker generalization guarantees. Previous works have addressed this trade-off using the VC dimension, a purely combinatorial measure, independent of the training data. In this work, we adopt a data-dependent measure of generalization, the empirical Rademacher complexity, and derive tight generalization bounds that jointly consider the expressive power of GNNs and the geometry of the underlying input space. Specifically, any graph invariant that upper-bounds a GNN's expressive power partitions the input space into equivalence classes, and we show that the empirical Rademacher complexity is controlled by the distribution of training samples across these classes. Moving beyond discrete partitions, we incorporate the geometry of the input space and derive covering-number bounds under Lipschitz continuity, showing that the complexity cost can be mitigated when the hypothesis class remains smooth over the data geometry. In addition, we prove that the empirical Rademacher complexity is Lipschitz continuous with respect to the Wasserstein distance between empirical measures supported on different datasets. This yields robustness and generalization guarantees under sampling variability. Importantly, our framework is not restricted to message-passing GNNs or WL, but extends to arbitrary GNN architectures and their associated invariants, providing a step toward a unified theory of GNN generalization.

Keywords:
Paris, Main Track

Reviews

Among:
Shape:
123456this paper, Bottom 4%
Figure 1. Mean review rating of the reviewed papers at NeurIPS 2026. This paper averages 3.67 over 3 reviews, above 4% of the others.
Reviewer_xJfYOpenReview ↗
Rating
3
Clarity
4
Confidence
4
Originality
3
Quality
3
Significance
2
Read review
Summary

The paper studies the Rademacher complexity of function classes defined on graphs, motivated by generalization of graph neural networks. This Rademacher complexity classically decays as O(1/m)O(1/\sqrt{m}) where mm is the number of graphs used for training, but the authors further analyze the rate of decay as a function of the expressivity of the family of graph models. Expressivity is qualitatively defined by the ability of different models in the family to take distinct values of distinct graphs, and quantitatively measured either by the number of distinct values a graph parameter takes on a training set, or by the covering numbers of that set with respect to a pseudometric on graphs. The resulting bounds are nonasymptotic, roughly-speaking have the form O(P/m)O(\sqrt{P/m}) where PP quantifies expressivity as above, and often come with matching lower bounds.

Strengths and weaknesses

The paper is clearly written and does a good job motivating and interpreting its results. I think the approach taken in the paper to quantify expressivity is simple and natural, as are the bounds on Rademacher complexity, and ultimately on generalization.

The main weakness in the paper is the lack of instantiations of the its theory, making it very hard to judge how significantly they improve upon previous results. The authors state all of their results for general training sets, data distributions, loss functions, model classes, and graph invariants, but never actually instantiate these results on any concrete settings or perform any experiments.

For example, what do the bounds in the paper look like for vanilla GNNs and the 1-WL test? How significantly do the bounds on Rademacher complexity improve using the results in this paper? Naively looking at the bounds in the paper, it would seem that the authors merely improve a constant in front of the usual 1/m1/\sqrt{m} term. For the same reason, it's not clear how the bounds in Propositions 2-4 actually differ, when one should expect each bound to be most informative, and how these bounds compare to previous results in the literature.

Questions

Can you instantiate the bounds in Propositions 2-4 in some concrete settings, like vanilla GNNs with the 1-WL test, or for a model class consisting of linear combinations of some homomorphism densities? How do the bounds compare with each other and with previous bounds that do not take expressivity into account? Does the choice of graph invariant TT or the data distribution D\mathcal{D} (e.g., sampling from a graphon) play a significant role?

Limitations

There is an adequate discussion of limitations.

Paper formatting concerns

None.

Final justification

I agree with the authors that the idea of quantifying expressivity using graph invariants is novel and potentially an interesting direction for further research, but I'm not sure that the results in this paper are convincing demonstrations of its utility. I'm keeping my score unchanged but I'm not confident about it, and wouldn't be opposed to recommending acceptance if the other reviewers feel strongly otherwise.

1 comment

We thank the reviewer for their question and request for instantiation of the theory. This provides us an opportunity to clarify and improve our work.

Q1. Concrete instantiation

We agree that the current presentation is model-agnostic, hence, we performed experiments to validate Proposition 2. Please, see the response to reviewer yaPg, Q1, for the results and see the following point Q4 for an instantiation to particular graph distributions.

Q2.1 How do the bounds compare with each other?

Proposition 2 uses exact invariant equivalence and requires no Lipschitz assumption; it is most informative when many sample graphs share an invariant class.

Proposition 4 can be viewed as a continuous relaxation of Proposition 2. Exact equality of the model output within each equivalence class is replaced by a Lipschitz condition. This bound is more informative when graphs that are distinguished by the invariant are close in the metric space. In that case, non-equivalent graphs may fall into the same ε\varepsilon-ball, reducing the covering number, at the fixed cost of the approximation term λε\lambda\varepsilon.

As an example where Prop.4 can be more informative than Prop. 2, consider attributed graphs with the same underlying structure (e.g. Cycles of nn nodes) but slightly different real-valued node features and set T=1−WLT=1-WL. Two such graphs belong to different equivalence classes, already from the initialization of 1-WL. If instead we choose a metric such as d(G,H)=∣∣XG−XH∣∣Fd(G,H)=|| X_G-X_H||_F, where XGX_G is the feature matrix, then graphs with similar features remain close in the metric space. Under suitable norm/activations constraints, architectures such as GCNs are Lipschitz with respect to dd, so Prop. 4 can cover close graphs at the same finite resolution.

Proposition 3 combines the partition-based improvement of Proposition 2 with the classic Dudley entropy bound. The proposition is most useful when one wants to combine an existing architecture-dependent covering bound from the literature with the additional improvement provided by the invariant-induced partition.

Q2.2 How do the bounds compare with previous bounds that do not take expressivity into account? and how significantly do they improve?

The clearest comparison is between Prop. 3 and the MPNN covering argument of [2]. The improvement is at most logaritmic in pp and vanishes for p≈mp\approx m. Nevertheless, we note that it is not only a constant value in front of the entropy term: using the same argument as [2], the classical choice α=1/m\alpha=1/\sqrt m can be replaced by α=1/p\alpha=1/\sqrt p, while keeping the residual contribution equal to 4/m4/m. This raises the truncation scale and replaces the factor m\sqrt m inside the logarithmic entropy term with p\sqrt p. Thus, when p≪mp\ll m, the improvement propagates to the covering term; when p≈mp\approx m, the gain essentially disappears. In their specific instantiation, this is at most a logarithmic improvement but provides a metric to compare architectures beyond standard network parameters. If the pp is fixed, the explicit bound improves from O(log⁡m/m)O(\sqrt{\log m/m}) to O(1/m)O(1/\sqrt m).

We can also relate our bound in Prop. 2 to the classical growth function argument. Assuming a maximally expressive GNN over pp discrete equivalence classes (e.g., with a sufficiently wide 2-layer MLP that acts as a universal approximator at each layer), the model is capable of assigning any arbitrary binary combination of labels to those classes. Therefore its growth function is 2p2^p, so Massart’s lemma gives RS≤2pln⁡2/m≈1.17pm.\mathcal{R}_S \le \sqrt{{2p\ln 2}/{m}}\approx 1.17 \sqrt{\frac{p}{m}}.

We can now directly compare this classical baseline to the upper bound established in our Prop. 2, which is always strictly smaller than the classical bound. We can demonstrate this by examining the bounds under two regimes:

  • The Uniform Regime: The theoretical maximum for our bound occurs when the dataset is uniformly distributed across all pp classes (meaning μj=1/p\mu_j = 1/p for all jj). In this maximally entropic scenario, our data-dependent bound reduces to p/m\sqrt{p/m} providing a strictly tighter guarantee than the Massart bound even in the absolute worst-case scenario.
  • The Heterogeneous Regime: The classical Massart bound depends solely on the total number of classes pp, penalizing them all equally. Our bound explicitly captures the structural heterogeneity through the empirical class frequencies μj\mu_j. Because the square root function is strictly concave, a highly imbalanced dataset—where the majority of graphs cluster into a few dense 1-WL equivalence classes—causes the sum ∑j=1pμj/m\sum_{j=1}^p \sqrt{\mu_j / m} to drop significantly below p/m\sqrt{p/m}. This yields a far tighter and more realistic generalization guarantee than classical capacity measures allow.

We will add these comparisons to the appendix, together with a comparison to the expressivity-related VC-dimension bound of [3, Proposition 2], showing that our bound is strictly tighter in the considered setting.

Q3. Role of the invariant

Yes. The selected invariant affects the bound through the empirical partition it induces. In particular, for any two valid graph invariants upper bounding the expressive power of an architecture, the best choice is to select the least expressive. Indeed, increasing the expressive power of the invariant, and therefore refining the partition, can only increase the bound. Ideally, one would use the partition induced by the architecture itself, which gives the tightest bound, or using only LL iterations of 1-WL rather than the stable 1-WL partition, for a LL-layer GNN. The stable partition may distinguish graphs using more refinement steps than the architecture can realize, leading to a valid but more pessimistic bound.

For homomorphism-count invariants, the comparison depends on the selected pattern family. For a generic collection of motifs, there may be no ordering with respect to a WL test, and the resulting bound depends on the dataset. If, instead, the complete homomorphism profile over all patterns of treewidth at most kk is used, it induces the same equivalence partition as kk-WL ([1], Theorem 3) and therefore gives exactly the same bound.

Q4. Role of data distribution

The dependence on the graph distribution is mediated by the representation of the graph space used in each proposition. In Prop. 2, a distribution D\mathcal D matters only through its pushforward onto the equivalence classes induced by the selected invariant. In particular, if (C1,…,Cp)(C_1,\ldots,C_p) are the equivalence classes and qj=PG∼D(G∈Cj)q_j=\mathbb P_{G\sim\mathcal D}(G\in C_j), then, assuming that the data distribution is supported on the pp classes, the bound depends on D\mathcal D only through the vector q=(q1,…,qp)\mathbf{q}=(q_1,\ldots,q_p). In the following, a concrete example on how the bound changes by changing the distribution q\mathbf{q}. We consider GIN as a running example because it allows us to compute the exact Rademacher complexity in a maximally expressive setting and compare it numerically with our bounds. With a sufficiently expressive MLP, this hypothesis class can realize the "sup" of the Rademacher:

RS(FGIN)=1mEσ[sup⁡Θ∑j=1pfj(Θ)∑i∈Ijσi]=!1m∑j=1pEσ∣∑i∈Ijσi∣.R_S(\mathcal F_\mathrm{GIN}) = \frac{1}{m} \mathbb E_\sigma \left[ \sup_\Theta \sum_{j=1}^{p} f_j(\Theta) \sum_{i \in I_j} \sigma_i \right] \overset{!}= \frac{1}{m} \sum_{j=1}^{p} \mathbb E_\sigma \left| \sum_{i \in I_j} \sigma_i \right|.

Let ∣Ij∣=nj|I_j| = n_j and let qj=PG∼D(G∈Cj)q_j = \mathbb P_{G \sim \mathcal D}(G \in C_j) be the probability that GG is in class CjC_j. Then (n1,…,np)∼Multinomial⁡(m;q1,…,qp)(n_1, \ldots, n_p) \sim \operatorname{Multinomial}(m; q_1, \ldots, q_p). For the sufficiently rich GIN class described above, its true Rademacher complexity is

Rm(FGIN)=1m∑j=1p∑r=0m(mr)qjr(1−qj)m−rar,R_m(\mathcal F_\mathrm{GIN}) = \frac1m \sum_{j=1}^p \sum_{r=0}^m \binom mr q_j^r (1-q_j)^{m-r} a_r,

where ar=∑k=0r∣2k−r∣2r(rk)a_r = \sum\limits_{k=0}^{r} \frac{|2k-r|}{2^r} \binom rk. The statistical version of our bound becomes:

Rm(FGIN)=ES[RS(FGIN)]≤∑j=1pESμjm≤∑j=1pES[μj]m=∑j=1pqjm.R_m(\mathcal F_\mathrm{GIN}) = \mathbb E_S[\mathcal R_S(\mathcal F_\mathrm{GIN})] \le \sum\limits_{j=1}^p \mathbb E_S \sqrt\frac{\mu_j}{m} \le \sum\limits_{j=1}^p \sqrt\frac{\mathbb E_S[\mu_j]}{m} = \sum\limits_{j=1}^p \sqrt\frac{q_j}{m}.

This formula allows to compute the Rademacher complexity of FGIN\mathcal{F}_{\mathrm{GIN}}, for different distribution of graphs in equivalence classes. A complete derivation will appear in the revised paper. For m=100:m=100:

q\mathbf{q}Exact Rm\mathcal{R}_mOur Bound
(1)(1)0.0800.0800.10.1
(0.25,0.25,0.25,0.25)(0.25,0.25,0.25,0.25)0.1590.1590.20.2
(0.97,0.01,0.01,0.01,0.01)(0.97,0.01,0.01,0.01, 0.01)0.1050.1050.1380.138

A graphon WW provides one concrete way of defining a graph distribution. For graphs with nn vertices sampled according to WW, one can define qjW=PG∼W(G∈Cj)q_j^{W}=\mathbb P_{G\sim W}(G\in C_j) and substitute these probabilities directly into Prop. 2. We emphasize that there is no universal behavior shared by all graphons. Degenerate graphons may concentrate all probability on a single equivalence class, whereas stochastic graphons may distribute their mass over many classes. The latter illustrates the complementary role of Prop. 4. Even when exact collisions are rare, the distribution may still be concentrated with respect to a graph metric. There, Proposition 4 may remain informative, although concentration under a specific metric does not follow from graphon sampling alone and must either be established for the considered model or evaluated empirically.

[1] Dell, H., et al. Lovász Meets Weisfeiler and Leman. ICALP 2018.

[2] Garg, V. K., et al. Generalization and Representational limits of graph neural networks. ICML 2020.

[3] Morris, Christopher, et al. "Wl meet vc." ICML 2023.

Reviewer_c2WGOpenReview ↗
Rating
3
Clarity
3
Confidence
3
Originality
3
Quality
3
Significance
2
Read review
Summary

The paper develops empirical Rademacher complexity bounds for GNNs that jointly account for expressivity, input-space geometry, and cross-dataset stability. They parameterize everything by an arbitrary expressivity-bounding graph invariant (with 1-WL as the running example) rather than fixing the message-passing/1-WL pairing.

The authors present three main results: (1) a partition-based bound, two-sided tight under a "maximal expressivity" assumption; (2) a geometric refinement under Lipschitz continuity w.r.t. a pseudo-metric; (3) a stability result showing RS is α\alpha-Lipschitz in the 1-Wasserstein distance between empirical dataset measures, yielding cross-dataset generalization and perturbation-robustness corollaries.

There is also an improvement to the Dudley entropy integral and a quotient-space construction generalizing the discrete and T-equivalent-metric cases.

Strengths and weaknesses

Strengths: The generality beyond 1-WL is a nice conceptual contribution and is explained cleanly: the invariant-indexed framework subsumes the discrete partition, T-equivalent-metric, and quotient cases as special instances. The Dudley improvement (Prop 3) is concrete. The concavity insight (uniform class distribution maximizes the bound; skewed distributions tighten it) provides real intuition for why worst-case expressivity penalties are often not realized. The stability analysis via optimal transport is a clean way to get distribution-shift guarantees.

Weaknesses: No empirical validation, which is a notable gap for a paper that explicitly claims to explain why the expressivity/generalization tension is "milder in practice." The two-sided tightness rests on the maximal-expressivity assumption (Def 1) and a universal-approximation step whose realism for actual GNN classes is asserted rather than argued. The scope is restricted to binary classification. Several core results have hidden structural requirements (e.g., equal sample size in the continuous W_1 bound) that limit applicability to the very distribution-shift settings motivated.

Questions
  1. Is the maximal-expressivity assumption (Def 1) satisfiable by realistic GNN classes, or is it effectively vacuous? The lower bounds hinge on it.
  2. How does the continuous W_1 stability bound (Thm 5) degrade when ∣S∣≠∣S′∣|S| \neq |S'|? The permutation argument seems to require equal sizes, but the motivating distribution-shift setting generally won't.
Limitations

Addressed in the comments on weaknesses

Paper formatting concerns

No concerns

1 comment

We thank the reviewer for their response and request for further explanation. This provides us an opportunity to clarify our work.

Q1. Is the maximal-expressivity assumption (Def 1) satisfiable by realistic GNN classes, or is it effectively vacuous? The lower bounds hinge on it.

Yes, it is satisfiable. A concrete example would be fixing A\mathcal{A} to be GIN [1] and TT to be 1-WL. Then the class FA\mathcal{F_A} is maximally expressive since it contains a function that is as good as TT (1-WL in this case) in distinguishing graphs [1]. On any finite collection of observed 1-WL classes, a sufficiently expressive MLP prediction head can interpolate arbitrary values on the corresponding distinct representations. Hence the resulting GIN hypothesis class can realize every assignment of signs to the observed 1-WL classes, and therefore satisfies the conditions required by the lower bound. For a broader class of GNNs, they have been shown to be universal approximators on every measurable function, modulo the 1-WL (or unfolding tree) equivalence. This result was proven in probability by Scarselli for the original GNN model [2] and then extended for modern MPNNs by D’inverno [3].

Q2. How does the continuous W_1 stability bound (Thm 5) degrade when ∣S∣≠∣S′∣|S|\neq|S'|? The permutation argument seems to require equal sizes, but the motivating distribution-shift setting generally won't.

We assume that in the stability bound (Thm. 5) samples have equal size. As noted, that is a requirement for the permutation argument. Though not wrong, we acknowledge that there is a real gap between what we proved and the distribution shift claim.
We first note that some size-dependent term is unavoidable, so this cannot be repaired by sharpening the transport term alone. Replicating every graph of SS kk times leaves both empirical measures exactly unchanged, hence W1(S,S′)=0W_1(S,S') = 0, while RS′(FA)→0\mathcal R_{S'}(\mathcal F_{\mathcal A}) \to 0 and RS(FA)\mathcal R_S(\mathcal F_{\mathcal A}) stays fixed: the discrepancy approaches its maximal value at zero distance. The reason is that, because of the 1/m1/m normalization in Eq. (7), RS(FA)\mathcal R_S(\mathcal F_{\mathcal A}) is not a functional of the empirical measure alone – it depends on the class sizes ∣Cj∣\lvert C_j \rvert, not only on the proportions μST(cj)\mu^T_S(c_j).
We have accordingly proved an unbalanced version. Let m=∣S∣≤m′=∣S′∣m = \lvert S \rvert \le m' = \lvert S' \rvert, write the graphs of SS as G1,…,GmG_1, \dots, G_m and those of S′S' as H1,…,Hm′H_1, \dots, H_{m'}, and replace the permutation π∈Sm\pi \in \mathcal S_m by an injection ι:[m]↪[m′]\iota : [m] \hookrightarrow [m'], which gives the partial-transport cost

W1part(S,S′):=min⁡ι1m∑i=1md(Gi,Hι(i)).W_1^{\mathrm{part}}(S,S') := \min_{\iota} \frac{1}{m} \sum_{i=1}^{m} d\bigl(G_i, H_{\iota(i)}\bigr).
Then the empirical Rademacher complexity satisfies

∣RS(FA)−RS′(FA)∣≤α⋅W1(S,S′)+(1−mm′),(⋆)\bigl\lvert \mathcal R_S(\mathcal F_{\mathcal A}) - \mathcal R_{S'}(\mathcal F_{\mathcal A}) \bigr\rvert \le \alpha \cdot W_1(S,S') + \Bigl(1 - \frac{m}{m'}\Bigr), \qquad (\star)

where α\alpha and W1W_1 are as in Thm. 5, with W1(S,S′)=W1part(S,S′)W_1(S,S') = W_1^{\mathrm{part}}(S,S') in the continuous pseudo-metric regime and W1(S,S′)=W1(μST,μS′T)W_1(S,S') = W_1(\mu^T_S, \mu^T_{S'}) in the discrete partitioning regime.

Proof sketch. Let S~\widetilde S be the matched sub-sample consisting of Hι(1),…,Hι(m)H_{\iota(1)}, \dots, H_{\iota(m)}, and let U:=S′∖S~U := S' \setminus \widetilde S hold the m′−mm' - m unmatched graphs. Split the discrepancy into a transport term and an imbalance term:

∣RS−RS′∣≤∣RS−RS~∣+∣RS~−RS′∣.\bigl\lvert \mathcal R_S - \mathcal R_{S'} \bigr\rvert \le \bigl\lvert \mathcal R_S - \mathcal R_{\widetilde S} \bigr\rvert + \bigl\lvert \mathcal R_{\widetilde S} - \mathcal R_{S'} \bigr\rvert .

The first term compares two samples of equal cardinality mm, so the permutation argument of Thm. 5 applies verbatim and bounds it by α⋅1m∑id(Gi,Hι(i))\alpha \cdot \frac{1}{m} \sum_i d(G_i, H_{\iota(i)}). The second term is a pure size effect and is controlled in two directions: subadditivity of the supremum gives m′RS′≤mRS~+(m′−m)RUm' \mathcal R_{S'} \le m \mathcal R_{\widetilde S} + (m'-m) \mathcal R_U, while conditioning on the Rademacher variables indexed by UU and using E[σU]=0\mathbb E[\sigma_U] = 0 with Jensen's inequality gives m′RS′≥mRS~m' \mathcal R_{S'} \ge m \mathcal R_{\widetilde S}. Since R≤1\mathcal R \le 1 for classes with outputs in [−1,1][-1,1], both directions yield ∣RS~−RS′∣≤1−m/m′\lvert \mathcal R_{\widetilde S} - \mathcal R_{S'} \rvert \le 1 - m/m'. Minimizing over ι\iota gives (⋆)(\star) in the continuous regime. The discrete regime then follows by instantiating dd as the discrete metric induced by TT and observing that m≤m′m \le m' implies nj(S′)/m≥μS′T(cj)n_j(S')/m \ge \mu^T_{S'}(c_j), whence W1part(S,S′)≤W1(μST,μS′T)W_1^{\mathrm{part}}(S,S') \le W_1(\mu^T_S, \mu^T_{S'}). The full proof will appear in Appendix C.4 of the revised version.

The bound is thus Thm. 5 plus a single imbalance term, and is consistent with it: when m=m′m = m', injections are bijections, so W1part(S,S′)=W1(νS,νS′)W_1^{\mathrm{part}}(S,S') = W_1(\nu_S,\nu_{S'}) and the two transport terms coincide, the imbalance term vanishes, and we recover Thm. 5 exactly in both regimes. The imbalance term is also unavoidable in the sense above – on the replication family the true discrepancy tends to 11 while W1=0W_1 = 0 – so (⋆)(\star) is informative when m/m′→1m/m' \to 1 (resampling, perturbation, moderate reweighting) and degrades genuinely, under severe imbalance. We will state this scope explicitly rather than claiming distribution shift in general.

Regarding the reported weakness that "The scope is restricted to binary classification", we agree with the reviewer that the current paper is formally stated only for binary classification. We nevertheless note that the main upper-bound mechanisms underlying Propositions 2–4 are not inherently tied to binary labels. In particular, Appendix C.2 already provides an upper bound for real-valued function classes, which may serve as a first step toward regression settings. A full treatment of regression, however, is beyond the current scope and is left for future work.

[1] Xu, K., Hu, W., Leskovec, J., & Jegelka, S. (2019). How powerful are graph neural networks? ICLR

[2] Scarselli, F., Gori, M., Tsoi, A. C., Hagenbuchner, M., & Monfardini, G. (2008). The graph neural network model. IEEE transactions on neural networks

[3] D’Inverno, G. A., Bianchini, M., Sampoli, M. L., & Scarselli, F. (2024). On the approximation capability of GNNs in node classification/regression tasks. Soft Computing

Reviewer_yaPgOpenReview ↗
Rating
5
Clarity
3
Confidence
4
Originality
3
Quality
4
Significance
3
Read review
Summary

This paper connects the generalization properties of graph neural networks (GNNs) with notions of their expressive power. In particular, it formalizes expressive power of an architecture using graph invariants. A graph invariant is a function from graphs to an invariant space, which naturally induces an equivalence relation on the set of graphs. The paper derives upper and lower bounds on the empirical Rademacher complexity of a class of GNNs in terms of the probability distribution induced by the cardinalities of equivalence classes of graphs in the dataset. Here, the equivalence classes are induced by any graph invariant that bounds the expressivity of the class of GNNs. These bounds match one another up to a constant factor. It additionally generalizes the Dudley entropy integral upper bound on the empirical Rademacher complexity. Finally, stability of the empirical Rademacher complexity to perturbations of the data is studied.

Strengths and weaknesses

The paper makes an interesting contribution by tying generalization power of GNNs to their expressivity in a general manner. The resulting bounds are tight up to a constant factor. The exposition is mostly easy to follow, and limitations and future work are discussed.

A weakness is that example applications of the main bounds are not given (though the authors mention the possibility of analyzing the expected Rademacher complexity for specific random graph models).  

Additionally, there are some very minor deficiencies in the writing:

1.) Line 229: When stating that the empirical Rademacher complexity lower and upper bounds are of the same order, a $\Theta$ should be used instead of $O$.

2.) On the same page, at a few points, the property of maximal expressivity is ascribed to individual functions in a hypothesis class.  This seems to be a mistake, since maximal expressivity is a property of an entire class.
Questions

The main thing that would improve the paper is an example application of the derived bounds. For instance, can the authors, without too much trouble, use the results to compute bounds on the expected Rademacher complexity of a GNN architecture on a very simple graph distribution?

To what extent are the results specific to GNNs, rather than general graph learning hypothesis classes? Can some consequences for specific GNN architectural parameters be derived?

Answers to both of these questions would improve my ``clarity'' rating of the paper.

Limitations

Yes.

Paper formatting concerns

N/A

Final justification

I am inclined toward acceptance after the discussion period, for reasons discussed at length in my post-author-discussion comment. The authors have addressed all of my questions, and concerns raised by other reviewers have been addressed to my satisfaction.

1 comment

We thank the reviewer for their comments. We will revise the presentation of the paper following their suggestion and, in particular, clarify that maximal expressivity is a property of the function class, as correctly pointed out. We address their questions below.

Can the authors, without too much trouble, use the results to compute bounds on the expected Rademacher complexity of a GNN architecture on a very simple graph distribution?

We empirically validate our lower and upper bounds of Proposition 2, by fixing TT as 1-WL and generating mm samples (our S{S}). The dataset will contain both dd-regular graphs and Erdos-Renyi graphs with a total of pp 1-WL equivalence classes. Regular graphs of the same degree are all 1-WL equivalent, costituting one class. After generating each ER graph we check that it belong to a new 1-WL class. Each equivalence class that is not the dd-regular graphs will have the same number of graphs, denoted as nERn_{ER} in the table below.

The task is to train a GIN network of 1-layer and hidden dimension 1616, followed by a two-layer MLP, on a dataset with p=3p=3 to fit labels ∈−1,1\in \\{-1,1\\}. To approximate RS\mathcal{R}_S we use the Monte Carlo method and perform K=80K=80 training runs, each with different random assignmets of the two labels, and average over them. In the table below MC RS\mathcal{R}_S denotes this estimate and RS\mathcal{R}_S denotes the exact RS\mathcal{R}_S by closed formula derived below. The results show that MC RS\mathcal{R}_S always stays within the lower and upper bounds and remains close to RS\mathcal{R}_S as shown by the last column. It's also shown how the gap between the lower and upper bounds becomes progressively smaller as mm increases. We will update the manuscript with pretty plots of these results.

mmnERn_{ER}Lower RS\mathcal{R}_SMC RS\mathcal{R}_SUpper RS\mathcal{R}_SRS\mathcal{R}_S∥\|MC$\mathcal{R}_S-\mathcal{R}_S|$
5010.126300.142000.178600.150000.00800
20.135900.147600.192200.147640.00004
50.152700.162400.215900.175300.01290
100.166900.173200.236000.185100.01190
10010.084140.102800.119000.098790.00401
50.098700.110200.139600.113000.00280
100.108000.115200.152700.120400.00520
200.118000.122400.166900.132000.00960
20020.059500.074000.084140.065780.00822
100.069790.080400.098700.078060.00234
200.076340.086400.108000.085620.00078
400.083450.094800.118000.093760.00104

About the closed formula for the exact empirical Rademacher complexity

On the considered sample, the GIN produces distinct representations for the three observed 1-WL equivalence classes, and its two-layer MLP prediction head can realize every assignment of the labels to these classes. Therefore, for every realization of the Rademacher variables, the model can attain the supremum independently on each equivalence class. Hence, RS(FGIN)=!1m∑j=1pEσ∣∑i∈Ijσi∣=1m∑j=1panj,R_S(\mathcal F_\mathrm{GIN}) \overset{!}{=} \frac{1}{m} \sum_{j=1}^{p} \mathbb E_\sigma \left| \sum_{i \in I_j} \sigma_i \right|=\frac{1}{m} \sum_{j=1}^{p} a_{n_j}, where ∣Ij∣=nj|I_j| = n_j. Denote by K∼Binomial(nj,1/2)K\sim\mathrm{Binomial}(n_j,1/2) the number of +1+1 signs among σ1,…,σnj\sigma_1,\ldots,\sigma_{n_j}. For K=kK=k, the Rademacher sum equals 2k−nj2k-n_j. Hence, $a_{n}=\sum\limits_{k=0}^n|2k-n|\mathbb{P}(K=k)=\sum\limits_{k=0}^{n} |2k-n|\frac{\binom nk}{2^{n}}$. This is a closed formula we can use to compute the exact empirical Rademacher of our model class FGIN\mathcal{F}_{\mathrm{GIN}}.

To what extent are the results specific to GNNs, rather than general graph learning hypothesis classes?

The results are not specific to GNNs. Propositions 2 and 3 apply to any graph-learning hypothesis class for which one can identify an invariant such that all models are constant on its equivalence classes. GNNs provide a natural instantiation because their expressive power can often be related to well-studied invariants such as WL tests. Ideally, one would use the invariant induced by the architecture itself, as this yields the coarsest valid partition and therefore the tightest bound. Proposition 4 applies whenever the hypothesis class is Lipschitz with respect to a suitable graph pseudometric and if it is maximally expressive (for the matching lower bound).

At a more abstract level, this framework can be adapted to other domains once suitable model-specific invariants and (pseudo)metrics are identified. We thank the reviewer for this observation and we will broaden the scope of the discussion in the revised manuscript.

Can some consequences for specific GNN architectural parameters be derived?

Yes, indeed model design affects the bounds thourgh different quantities in the three propositions.

Specifically for Proposition 2, we can substitute the invariant TT with the one induced by the architecture itself. The resulting partition can be estimated empirically on the dataset, by grouping together graphs whose output is close G≡AH  ⟺  ∣fθ(G)−fθ(H)∣<tG\overset{\mathcal A}{\equiv} H \iff |f_\theta(G)-f_\theta(H)|<t, for a selected threshold tt, and for all θ∈ΘA\theta\in \Theta_{\mathcal{A}}. Any architectural specification -- such as the number of layers, the choice of aggregation function, the width -- that increases the expressive power of A\mathcal A and refines the partition, will increase the bound.

Proposition 3 provides a direct route to parameter-dependent consequences, since the covering number of the output space is directly bounded by architecture parameters. Existing architecture-specific estimates can be plugged into our result and further refined by exploiting the p−p-dimensional structure induced by the invariant (see Q2.2 of Reviewer xJfY for more details).

Finally, in Proposition 4, architectural choices enter through the Lipschitz constant with respect to the selected metric. For standard message-passing architectures, this constant can typically be bounded in terms of the product of layer-wise weight norms, including the input projection and readout, together with suitable norms of the graph shift operator. Controlling these quantities leads to a smaller Lipschitz constant. The effect of a larger Lipschitz constant can be mitigated by choosing a smaller ε\varepsilon, but this generally increases the number of metric balls required to cover the input space, leading to the usual approximation–complexity trade-off.

Comments on the paper

1 comment
Meta-review

In this paper, the authors derive generalization bounds for GNNs with a Rademacher approach, focusing however on reconciling greater expressivity with better (at least not worse) generalization. For this, they adopt data-dependent definitions and incorporate the geometry of the underlying space, with notions of smoothness that are usually quite rare in the discrete settings of graphs.

The reviewer globally appreciated the idea and noted its importance and relevance. However, they formulated two main concerns that must be addressed: the noted that the derived bound was extremely general and was not instantiated on concrete architecture and graph distribution, as well as lack of numerical experiments. This makes it difficult to compare the bound with previous ones, and assess whether there is a real improvement, and at which level. Could the authors convincingly develop such concrete examples, even simple ones?

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Related papers

Loading the map…

Discussion (0)

Sign in to comment.