DiPhon: Diffusion on Graphons for Scalable Graph Generation

Sergio Rozada, Yiming Qin, Manuel Madeira, Pascal Frossard, Alejandro Ribeiro

TL;DR

Scaling graph diffusion models to larger sizes without retraining is a major challenge in generative machine learning. This paper introduces DiPhon, a size-scalable graph generation framework that defines a continuous diffusion process on graphons—the infinite-dimensional, size-agnostic limits of dense graphs. By utilizing a bounded Jacobi stochastic differential equation (SDE), DiPhon allows models trained on small graphs to seamlessly generate much larger graphs at inference time while perfectly preserving their core topological properties.

What Problem Does This Paper Address?

Graph generative diffusion models excel at capturing complex structures (e.g., for molecular design), but they hit a wall when it comes to scalability. Specifically, they lack size transferability: a model trained on small graphs (e.g., 40 nodes) cannot reliably generate large graphs (e.g., 300 nodes) without full retraining.

Existing approaches fall short here: discrete diffusion models operate directly on categorical edge variables and cannot scale continuously, while Gaussian SDE approaches inject unbounded noise, meaning their trajectories cannot be directly interpreted as edge probabilities. This paper bridges the gap by establishing a mathematically principled, scale-free graph diffusion framework using graphon theory.

Methods

The authors leverage graphons—continuous functions that represent the limit of a sequence of dense graphs as the number of nodes approaches infinity.

  1. Forward Process via Jacobi SDE: Instead of standard Gaussian noise, the authors formulate a forward diffusion process on the graphon space using a Jacobi SDE. This choice naturally constrains the trajectories to the $[0, 1]$ interval, allowing them to represent valid edge probabilities at all times.
  2. Moment-Aligned Discretization: To make this continuous framework practical for finite graphs, they propose a discrete graph-level process (DiPhon). They prove that by renormalizing the SDE parameters, the discrete process perfectly matches the first moment (mean) and closely approximates the second moment (variance) of the continuous graphon process.
  3. Reverse Process & Denoising: Graph generation requires running the process in reverse, which depends on estimating the "score" (the gradient of the log marginal density). Thanks to the spectral properties of the Jacobi process, this score can be explicitly expanded using Jacobi polynomials. They train a Graph Transformer network augmented with Relative Random Walk Probability (RRWP) features to denoise the graph and estimate the initial structure.
Figure 1: Schematic of DiPhon. The top row shows the original graphon diffusion process, the middle row shows the corresponding discretized graphon process, and the bottom row shows the sampled graph diffusion process on a finite graph.

Datasets

The method is evaluated on three synthetic graph families commonly used to benchmark graph generation:

  • Stochastic Block Models (SBMs): Highly compatible with the graphon setting due to their natural piecewise-constant graphon representation.
  • Preferential Attachment (PA) graphs: A challenging intermediate case where the graphs themselves aren't dense, but their line graphs admit a graphon representation.
  • Trees: A sparse graph family that strictly falls outside classical dense graphon theory, serving as an aggressive stress test for the model's empirical robustness.

Key Insights and Ideas

  • Graphons as a Size Bridge: Shifting the diffusion space from finite adjacency matrices to infinite-dimensional graphons makes the underlying generative mechanism inherently scale-free.
  • The Power of Bounded Noise: Replacing Gaussian noise with a Jacobi process solves the long-standing issue of edge probabilities flying off to infinity during continuous graph diffusion.
  • Statistical Invariance: The exact first-moment agreement between the continuous and discrete processes ensures that key structural statistics are preserved regardless of the node count $N$.
  • Erdős-Rényi Convergence: In the stationary limit ($t \to \infty$), the forward process converges to a simple Erdős-Rényi graphon, providing a clean, universal reference distribution for the reverse generation process.

Key Results

  • Zero-Shot Size Transfer: DiPhon demonstrates remarkable stability when generating graphs far larger than its training set. For instance, when trained on graphs with only 40–80 nodes, DiPhon maintains high structural accuracy when generating graphs up to 300 nodes.
  • Baseline Collapse: Competing discrete diffusion models (like DiGress and DeFoG) and Gaussian baselines (GDSS, GruM) suffer severe performance drops or complete structural collapse when generating out-of-distribution larger graph sizes.
  • Robustness to Sparsity: Even on Trees—where graphon assumptions do not formally hold—DiPhon successfully preserves acyclicity and generates valid tree structures at larger scales.
Out-of-distribution size generalization performance across Tree, SBM, and PA datasets compared to baselines.

Limitations and Future Work

  • Dense Graph Assumption: The theoretical guarantees rely on graphon theory, which is fundamentally designed for dense graphs. Extending this formal analysis to sparse graph regimes remains an open challenge.
  • Moment Matching vs. Full Distribution: The equivalence between the continuous and discrete routes is proven only for the first two moments, rather than bounding the full distance between the marginal distributions.
  • Training Overhead: The Jacobi transition density does not have a tractable closed form for direct sampling at arbitrary times. Consequently, training requires simulating full forward trajectories, adding computational overhead compared to Gaussian diffusions.
  • Binary Edges Only: The current formulation focuses strictly on binary edges without node features. However, the authors note that the framework can naturally be extended via stick-breaking constructions for categorical edges or continuous diffusions for edge weights and node features.

Summary updated

BibTeX
@inproceedings{rozada2026diphon,
  author = {Sergio Rozada and Yiming Qin and Manuel Madeira and Pascal Frossard and Alejandro Ribeiro},
  title = {{DiPhon: Diffusion on Graphons for Scalable Graph Generation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=uDmhLyLIAy},
}
Figure