TL;DR
This survey provides a comprehensive roadmap of Graph Transformers (GTs), a powerful new class of models that adapt the self-attention mechanism to non-Euclidean graph data. By systematically categorizing how these models integrate graph-specific inductive biases and scale to massive networks, the authors offer a vital guide for researchers navigating the trade-offs between global modeling power and computational efficiency.
What Problem Does This Paper Address?
Traditional Graph Neural Networks (GNNs) primarily rely on a message-passing framework, where nodes iteratively aggregate information from their immediate neighbors. While effective, this approach suffers from two major drawbacks: over-smoothing (where node representations become indistinguishable as layers increase) and an inability to capture long-range dependencies across the graph.
Transformers, which revolutionized NLP and CV, seem like a natural solution due to their global self-attention. However, they are designed for sequential or grid-like data. Graphs lack a natural ordering and possess complex structural properties that "vanilla" Transformers ignore. The challenge lies in how to inject "graph awareness"—or inductive bias—into the Transformer architecture without losing its ability to model global relationships.
Methods
The paper breaks down the design of Graph Transformers into three core components:
- Graph Inductive Bias: To help the model understand graph structure, researchers inject bias through:
- Node Positional Bias: Using Laplacian eigenvectors or random walk probabilities to give nodes "coordinates" in the graph.
- Edge Structural Bias: Encoding shortest-path distances or edge attributes directly into the attention mechanism.
- Message-Passing Bias: Hybridizing GNN-style local aggregation with Transformer-style global attention. This can be done via preprocessing, interleaving, or post-processing (see Figure 3).
- Attention Bias: Modifying attention scores based on graph topology (e.g., masking attention for non-neighbors).

- Graph Attention Mechanisms: The authors distinguish between Global Attention (where every node can attend to every other node, often requiring $O(N^2)$ complexity) and Local Attention (which restricts attention to neighborhoods or uses spectral methods to reduce complexity).
- Taxonomy: The survey proposes a four-way classification of existing models:
- Shallow: Optimized for efficiency with fewer layers.
- Deep: Stacked layers designed for complex, multi-level feature extraction.
- Scalable: Use techniques like sampling, sparsification, or hashing to handle graphs with millions of nodes.
- Pre-trained: Models trained on massive unlabeled datasets to learn transferable graph representations.
Datasets
The survey reviews models evaluated across a vast array of benchmarks, including:
- Molecular Graphs: ZINC, PCQM4M-LSC, MoleculeNet, QM9.
- Citation & Social Networks: Cora, Citeseer, Pubmed, OGB (Open Graph Benchmark) datasets like
ogbn-arxivandogbg-ppa. - Computer Vision/NLP Graphs: Visual Genome, MS COCO (for scene graphs), and various text-to-SQL or summarization datasets.
Key Insights and Ideas
- The Hybrid Advantage: The most successful models often don't choose between GNNs and Transformers; they use both. Interleaving message-passing layers with self-attention layers allows the model to balance local structural details with global context.
- Positional Encoding is Non-Trivial: Unlike text, where positions are linear (1, 2, 3...), graph positions are multi-dimensional. Using the eigenvectors of the graph Laplacian is a popular way to provide a "spectral" coordinate system for nodes.
- Efficiency vs. Expressiveness: There is a fundamental trade-off. Quadratic global attention is powerful but doesn't scale. Linear attention approximations (like those in
NodeFormerorGPS) are essential for real-world applications on large-scale graphs.
Key Results
While the paper is a survey rather than a benchmark report, it highlights several landmark achievements:
- SOTA Performance: Models like Graphormer and GPS have achieved state-of-the-art results on competitive benchmarks like the ZINC molecular dataset and the PCQM4M-LSC challenge, significantly outperforming pure GNNs.
- Transfer Learning: Pre-trained models like KPGT demonstrate that knowledge learned from millions of unlabeled molecular structures can be fine-tuned to achieve high accuracy on downstream tasks with very little labeled data.
Limitations and Future Work
The authors identify several "frontier" challenges:
- Scalability: Even with linear attention, handling graphs with billions of edges remains computationally daunting.
- Generalization: GTs often struggle when tested on graphs that are significantly larger or structurally different from their training data (out-of-distribution).
- Interpretability: Understanding why a global attention head focused on a specific distant node is difficult, making these models "black boxes" in sensitive fields like drug discovery.
- Dynamic Graphs: Most current GTs assume the graph is static. Developing efficient attention mechanisms for graphs that evolve over time is a major open research area.
For a high-level view of how these concepts fit together, the authors provide a roadmap of the entire field in Figure 1.

Summary updated