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

Graphon Neural Networks and the Transferability of Graph Neural Networks

Luana Ruiz, Luiz F. O. Chamon, Alejandro Ribeiro

Graph Neural Networks (GNNs) exhibit a remarkable property: they can be applied to graphs of different sizes than those used during training. However, the mathematical guarantees for this "transferability" have remained elusive. This paper provides a rigorous foundation for this property by introducing Graphon Neural Networks (WNNs) as the continuous limit of GNNs. By establishing GNNs as discretizations of WNNs, the authors provide a bound on the performance gap when transferring models between graphs of different sizes, revealing a fundamental tradeoff between spectral discriminability and transferability.

The Problem of Transferability

In traditional deep learning, changing input size (e.g., a larger image) often requires resizing or architectural changes. GNNs are unique because their convolutional parameters are shared across all nodes, allowing a model trained on a 100-node graph to technically run on a 1,000,000-node graph.

However, "technically possible" does not guarantee accuracy. The core challenge is determining if a GNN's performance is preserved when the underlying graph changes. This is vital for real-world applications like recommender systems, where graphs grow daily and retraining from scratch is computationally prohibitive.

Methodology: Graphons and WNNs

The authors bridge the gap between discrete graphs and continuous limits using Graphons. A graphon is a symmetric function that represents the limit of a sequence of graphs as the number of nodes goes to infinity—essentially a "probability template" for a graph family.

The relationship between continuous Graphon Neural Networks (WNNs) and discrete Graph Neural Networks (GNNs).

The authors define Graphon Neural Networks (WNNs) which perform convolutions using integral operators on a graphon. They demonstrate that a standard GNN is a "sampled" or "discretized" version of a WNN. By comparing a GNN to its limit WNN, they derive a mathematical bound on the error, proving that as the number of nodes ($n$) increases, the difference between the GNN and the WNN output vanishes at a rate of $O(n^{-0.5})$.

Key Insights

  • GNNs as Discretized WNNs: Viewing a GNN as an approximation of a continuous Graphon NN allows the use of functional analysis to study GNN behavior.
  • The Transferability-Discriminability Tradeoff: To ensure transferability, GNN filters must be "bandlimited" (smooth in the spectral domain). However, overly smooth filters may lose the ability to distinguish highly specific, high-frequency graph structures.
  • Built-in Scalability: The theory confirms that one can train a GNN on a small, manageable sub-graph and deploy it on a much larger graph with predictable performance loss, provided the structural "type" of the graph remains the same.

Experimental Validation

The theoretical findings were validated using several datasets:

  • MovieLens 100k: In movie recommendation experiments, the difference in Root Mean Square Error (RMSE) between a GNN trained on a small sub-network and the full network decreased steadily as the sub-network size grew, matching the $O(n^{-0.5})$ theoretical prediction.
  • Cora Citation Network: When training on 271 nodes and transferring to 2708 nodes, the relative accuracy difference was 23.1%. Increasing the training sub-graph to 1354 nodes dropped this difference to 15.4%, confirming that larger training graphs improve transferability.
  • Synthetic Stochastic Block Models (SBM): Used to test the impact of hyperparameters like layers and features on transferability.

Limitations and Future Work

Graphons are primarily tools for "dense" graphs. The authors suggest that "graphings" might be a better limit object for the sparse regimes common in real-world data. Additionally, the current proof focuses on deterministic graphs; extending this to purely stochastic graphs where edges are random is a key next step. Finally, the error bound grows with the number of layers and features, suggesting that very deep or wide GNNs may be inherently harder to transfer.

Summary updated

BibTeX
@inproceedings{ruiz2020graphon,
  author = {Luana Ruiz and Luiz F. O. Chamon and Alejandro Ribeiro},
  title = {{Graphon Neural Networks and the Transferability of Graph Neural Networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
}
Figure