NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A graphon-signal analysis of graph neural networks

Ron Levie · DOI

Abstract

Graph Neural Networks (GNNs) have become essential for analyzing non-Euclidean data, yet they lack a robust mathematical framework to handle graphs of varying sizes and topologies. This paper introduces graphon-signal analysis, a theoretical framework that treats discrete graphs as samples from continuous limit objects called graphons. By extending graphon theory to include node signals, the author establishes a metric space where Message Passing Neural Networks (MPNNs) are Lipschitz continuous. This framework provides the first universal generalization bounds and subsampling stability guarantees for GNNs that do not rely on restrictive assumptions about the underlying data distribution.

Introduction

Unlike traditional neural networks that operate on fixed-size grids (e.g., images), GNNs must handle graphs that vary significantly in size and connectivity. This variability makes it difficult to define a "ruler" for graph similarity that predicts network behavior. Standard metrics like edit distance are overly sensitive to minor changes, such as the addition of a single node in a massive social network. To address this, Ron Levie introduces a framework based on Graphon Theory, providing a way to analyze GNNs across different scales and topologies through a unified metric space.

Methods: Graphon-Signals and Cut Distance

The core of this approach is the graphon, a continuous probability map representing the limit of a graph as the number of nodes approaches infinity. The paper introduces several technical innovations to bridge the gap between discrete graphs and these continuous limits:

  1. Graphon-Signals: The theory extends graphons to include "signals" (node features), creating a pair $(W, f)$ where $W$ represents the graph structure and $f$ represents the feature distribution.
  2. Graphon-Signal Cut Distance: This metric measures similarity based on whether two graph-signals appear to be sampled from the same underlying continuous model, regardless of their discrete size.
  3. Normalized Sum Aggregation (NSA): The analysis focuses on MPNNs using a "normalized sum" to combine neighbor information, a variant that is mathematically compatible with the continuous graphon limit.
Figure 4: Illustration of the relationship between a continuous graphon model (left) and discrete graph samples of increasing density (middle, right).

The central proof demonstrates that if two graph-signals are close in cut distance, the output of an MPNN will be close as well, establishing the Lipschitz continuity of these networks.

Key Insights: Regularity and Universality

A striking insight from this work is the application of Szemerédi’s Regularity Lemma to signals. This lemma implies that any large, complex graph-signal—regardless of its apparent messiness—behaves like a much simpler Stochastic Block Model (a graph with a finite number of clusters). This provides a fundamental upper bound on the complexity of graph data.

Figure 6: A block matrix representation illustrating how complex graphons can be approximated by simpler Stochastic Block Models.

Furthermore, the theory explains stability to subsampling. The "sampling lemma" proves that a random sample is close in cut distance to the original graphon, justifying why GNNs trained on small subgraphs can generalize effectively to massive, full-scale networks.

Empirical Results

While primarily theoretical, the author validated the NSA approach against standard MPNN benchmarks in bioinformatics (Mutag, Proteins, NCI1) and social networks (IMDB, Reddit). The experiments showed that the theoretically grounded NSA aggregation consistently matched or outperformed standard mean aggregation (MA). For instance, on the Mutag dataset, GIN-nsa achieved approximately 79% test accuracy, compared to 74% for GIN-ma.

Mathematically, the paper derives a generalization bound showing that as the number of training samples $N$ increases, the gap between training and true error shrinks to zero. Subsampling error is shown to scale with $1/\sqrt{\log k}$, where $k$ is the number of sampled nodes.

Conclusion and Future Work

The graphon-signal framework provides a powerful new tool for understanding GNN generalization. However, a noted limitation is the slow asymptotics of the current bounds ($1/\sqrt{\log k}$), which are more conservative than the performance observed in practice. Future research will focus on finding tighter estimates for the "covering number" of the graphon-signal space, potentially leading to faster, more practical convergence rates for specific real-world graph distributions.

Summary updated

BibTeX
@inproceedings{levie2023graphon,
  author = {Ron Levie},
  title = {{A graphon-signal analysis of graph neural networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=J0RD92Tmfc},
}
Figure