Permutation-Invariant Spectral Learning via Dyson Diffusion

Tassilo Schwarz, Cai Dieball, Constantin Kogler, Renaud Lambiotte, Arnaud Doucet, Aljaz Godec, George DeligiannidisNeurIPS 2026

TL;DR

Generating graphs with diffusion models is notoriously tricky because a single $n$-node graph can be written as up to $n!$ different adjacency matrices. Standard models cope by baking symmetry into Graph Neural Networks (GNNs), inadvertently creating structural "blind spots" where distinct graphs look identical. By borrowing a classic tool from physics—Dyson's Brownian Motion—the authors shift this symmetry out of the neural network and directly into the math of the diffusion process itself, generating accurate graphs without GNNs or manual feature hacks.

What Problem Does This Paper Address?

Diffusion models work wonders on images, where pixels sit on a fixed grid. Graphs have no natural ordering: relabel the nodes, and you get a completely different adjacency matrix representing the exact same object. Learning all $n!$ permutations brute-force is impossible (even for 10 nodes, $10! > 3.6\text{ million}$).

To fix this, standard graph diffusion models force the neural network to respect node permutations—typically using GNNs or Graph Transformers. Unfortunately, this creates a well-known expressivity bottleneck. Because GNNs aggregate local neighborhood information symmetrically, they suffer from a theoretical "blind spot": they cannot tell apart certain structurally distinct graphs (known as Weisfeiler-Leman, or WL, equivalent graphs). For example, all $k$-regular graphs of size $n$ look identical to standard message-passing GNNs. When trained on these, existing models either blur their distributions together or hallucinate entirely wrong graphs, unless engineers manually bolt on ad-hoc features like cycle counts.

Figure 2: Example for struggle of GNN-based and graph-transformer-based models with two WL- equivalent graphs: Graph A and Graph B are WL-equivalent, but non-isomorphic. Also physically, they have very different properties, such as different temperature factors (c) and a different cut size. Upon training on an 80% Graph A and 20% Graph B dataset, state-of-the-art GNN-based (EDP-GNN, GDSS) and graph-transformer-based (ConGress) models learn the WL-equivalence class quickly but fail to generate the underlying distribution among the two graphs, with some even predominantly hallucinating WL-equivalent but non-isomorphic graphs (d).

Methods

Instead of forcing the neural network architecture to carry the burden of permutation symmetry, the authors push that inductive bias into the stochastic dynamics via Random Matrix Theory.

When you add standard Ornstein–Uhlenbeck (OU) Gaussian noise to a symmetric adjacency matrix, its eigenvalues and eigenvectors evolve in a remarkably clean way. The authors split graph generation into two decoupled stages, forming the Dyson Diffusion Model (DyDM):

  1. Spectral Diffusion via Dyson's Brownian Motion: In 1962, Freeman Dyson showed that the eigenvalues of a noisy symmetric matrix behave like positively charged particles in a 1D gas—jiggling randomly while repelling each other with a force inversely proportional to their distance ($\frac{1}{\lambda_k - \lambda_\ell}$) so their paths never cross. Crucially, this eigenvalue evolution is completely independent of the eigenvectors and inherently permutation-invariant. Because the math handles the symmetry, any standard neural network can learn the reverse score without needing GNNs. To prevent numerical steps from overshooting the singular repulsion boundaries, the authors introduce an adaptive step-size controller during forward simulation and an equilibrium repulsion "shooting mechanism" during generation.
  2. Eigenvector Diffusion on a Lie Group: Conditioned on the eigenvalues, the remaining graph structure lives in the orthonormal eigenvectors—a point on the orthogonal Lie group $O(n)$. Formulating the diffusion via matrix exponentials in the skew-symmetric Lie algebra $\mathfrak{o}(n)$ naturally preserves orthogonality with minimal degrees of freedom ($n(n-1)/2$) and turns a messy equivariant problem into a clean row-wise permutation-invariant one, ideal for a Set Transformer.
Figure 1: Dyson Diffusion Model and its application to graph spectra: A graph on n vertices (a) has up to n! representations as adjacency matrices (b). For an OU-driven diffusion on any adjacency matrix, the permutation-invariant spectrum (c) evolves according to the same SDE (Dyson-BM). A sample path of the n non-intersecting eigenvalues is shown. The marginals of the invariant density for the λk are depicted on the far right. The DyDM diffusion model learns the score s(λ, t) (highlighted in yellow) to generate spectra via the time-reversed SDE (3).

Datasets

  • WL-Bimodal (newly introduced): A synthetic diagnostic dataset of 5,000 graphs (80% Graph A, 20% Graph B) that are 10-node, WL-equivalent, non-isomorphic graphs with distinct physical properties.
  • Community Small: A standard, small-scale real-world benchmark (used primarily to test memorization due to its small sample size).
  • Brain: 15,000 ego-graphs (5 to 10 vertices) drawn from the human connectome, used to test scalability and statistical fidelity on a larger distribution.

Key Insights and Ideas

  • Move symmetry from architecture to physics: You don't need constrained, blind-spot-prone GNNs if you transform the data dynamics into coordinates (eigenvalues + Lie algebra increments) where node permutations naturally vanish or simplify.
  • Decoupling without losing information: Prior spectral diffusion tricks often threw away eigenvector dynamics or sampled eigenvectors randomly from training data, losing $\Theta(n^2)$ degrees of freedom. Conditioning Lie group diffusion on Dyson's trajectories preserves the entire graph.
  • Feature "tricks" were doing the heavy lifting: A top baseline (DiGress) relies on augmenting nodes/graphs with manual spectral and cycle features. Stripping those away causes its spectral error to spike dramatically—proving how vital explicit spectral awareness actually is.
  • Exponential symmetry reduction: Because flipping an eigenvector's sign ($v_k \to -v_k$) doesn't change the graph, enforcing canonical sign-flip invariance shrinks the eigenvector learning space by a factor of $2^n$.

Key Results

  • Escaping the WL Blind Spot: On WL-Bimodal, GNN/Transformer baselines (EDP-GNN, GDSS, ConGress) failed to capture the 80/20 split and heavily hallucinated unseen WL-equivalent graphs. DyDM nailed the distribution, achieving a spectral mean distance of 0.02 (vs. 0.13–0.38 for continuous baselines and 1.06 for un-augmented DiGress).
  • Superior Spectral Fidelity: Across all three datasets, DyDM achieved the best or tied-for-best spectral mean and marginal Wasserstein distances—beating un-augmented DiGress on Community Small (mean distance 0.07 vs. 2.51) and matching/outperforming feature-augmented DiGress without needing any ad-hoc features.
  • End-to-End Graph Generation: Combining spectral and conditional eigenvector diffusion on the Brain dataset, DyDM achieved the lowest overall Maximum Mean Discrepancy (MMD) across degree, clustering, orbit, and spectral statistics, scoring an average MMD of $0.7 \times 10^{-3}$, outperforming EDP-GNN ($1.5$), ConGress ($1.7$), GDSS ($9.9$), and even feature-augmented DiGress ($1.2$).

Limitations and Future Work

  • Graph Size: Experiments only cover graphs up to $n = 20$ nodes (210 degrees of freedom). Scaling spectral and Lie group diffusion to very large graphs remains an open engineering and mathematical challenge.
  • Beyond Real-Valued Graphs: While evaluated only on undirected, real-weighted graphs, Dyson's equations apply to any real symmetric matrix—opening doors to generating covariance matrices in statistics or stability operators in dynamical systems. Future work could also extend the math to Hermitian matrices for complex-weighted graphs.

Summary updated

Abstract

Diffusion models are central to generative modeling and have been adapted to graphs by diffusing adjacency matrix representations. The challenge of having up to $n!$ such representations for graphs with $n$ nodes is only partially mitigated by using permutation-equivariant learning architectures. Despite their computational efficiency, existing graph diffusion models struggle to distinguish certain graph families and their spectra, unless graph data are augmented with ad hoc features. This shortcoming stems from enforcing the inductive bias within the learning architecture. In this work, we leverage random matrix theory to analytically extract the spectral properties of the diffusion process, allowing us to push most of the inductive bias from the architecture into the dynamics. Building on this, we introduce the Dyson Diffusion Model, which employs Dyson's Brownian motion to capture the spectral dynamics of an Ornstein-Uhlenbeck process on the adjacency matrix. Furthermore, conditioned on the spectral dynamics, we formulate a Lie group diffusion, appropriately modeling the remaining degrees of freedom. Strikingly, the resulting learning problem becomes permutation invariant at the Lie algebra level. We demonstrate that the Dyson Diffusion Model learns graph spectra accurately and outperforms existing graph diffusion models.
BibTeX
@inproceedings{schwarz2026permutation,
  author = {Tassilo Schwarz and Cai Dieball and Constantin Kogler and Renaud Lambiotte and Arnaud Doucet and Aljaz Godec and George Deligiannidis},
  title = {{Permutation-Invariant Spectral Learning via Dyson Diffusion}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=k4MGmGsA9o},
}
Figure