Limits, approximation and size transferability for GNNs on sparse graphs via graphops

Thien Le, Stefanie Jegelka

Graph Neural Networks (GNNs) are celebrated for their "size transferability"—the ability to train a model on small, manageable graphs and deploy it on massive, real-world networks. However, mathematically proving this capability has been a persistent challenge.

Previous theoretical frameworks relied heavily on graphons, a limit notion ideal for dense graphs (where the number of edges grows quadratically with the number of nodes). Unfortunately, most real-world networks—such as social graphs, molecules, or traffic grids—are sparse. Under the graphon framework, a sparse graph trivially converges to an empty set of nodes with zero edges, rendering the theory ineffective for the most practical use cases.

This paper bridges that gap, providing the first theoretical framework to understand how GNNs generalize across different sizes for sparse graphs. By shifting the perspective from graph limits to operator limits, the authors derive quantitative bounds on the error incurred when transferring a GNN trained on small graphs to much larger ones.

The Operator Perspective: Graphops

Instead of viewing a graph merely as a static collection of nodes and edges, the authors treat it as an operator—specifically, a Graph Shift Operator like the adjacency matrix. This aligns perfectly with how GNNs actually compute as sequences of local aggregations.

The researchers adopt a recently developed mathematical framework called graphops (graph operators). Rather than measuring structural isomorphism (if two graphs "look" the same), they measure action convergence: whether the actions of their adjacency matrices on signals are similar. Using a metric based on joint distributions of sampled signals and their transformed versions, two operators are considered close if they produce similar output distributions for the same input distributions.

To connect this infinite-dimensional theory back to practice, they introduce a discretization scheme. This maps infinite operators back to finite matrices, allowing a direct mathematical comparison between a GNN operating on $n$ nodes and its infinite limit counterpart.

Quantitative Bounds and Unification

The most significant breakthrough of this work is establishing explicit, quantitative bounds for GNN transferability across various sparsity regimes. The paper proves that the distance between a finite GNN and its limit object is bounded by $O(n^{-1/2})$, where $n$ is the number of nodes. This provides a concrete formula to calculate the maximum expected output difference when transferring a GNN from a graph of size $m$ to one of size $n$.

Comparison of convergence rates for different graph limit frameworks.

As shown in the comparison above, graphops act as a "grand unified theory" for graph limits. They successfully encompass graphons (dense graphs), graphings (bounded-degree sparse graphs), and intermediate structures like hypercubes, providing explicit bounds where previous methods fell short or were inexplicit.

The authors verified their bounds using synthetic graph sequences—such as polymer chains, grid graphs, and Hamming graphs—ensuring the graphs satisfy necessary regularity (Lipschitz) conditions. Interestingly, empirical tests on polymer graphs showed the actual error decaying at a faster $O(n^{-1})$ rate, suggesting GNNs in practice may be even more stable than the theoretical worst-case bounds imply.

Limitations and Future Directions

While groundbreaking, the framework has a few limitations:

  • Pessimistic Rates: The theoretical $O(n^{-1/2})$ rate is a worst-case bound. Closing the gap between this and the empirically observed $O(n^{-1})$ rate remains an open challenge.
  • Spectral Gap Issues: The "spectral gap" is not continuous under this type of action convergence. Consequently, these results are highly applicable to "spatial" GNNs (like standard Message Passing networks) but may not fully extend to certain "spectral" GNNs that rely on precise eigenvalue calculations.
  • Non-linear Limits: While the authors handle standard non-linearities like ReLU, the broader mathematical theory of limits for sequences of non-linear operators is still in its infancy.

Summary updated

BibTeX
@inproceedings{le2023limits,
  author = {Thien Le and Stefanie Jegelka},
  title = {{Limits, approximation and size transferability for GNNs on sparse graphs via graphops}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=kDQwossJuI},
}
Figure