Advective Diffusion Transformers for Topological Generalization in Graph Learning

Qitian Wu, Chenxiao Yang, Kaipeng Zeng, Fan Nie, Michael M. Bronstein, Junchi Yan · OpenReview

Abstract

Graph diffusion equations are intimately related to graph neural networks (GNNs) and have recently attracted attention as a principled framework for analyzing GNN dynamics, formalizing their expressive power, and justifying architectural choices. One key open questions in graph learning is the generalization capabilities of GNNs. A major limitation of current approaches hinges on the assumption that the graph topologies in the training and test sets come from the same distribution. In this paper, we make steps towards understanding the generalization of GNNs by exploring how graph diffusion equations extrapolate and generalize in the presence of varying graph topologies. We first show deficiencies in the generalization capability of existing models built upon local diffusion on graphs, stemming from the exponential sensitivity to topology variation. Our subsequent analysis reveals the promise of non-local diffusion, which advocates for feature propagation over fully-connected latent graphs, under the assumption of a specific data-generating condition. In addition to these findings, we propose a novel graph encoder backbone, Advective Diffusion Transformer (ADiT), inspired by advective graph diffusion equations that have a closed-form solution backed up with theoretical guarantees of desired generalization under topological distribution shifts. The new model, functioning as a versatile graph Transformer, demonstrates superior performance across a wide range of graph learning tasks.

Introduction

Standard Graph Neural Networks (GNNs) and Graph Transformers often struggle with topological distribution shifts, where the graph structure encountered during testing differs significantly from that seen during training. While models are increasingly robust to node feature shifts, structural changes—such as moving from sparse to dense networks or evolving citation graphs—frequently lead to exponential growth in generalization error. Current architectures often assume a "closed-world" where training and testing topologies are identically distributed. This research introduces ADVDIFFORMER, a physics-inspired framework designed to stabilize performance across varying graph geometries.

Methodology: Advective Diffusion on Graphs

The core innovation of ADVDIFFORMER lies in its derivation from Advective Diffusion Equations. In physics, these equations describe the transport of a quantity through both random spreading (diffusion) and bulk movement (advection).

The Advective Diffusion Transformer (ADiT) architecture combines global attentive propagation (diffusion) with local message passing (advection).

The model translates these physical forces into graph operations:

  1. Diffusion (Global Attention): Captures long-range, latent interactions by allowing features to spread across a fully-connected representation.
  2. Advection (Local Message Passing): Acts as a "velocity field" that anchors the representation to the observed graph edges, forcing the model to respect the specific topology of the input.

The paper introduces two variants:

  • ADVDIFFORMER-I: Utilizes high-precision numerical solvers (Padé-Chebyshev theory) for matrix exponential approximation.
  • ADVDIFFORMER-S: A scalable version with $O(N)$ linear complexity, achieved through a finite geometric series, enabling the processing of massive graphs.

Experimental Results

The model was evaluated across synthetic benchmarks, information networks (Arxiv, Twitch), biological systems (DPPIN), and molecular dynamics (HAM).

Performance comparison under various topological shifts, showing ADVDIFFORMER's stability.

Robustness to Structural Shift

In synthetic tests simulating shifts in homophily, density, and block structure, standard local diffusion models exhibited skyrocketing error rates as the topological difference ($\|\Delta \tilde{A}\|_2$) increased. In contrast, ADVDIFFORMER’s error remained remarkably flat, confirming theoretical predictions that it can control error growth to a polynomial rate rather than an exponential one.

Performance and Efficiency

On the Arxiv (2018) benchmark, ADVDIFFORMER-S achieved 53.41% accuracy, outperforming strong baselines like GraphGPS (51.11%) and DIFFormer (50.45%). On the DPPIN dataset for protein gene expression, the model reduced RMSE to 0.574, compared to 0.671 for GraphGPS. Furthermore, the linear complexity of the -S variant allows it to handle large-scale graphs that typically cause memory exhaustion in standard Graph Transformers.

Discussion and Conclusion

ADVDIFFORMER successfully hybridizes local GNNs and global Transformers through a unified physical lens. By treating local message passing as an advective force, the model "anchors" global attention to the physical topology, preventing performance degradation under distribution shifts. Future work may explore non-linear versions of the advective diffusion equation and integrate more advanced structural encodings to further boost performance.

Summary updated

Abstract

Graph diffusion equations are intimately related to graph neural networks (GNNs) and have recently attracted attention as a principled framework for analyzing GNN dynamics, formalizing their expressive power, and justifying architectural choices. One key open questions in graph learning is the generalization capabilities of GNNs. A major limitation of current approaches hinges on the assumption that the graph topologies in the training and test sets come from the same distribution. In this paper, we make steps towards understanding the generalization of GNNs by exploring how graph diffusion equations extrapolate and generalize in the presence of varying graph topologies. We first show deficiencies in the generalization capability of existing models built upon local diffusion on graphs, stemming from the exponential sensitivity to topology variation. Our subsequent analysis reveals the promise of non-local diffusion, which advocates for feature propagation over fully-connected latent graphs, under the assumption of a specific data-generating condition. In addition to these findings, we propose a novel graph encoder backbone, Advective Diffusion Transformer (ADiT), inspired by advective graph diffusion equations that have a closed-form solution backed up with theoretical guarantees of desired generalization under topological distribution shifts. The new model, functioning as a versatile graph Transformer, demonstrates superior performance across a wide range of graph learning tasks.
BibTeX
@misc{wu2023advective,
  author = {Qitian Wu and Chenxiao Yang and Kaipeng Zeng and Fan Nie and Michael M. Bronstein and Junchi Yan},
  title = {{Advective Diffusion Transformers for Topological Generalization in Graph Learning}},
  year = {2023},
  eprint = {2310.06417},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.06417},
}
Figure