Lune

ICLR2025Top-tier venue

Generalization, Expressivity, and Universality of Graph Neural Networks on Attributed Graphs

Levi Rauchwerger, Stefanie Jegelka, Ron Levie

Abstract

We analyze the universality and generalization of graph neural networks (GNNs) on attributed graphs, i.e., with node attributes. To this end, we propose pseudometrics over the space of all attributed graphs that describe the fine-grained expressivity of GNNs. Namely, GNNs are both Lipschitz continuous with respect to our pseudometrics and can separate attributed graphs that are distant in the metric. Moreover, we prove that the space of all attributed graphs is relatively compact with respect to our metrics. Based on these properties, we prove a universal approximation theorem for GNNs and generalization bounds for GNNs on any data distribution of attributed graphs. The proposed metrics compute the similarity between the structures of attributed graphs via a hierarchical optimal transport between computation trees. Our work extends and unites previous approaches which either derived theory only for graphs with no attributes, derived compact metrics under which GNNs are continuous but without separation power, or derived metrics under which GNNs are continuous and separate points but the space of graphs is not relatively compact, which prevents universal approximation and generalization analysis.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

8 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Spectral Graph Neural Networks are Incomplete on Graphs with a Simple Spectrum cites Generalization and Representational Limits of Graph Neural Networks
  • From Local Structures to Size Generalization in Graph Neural Networks cites Generalization and Representational Limits of Graph Neural Networks
  • From Local Structures to Size Generalization in Graph Neural Networks cites A PAC-Bayesian Approach to Generalization Bounds for Graph Neural Networks
  • On Local Limits of Sparse Random Graphs: Color Convergence and the Refined Configuration Model cites From Local Structures to Size Generalization in Graph Neural Networks
  • On Local Limits of Sparse Random Graphs: Color Convergence and the Refined Configuration Model cites A PAC-Bayesian Approach to Generalization Bounds for Graph Neural Networks
  • Which Algorithms Can Graph Neural Networks Learn? cites Generalization and Representational Limits of Graph Neural Networks
  • Which Algorithms Can Graph Neural Networks Learn? cites From Local Structures to Size Generalization in Graph Neural Networks
  • Which Algorithms Can Graph Neural Networks Learn? cites Can Graph Neural Networks Count Substructures?
  • Which Algorithms Can Graph Neural Networks Learn? cites A PAC-Bayesian Approach to Generalization Bounds for Graph Neural Networks
  • Which Algorithms Can Graph Neural Networks Learn? cites On Transferring Transferability: Towards a Theory for Size Generalization
  • Can Graph Neural Networks Count Substructures? cites Generalization and Representational Limits of Graph Neural Networks
  • A PAC-Bayesian Approach to Generalization Bounds for Graph Neural Networks cites Generalization and Representational Limits of Graph Neural Networks
  • On Transferring Transferability: Towards a Theory for Size Generalization cites Generalization and Representational Limits of Graph Neural Networks
  • On Transferring Transferability: Towards a Theory for Size Generalization cites From Local Structures to Size Generalization in Graph Neural Networks
  • On Transferring Transferability: Towards a Theory for Size Generalization cites A PAC-Bayesian Approach to Generalization Bounds for Graph Neural Networks
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers8

  1. On Transferring Transferability: Towards a Theory for Size GeneralizationEitan Levin, Yuxin Ma, Mateo Díaz, Soledad VillarNeurIPS 2025 · 10 citations
  2. Spectral Graph Neural Networks are Incomplete on Graphs with a Simple SpectrumSnir Hordan, Maya Bechler-Speicher, Gur Lifshitz, Nadav DymNeurIPS 2025 · 5 citations
  3. Is Graph Unlearning Ready for Practice? A Benchmark on Efficiency, Utility, and ForgettingSamyak Jain, Ronak Kalvani, sainyam galhotra, Sayan RanuICLR 2026
  4. On Local Limits of Sparse Random Graphs: Color Convergence and the Refined Configuration ModelAlexander Pluska, Sagar MalhotraNeurIPS 2025
  5. Which Algorithms Can Graph Neural Networks Learn?Solveig Wittig, Antonis Vasileiou, Robert R. Nerem, Timo Stoll et al.ICML 2026

Builds on15

  1. Can Graph Neural Networks Count Substructures?Zhengdao Chen, Lei Chen, Soledad Villar, Joan BrunaNeurIPS 2020 · 392 citations
  2. How Neural Networks Extrapolate: From Feedforward to Graph Neural NetworksKeyulu Xu, Mozhi Zhang, Jingling Li, Simon Shaolei Du et al.ICLR 2021 · 364 citations
  3. Generalization and Representational Limits of Graph Neural NetworksVikas K. Garg, Stefanie Jegelka, Tommi S. JaakkolaICML 2020 · 363 citations
  4. From Local Structures to Size Generalization in Graph Neural NetworksGilad Yehudai, Ethan Fetaya, Eli A. Meirom, Gal Chechik et al.ICML 2021 · 167 citations
  5. A PAC-Bayesian Approach to Generalization Bounds for Graph Neural NetworksRenjie Liao, Raquel Urtasun, Richard S. ZemelICLR 2021 · 109 citations

Related papers

  1. Tree Mover's Distance: Bridging Graph Metrics and Stability of Graph Neural NetworksChing-Yao Chuang, Stefanie JegelkaNeurIPS 2022 · 53 citations
  2. Graph Representational Learning: When Does More Expressivity Hurt Generalization?Sohir Maskey, Raffaele Paolino, Fabian Jogl, Gitta Kutyniok et al.ICLR 2026 · 4 citations
  3. A Graphop Analysis of Graph Neural Networks on Sparse Graphs: Generalization and Universal ApproximationOfek Amran, Tom Gilat, Ron LevieICML 2026
  4. Neural Trees for Learning on GraphsRajat Talak, Siyi Hu, Lisa R. Peng, Luca CarloneNeurIPS 2021 · 31 citations
  5. SpeqNets: Sparsity-aware permutation-equivariant graph networksChristopher Morris, Gaurav Rattan, Sandra Kiefer, Siamak RavanbakhshICML 2022 · 47 citations
Dusk over the sea between two cliffs drawn in fine vertical lines