A Survey of Graph Transformers: Architectures, Theories and Applications

Chaohao Yuan, Kangfei Zhao, Ercan Engin Kuruoglu, Liang Wang, Tingyang Xu, Wenbing Huang, Deli Zhao, Hong Cheng, Yu Rong · DOI

TL;DR

This paper provides a comprehensive survey of Graph Transformers (GTs), systematically categorizing them by their architectural designs, theoretical expressivity, and application domains. By mapping specific architectural choices to four fundamental graph organization forms (relational, geometric, dynamic, and heterogeneous), the authors deliver a unified framework and practical guidance for designing next-generation graph foundation models.

What Problem Does This Paper Address?

Traditional Graph Neural Networks (GNNs) primarily rely on the message-passing paradigm (MPNNs), where nodes iteratively aggregate information from their immediate local neighbors. While highly effective for local structures, MPNNs suffer from two intrinsic bottlenecks when scaling up:

  • Over-smoothing: As networks get deeper, node features converge and become indistinguishable.
  • Over-squashing: Information from an exponentially growing neighborhood is aggressively compressed into fixed-size vectors, crippling the model's ability to capture long-range dependencies.

Graph Transformers (GTs) solve this by adapting the global self-attention mechanism from natural language processing to graph data, allowing any two nodes to interact directly regardless of their distance. However, because vanilla Transformers inherently ignore graph topology, researchers have introduced a dizzying array of modifications to inject structural priors. This survey synthesizes these rapid developments into a coherent taxonomy to help researchers understand what works, why it works, and when to use it.

Methods

The authors organize the vast Graph Transformer literature into a clear taxonomy based on how models integrate graph structures into the Transformer architecture:

  1. Multi-level Graph Tokenization: Moving beyond treating individual nodes as tokens, models now tokenize edges, multi-hop sequences, or entire subgraphs to preserve local topological context.
  2. Structural Positional Encoding (PE): Injecting structural coordinates into node embeddings. This includes absolute PE (e.g., Laplacian eigenvectors, Singular Value Decomposition, or Random Walk probabilities) and relative PE (capturing pairwise node relationships).
  3. Structure-aware Attention Mechanisms: Modifying the attention matrix directly using graph-derived structural information, either via attention biases (like shortest-path distances) or attention masks that restrict attention to connected components.
  4. Model Ensembles: Strategically combining GNNs and Transformers (sequentially, interleaved, or in parallel) to leverage the local feature-extraction strengths of GNNs alongside the global context of Transformers.
Fig. 2. The overview of the architecture of Graph Transformers. The gen- eral GT part outlines the various methodologies employed to incorporate structural priors within GTs, including multi-level tokenization, positional encoding, modifying attention matrix and ensemble with GNNs. Other four parts delineate how these methodologies are applied to GTs. Methods in the parentheses are representative implementations in their corresponding taxonomies.

The survey also reviews specialized designs aimed at solving the quadratic $O(N^2)$ scalability bottleneck of self-attention and ensuring 3D spatial equivariance for geometric graphs.

Datasets

As a comprehensive survey paper, this work does not introduce a new dataset. Instead, it reviews and categorizes literature evaluated across a wide range of established benchmarks spanning multiple domains:

  • Molecular & Protein Graphs: BBBP, toxicity datasets, protein-ligand affinity benchmarks, and 3D molecular conformation datasets.
  • Long-Range Benchmarks: The Long Range Graph Benchmark (LRGB) for evaluating long-distance dependencies.
  • Dynamic & Spatiotemporal Graphs: Traffic flow forecasting and pedestrian trajectory datasets.
  • Heterogeneous & Text-Rich Networks: Recommendation system benchmarks, citation networks, and knowledge graphs.

Key Insights and Ideas

  • Graph Form Dictates Design, Not the Application Domain: One of the paper's core takeaways is that the most effective GT architecture is predicted by the structural form of the graph (e.g., geometric vs. relational) rather than the specific field of application (e.g., chemistry vs. social networks).
  • Tokenization and PE Play Orthogonal Roles: Tokenization defines the observation space (what the model can attend to), while PE establishes the coordinate system within that space. If a downstream task requires reasoning over complex chemical motifs, imposing a powerful positional encoding onto a simple node-level token space remains sub-optimal compared to explicit subgraph-level tokenization.
  • Expressivity $\neq$ Generalization: Theoretical expressivity is traditionally measured using the Weisfeiler-Lehman (WL) graph isomorphism test. However, the authors note that a theoretically stronger model (higher-order WL) does not automatically translate to better empirical accuracy, as complex structural encodings often introduce optimization instability.
  • Alleviating Feature Dilution: MPNNs often wash out original node attributes through continuous neighborhood aggregation. GTs alleviate this "feature dilution" via global attention and residual connections, making them exceptionally powerful for datasets where original node attributes carry the dominant signal.

Key Results

The paper synthesizes the practical landscape of Graph Transformers into a "Practical Guidance" matrix, mapping architectural components to graph forms by their adoption frequency in top-performing models:

Fig. 1. The above figure shows the development of the Graph Transformer architectures, where blue are the ensemble of GNNs and Transformers, and red are structure-aware attention, green are structural positional encoding and yellow are multi-level tokenization. The below figure illustrates representative GT applications under four graph organization forms, including relational, geometric, dynamic, and multimodal graphs. The illustrations of the application examples are adapted from previous studies [19, 59, 75, 76, 93, 97, 114, 119, 129, 148, 151, 159, 169, 176, 190, 202, 203].
  • Relational Graphs (e.g., 2D molecules, KGs): Peak performance is dominated by Shortest Path Distance (SPD) attention biases and Random Walk PEs.
  • Geometric Graphs (e.g., 3D molecules, proteins): Models strictly require distance-based attention, pairwise geometric features, and 3D equivariant updates to maintain physical consistency.
  • Dynamic Graphs (e.g., traffic networks): Highly dependent on temporal PEs coupled with spatial attention biases.
  • Heterogeneous Graphs (e.g., e-commerce recommendation): Rely heavily on type-specific projections, cross-attention mechanisms, and local GNN + global Transformer hybrid architectures.

Limitations and Future Work

The authors highlight several open challenges for the community:

  • The Scalability Bottleneck: Standard self-attention's quadratic complexity makes it unusable for large-scale graphs (millions/billions of nodes) without aggressive sparsification or linear attention approximations, which often degrade performance.
  • Data Scarcity for Scaling: While molecular domains have enough data to train billion-parameter models (like Uni-Mol2), scaling up GTs in data-constrained domains remains a major roadblock.
  • Theoretical Gaps: Current GT theory is heavily skewed toward spectral positional encodings and WL-expressivity. There is a lack of formal theory characterizing the representational power of different attention biases or predicting the optimal arrangement of GNN-Transformer ensembles.
  • Emerging Competitors: The survey notes that newer architectures, such as State Space Models (e.g., Graph Mamba), are demonstrating highly competitive performance, suggesting that the future of global graph modeling might move beyond the self-attention paradigm entirely.

Summary updated

BibTeX
@misc{yuan2025survey,
  author = {Chaohao Yuan and Kangfei Zhao and Ercan Engin Kuruoglu and Liang Wang and Tingyang Xu and Wenbing Huang and Deli Zhao and Hong Cheng and Yu Rong},
  title = {{A Survey of Graph Transformers: Architectures, Theories and Applications}},
  year = {2025},
  eprint = {2502.16533},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.16533},
}
Figure