Manuscript Offprint

arXiv:2609.39739

Stable Transformers for Graph Generation

Luca Miglior, Alessio Gravina, Davide Bacciu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Graph generative models increasingly rely on Graph Transformers (GT) to capture complex dependencies among nodes and edges. While deeper architectures should provide greater expressive capacity and a broader receptive field, their effectiveness can decline with depth: repeated self-attention progressively contracts node representations, impeding information flow and gradient propagation. We analyse this phenomenon from a dynamical systems perspective, focusing on how the denoiser's spectral dynamics affect graph generation. We show that standard GT denoisers become increasingly dissipative as depth grows, leading to vanishing gradients and representation collapse. To isolate the effect of these dynamics, we construct a permutation-equivariant GT with inherently stable, non-dissipative transport. We also introduce a damping mechanism that continuously interpolates between non-dissipative and increasingly contractive regimes, enabling a direct assessment of how dissipation influences generation. Experiments on synthetic and molecular graph generation benchmarks show that the gap between these regimes widens with depth: non-dissipative dynamics preserve representation diversity and gradient flow, sustaining strong generative performance, whereas greater contraction progressively impairs it. These findings identify the denoiser's dynamical regime as a key design factor for deep graph generative models.

1 INTRODUCTION

Learning to generate graphs is central to a wide range of problems in which both the entities and their relations must be modeled jointly, such as in biology and life science (Li et al., 2026). Recent graph generative models have advanced substantially, with diffusion- and flow-matching-based approaches emerging as particularly effective frameworks (Vignac et al., 2023; Qin et al., 2025; Liu et al., 2024a; Jo et al., 2022; Hou et al., 2024; Eijkelboom et al., 2024; Jang et al., 2024; Carballo-Castro et al., 2026; Zhao et al., 2024; Luo et al., 2026). A common trait of these methods is their increasing reliance on expressive Graph Transformer (GT) models (Shi et al., 2021; Dwivedi & Bresson, 2021), making the architecture's properties crucial to generation. Greater depth is especially appealing because it increases expressive capacity, enriches representations, and allows information to propagate farther across the graph, potentially capturing longer-range dependencies. However, a wider receptive field does not necessarily ensure effective long-range communication. Although stacking layers progressively enlarges the receptive field, the influence of distant nodes can rapidly fade because of over-smoothing (Cai & Wang, 2020; Oono & Suzuki, 2020; Rusch et al., 2023) and over-squashing (Alon & Yahav, 2021; Topping et al., 2022; Giovanni et al., 2023; Mishayev et al., 2025), both closely linked to vanishing gradients (Arroyo et al., 2025). Similar effects have been observed in Transformers (Vaswani et al., 2017), where repeated self-attention can progressively reduce representation diversity and drive token representations toward low-rank or collapsed states (Dong et al., 2021; Noci et al., 2022). In graph generation, tokens represent nodes whose distinct identities are essential to reconstructing graph structure. Increasing depth may therefore weaken the very information that additional layers are meant to propagate. This leads to our central question: to what extent is the behavior of a deep Graph Transformer determined by the dynamical regime underpinning its layers?

We address this question from a dynamical-systems perspective and show that standard self-attention contracts representations along the node axis. Repeated composition consequently at-

∗^{*}Equal contribution.

†^{\dagger}Correspondence: luca.miglior@phd.unipi.it, alessio.gravina@di.unipi.it.

tenuates the information encoded in differences between nodes. To the best of our knowledge, this is the first work to directly connect the dissipative dynamics of Graph Transformer denoisers to graph generation quality. Our analysis identifies stable and non-dissipative node dynamics as a principled design criterion for graph generative models which preserve information across layers, allowing graph generative models to exploit depth more effectively. Building on this insight, we replace the contractive attention map with a Cayley-based orthogonal node-mixing operator. Acting directly on the node dimension, the operator is guaranteed to be orthogonal by construction and prevents systematic contraction across layers (see Figure 1). This yields a simple drop-in replacement for standard self-attention in existing GT denoisers, leaving the surrounding generative framework and procedure unchanged. Our approach also interpolates continuously between non-dissipative and increasingly contractive regimes, enabling us to isolate the role of vanishing gradients in deep GTs. By varying contraction strength, we track how information and node representations evolve with depth, while the pure non-dissipative regime allows us to assess whether

Figure

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

preserving signal propagation sustains long-range interactions. Our experiments show that these differences become increasingly pronounced as depth grows: non-dissipative dynamics retain strong generative performance, whereas contractive dynamics progressively degrade it.

Contributions. Our main contributions are threefold. (i) In Section 2.3, we provide, to the best of our knowledge, the first study connecting the dissipative dynamics of Graph Transformer denoisers to graph generation quality. We show that standard self-attention progressively contracts node representations with depth, leading to the loss of node-specific information and vanishing gradients. (ii) In Section 3, we introduce a simple drop-in modification of the Graph Transformer node-mixing operator based on the Cayley transform. The resulting transport is non-dissipative by construction, preserves permutation equivariance, and can be integrated into existing GT-based generative models without modifying their training objective or sampling procedure. (iii) Finally, in Section 4, we systematically control the amount of dissipation in discrete flow-matching graph generation and establish its effect on generation quality. The advantage of non-dissipative dynamics grows with depth: contractive denoisers degrade and eventually collapse as layers are added, while non-dissipative ones continue to benefit from them.

References (100)

Couldn't load all references. Reload the page to try again.