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

Stable Transformers for Graph Generation

Luca Miglior, Alessio Gravina, Davide BacciuarXiv 2026

TL;DR

Deep Graph Transformers often fail because repeated self-attention causes node representations to collapse into a single point, a phenomenon known as dissipative dynamics. This paper introduces the S-Graph Transformer (SGT), which uses the Cayley transform to enforce orthogonal node transport, preserving information diversity across dozens of layers and enabling high-quality graph generation at depths where standard models completely fail.

What Problem Does This Paper Address?

Graph generative models, particularly those based on diffusion or flow matching, increasingly rely on Graph Transformers (GTs) as their "denoising" engine. In theory, deeper GTs should be better: they have more parameters and a wider "receptive field" to capture long-range dependencies between distant nodes.

However, in practice, increasing depth often leads to a sharp decline in performance. The authors identify the culprit as dissipative dynamics. In a standard GT, the self-attention mechanism acts like a contraction mapping. As data passes through many layers, the representations of different nodes begin to look identical—a state called rank collapse. From a dynamical systems perspective, the Jacobian of the network has eigenvalues that shrink toward zero, causing gradients to vanish and node-specific information to be "forgotten."

Figure 1: Illustration of node-state trajectories across depth L. (a) Under a standard Graph Transformer denoiser, node states spi- ral into a single point and node-specific information is lost. (b) Under non-dissipative orthogonal transport (ours), node states ro- tate while keeping their norms and remain distinct.

Methods

The authors propose the S-Graph Transformer (SGT), designed to be inherently stable and non-dissipative. The core innovation is replacing the standard contractive node-mixing operator with a graph-dependent orthogonal propagation operator.

Key technical steps include:

  1. Skew-Symmetric Scores: They construct a skew-symmetric attention score matrix $K$ (where $K^\top = -K$).
  2. The Cayley Transform: They apply the Cayley transform, defined as $R = (I - \frac{1}{2}K)^{-1}(I + \frac{1}{2}K)$. Mathematically, this transform is guaranteed to produce an orthogonal matrix, which preserves the norms of vectors.
  3. Orthogonal Transport: Because the transport is orthogonal, node representations rotate in space rather than shrinking toward the origin. This prevents rank collapse by construction while maintaining permutation equivariance (essential for graph data).
  4. Controlled Dissipation: They introduce a damping parameter $\gamma$. By setting $\gamma=0$, the model is perfectly non-dissipative. Increasing $\gamma$ allows researchers to systematically study how "fading" information affects generation quality.

Datasets

The SGT was evaluated on two synthetic benchmarks and two molecular datasets:

  • Synthetic: Planar graphs and Stochastic Block Model (SBM) graphs. These are used to test the model's ability to capture specific structural regularities.
  • Molecular: ZINC250k and MOSES. These are standard benchmarks for drug discovery, where the model must generate chemically valid and diverse molecules.

Key Insights and Ideas

  • Spectral Dynamics as a Design Factor: The paper argues that the "dynamical regime" (whether a network contracts or preserves signals) is just as important as architectural capacity. A deep model is useless if its spectral properties force all inputs to the same output.
  • The Depth Paradox: In standard models, adding layers can actually reduce the effective receptive field because information from distant nodes is "washed out" by the contractive nature of softmax attention.
  • Stability via Geometry: By forcing the Jacobian to be near-orthogonal (singular values close to 1), SGT ensures that gradients can flow back through 32+ layers without vanishing, as shown in the Jacobian spectra analysis.
Figure 3: Spectral behavior of SGT. (a) Jacobian eigenvalue spectra of SGT with L = 8 for different values of γ. Increasing γ progressively moves the spectrum from the unit circle into increasingly contractive regimes. (b) Jacobian singular values at L = 32 for SGT and GT proposed by Qin et al. (2025).

Key Results

  • Resilience to Depth: On the Planar dataset at depth $L=32$, the baseline model (DeFoG) completely collapsed, generating 0% valid graphs. In contrast, SGT achieved 100% validity and its best distributional fit at that same depth.
  • Molecular Quality: On ZINC250k, SGT significantly outperformed baselines in Frechet ChemNet Distance (FCD), with performance continuing to improve as layers were added ($L=8$ to $L=32$).
  • Efficiency: Despite the added mathematical constraints, SGT is actually more parameter-efficient, using 11-15% fewer parameters than standard GT baselines while maintaining similar training times per epoch.
  • Ablation Proof: By varying the damping parameter $\gamma$, the authors proved that as the dynamics become more contractive, generation quality consistently drops, confirming that non-dissipation is the primary driver of their success.

Limitations and Future Work

  • Edge Dynamics: While the paper focuses heavily on node-state stability, the interaction between node and edge representations in very deep models could be explored further.
  • Computational Overhead: The Cayley transform involves a matrix inversion. While the authors found per-epoch times to be comparable to baselines for the graph sizes tested, this could become a bottleneck for extremely large graphs (thousands of nodes).
  • Generalization: Future work could investigate if these stable dynamics benefit other graph tasks beyond generation, such as long-range graph classification or regression.

Summary updated

BibTeX
@misc{miglior2026stable,
  author = {Luca Miglior and Alessio Gravina and Davide Bacciu},
  title = {{Stable Transformers for Graph Generation}},
  year = {2026},
  eprint = {2609.39739},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.39739},
}
Figure