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

Martin Carrasco, Caio Netto, Ehimare Okoyomon, Vahan A. Martirosyan, Aneeqa Mehrab, Caterina GrazianiNeurIPS 2026

TL;DR

In Graph Neural Networks (GNNs), making a model "smarter"—able to tell apart more complex graphs—usually raises fears that it will just memorize the training data and fail to generalize. This paper shows that those fears are often overblown if you actually look at the structure and geometry of your data. By bridging discrete graph invariants with continuous data geometry, the authors derive much tighter, realistic guarantees on how well any GNN architecture generalizes to unseen graphs.

What Problem Does This Paper Address?

For years, GNN researchers have obsessed over expressivity: can a network tell two non-identical graphs apart? Standard Message-Passing GNNs are famously capped by a classical coloring algorithm called the 1-Weisfeiler-Leman (1-WL) test. To break past this ceiling, researchers build more expressive GNNs.

Here’s the catch: classical learning theory says there’s no free lunch. More expressive models typically suffer from weaker generalization guarantees. Previously, theorists measured this trade-off using the VC dimension—a worst-case, purely combinatorial yardstick that ignores the actual data you’re training on. Other researchers looked at data-dependent bounds or continuous graph distances, but in isolation. What’s been missing is a unified theory that connects a GNN's expressive ceiling, the specific distribution of your training graphs, and the continuous "smoothness" of the graph space all at once.

Methods

Instead of the data-blind VC dimension, the authors use empirical Rademacher complexity, which measures how easily a model class can fit random noise on your specific dataset. They build their framework in three clean steps:

  1. Discrete Partitions: Any graph invariant (like 1-WL) that upper-bounds a GNN's expressivity acts like a sorting hat, dropping training graphs into distinct "equivalence classes" (buckets of graphs the GNN literally cannot tell apart). Because the GNN must output the same prediction for every graph in a bucket, its ability to overfit random noise is bottlenecked by how samples fall into those buckets.
  2. Continuous Geometry: Discrete buckets are binary—graphs are either identical to the GNN or completely different. To capture degrees of similarity, the authors equip the space of graphs with pseudo-metrics (continuous distance measures, like the Tree Mover's Distance). Assuming the GNN is smooth (Lipschitz continuous) over this space, they use covering numbers—essentially counting how many small "balls" of radius $\varepsilon$ it takes to cover the dataset—to bound complexity.
  3. Optimal Transport for Stability: Using the 1-Wasserstein distance (Earth Mover's Distance), they measure how much the Rademacher complexity shifts if you swap your training dataset for a slightly perturbed or resampled one.

Crucially, while 1-WL and message-passing GNNs serve as a running example, this math works for arbitrary GNN architectures and their corresponding invariants.

Datasets

Because this is primarily a theoretical paper, no standard real-world benchmarks are used, nor are formal new benchmarks introduced. To validate their math, the authors construct synthetic datasets of sizes $m \in \{50, 100, 200\}$ partitioned into $p = 3$ equivalence classes under the 1-WL test. These combine Erdős–Rényi graphs (carefully checked to be 1-WL equivalent within classes and distinct across them) with $d$-regular graphs, sweeping across class proportions $q \in \{0.01, 0.05, 0.1, 0.2\}$.

Key Insights and Ideas

  • Skewed data saves you from overfitting: Because the discrete complexity bound scales with the sum of the square roots of class proportions ($\sum \sqrt{\mu_j / m}$), concavity works in your favor. Complexity hits its worst-case peak ($\sqrt{p/m}$) when graphs are spread uniformly across $p$ structural buckets. If your dataset is heavily skewed toward a few common graph structures, generalization bounds tighten dramatically.
  • Smoothness offsets high expressivity: Even if an expressive GNN shatters your dataset into thousands of tiny equivalence classes, you aren't doomed to overfit. If those graphs cluster closely together under a graph metric and your GNN responds smoothly (Lipschitz continuity), the geometric covering-number bound mitigates the complexity penalty.
  • Generalization is stable under noise: Empirical Rademacher complexity is Lipschitz continuous with respect to the 1-Wasserstein distance between datasets. Translation: if your test environment experiences slight structural perturbations or sampling shifts, your generalization guarantees degrade gracefully rather than collapsing.

Key Results

  • Tight Two-Sided Bounds: For "maximally expressive" architectures (like the Graph Isomorphism Network, GIN, relative to 1-WL), the authors prove their discrete and geometric bounds are mathematically tight from both above and below, strictly beating classical growth-function and VC-dimension bounds.
  • Refined Dudley Entropy Integral: They sharpen a classic neural network bound from Bartlett et al. (2017), improving a leading complexity term from $1/\sqrt{m}$ to $\sqrt{p}/m$ by collapsing the output space's effective dimension to the number of distinguishable graph classes $p$.
  • Empirical Validation: Training a 16-hidden-unit GIN on $K=80$ Monte Carlo runs of random noise labels shows empirical complexity tracking the exact theoretical values—tucked neatly inside the predicted lower and upper bounds.
Figure 1: Empirical validation of Proposition 2. For each sample size m, the shaded band spans our bounds on the empirical Rademacher complexity , the solid line is the exact RS of Proposition 14, and the dashed line is the Monte Carlo estimate over K = 80 runs. The x-axis denotes the proportion of graphs in m of each p −1 equivalence class. The Monte Carlo estimate always lies within the band and closely tracks the exact value, and the band tightens as m increases.

As shown in Figure 1, as sample size $m$ grows from 50 to 200, both the complexity and the gap between bounds shrink, and complexity rises as class proportions $q$ become more uniform.

Limitations and Future Work

The authors keep things honest about what's left to do:

  • Binary Classification Only: All current proofs assume binary labels $\{-1, +1\}$. Extending this to multi-class classification and bounded regression is a natural next step.
  • Preliminary Experiments: Testing was limited to small synthetic datasets with GIN. Systematic empirical studies on diverse, real-world GNN architectures are still needed.
  • Asymptotics & Graphons: Future work could explore population Rademacher complexity when sampling from probabilistic Random Graph Models or graphons, shedding light on how color diversity and generalization behave as graphs scale to massive sizes.

Summary updated

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.
BibTeX
@inproceedings{carrasco2026rademacher,
  author = {Martin Carrasco and Caio Netto and Ehimare Okoyomon and Vahan A. Martirosyan and Aneeqa Mehrab and Caterina Graziani},
  title = {{On the Rademacher Complexity of Graph Neural Networks: Unifying Expressivity and Geometry}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=B5sX9YQyxl},
}
Figure