Structure-Aware Transformer for Graph Representation Learning
Not on the map. Why?
Abstract (arXiv)
The Transformer architecture has gained growing attention in graph representation learning recently, as it naturally overcomes several limitations of graph neural networks (GNNs) by avoiding their strict structural inductive biases and instead only encoding the graph structure via positional encoding. Here, we show that the node representations generated by the Transformer with positional encoding do not necessarily capture structural similarity between them. To address this issue, we propose the Structure-Aware Transformer, a class of simple and flexible graph Transformers built upon a new self-attention mechanism. This new self-attention incorporates structural information into the original self-attention by extracting a subgraph representation rooted at each node before computing the attention. We propose several methods for automatically generating the subgraph representation and show theoretically that the resulting representations are at least as expressive as the subgraph representations. Empirically, our method achieves state-of-the-art performance on five graph prediction benchmarks. Our structure-aware framework can leverage any existing GNN to extract the subgraph representation, and we show that it systematically improves performance relative to the base GNN model, successfully combining the advantages of GNNs and Transformers. Our code is available at https://github.com/BorgwardtLab/SAT.
Key facts. Cited by 194 papers in the map (data through 14 Oct 2026). Builds on 39 of its 64 references that are in the map. First posted on arXiv 7 Feb 2022.
Builds on
39 of 64 references.
References · 39
- 2017Attention Is All You Needcited by 60,361
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2016Semi-Supervised Classification with Graph Convolutional Networkscited by 11,361
- 2017Graph Attention Networkscited by 8,923
- 2017Inductive Representation Learning on Large Graphscited by 6,320
- 2016SGDR: Stochastic Gradient Descent with Warm Restartscited by 5,045
- 2018How Powerful are Graph Neural Networks?cited by 4,393
- 2017Neural Message Passing for Quantum Chemistrycited by 3,487
- 2020Open Graph Benchmark: Datasets for Machine Learning on Graphscited by 2,163
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,474
- 2018Self-Attention with Relative Position Representationscited by 1,120
- 2018Deeper Insights into Graph Convolutional Networks for Semi-Supervised Learningcited by 1,102
27 more
- 2019Strategies for Pre-training Graph Neural Networkscited by 971
- 2018Weisfeiler and Leman Go Neural: Higher-order Graph Neural Networkscited by 881
- 2020Efficient Transformers: A Surveycited by 790
- 2018Hierarchical Graph Representation Learning with Differentiable Poolingcited by 787
- 2019Graph Neural Networks for Social Recommendationcited by 714
- 2020Benchmarking Graph Neural Networkscited by 680
- 2020A Generalization of Transformer Networks to Graphscited by 661
- 2020On the Bottleneck of Graph Neural Networks and its Practical Implicationscited by 631
- 2019Measuring and Relieving the Over-smoothing Problem for Graph Neural Networks from the Topological Viewcited by 545
- 2019DeepGCNs: Can GCNs Go as Deep as CNNs?cited by 527
- 2020Masked Label Prediction: Unified Message Passing Model for Semi-Supervised Classificationcited by 506
- 2019Graph U-Netscited by 492
- 2020Principal Neighbourhood Aggregation for Graph Netscited by 478
- 2021Rethinking Graph Transformers with Spectral Attentioncited by 473
- 2021Graph Neural Networks with Learnable Structural and Positional Representationscited by 333
- 2017Community Detection and Stochastic Block Modelscited by 319
- 2020DeeperGCN: All You Need to Train Deeper GCNscited by 250
- 2021Weisfeiler and Lehman Go Cellular: CW Networkscited by 218
- 2019Position-aware Graph Neural Networkscited by 203
- 2022Representing Long-Range Context for Graph Neural Networks with Global Attentioncited by 195
- 2020Graph-Bert: Only Attention is Needed for Learning Graph Representationscited by 177
- 2021GraphiT: Encoding Graph Structure in Transformerscited by 147
- 2017On the Properties of the Softmax Function with Application in Game Theory and Reinforcement Learningcited by 142
- 2021Nested Graph Neural Networkscited by 137
- 2021Topological Graph Neural Networkscited by 87
- 2020Subgraph Neural Networkscited by 73
- 2020Rethinking pooling in graph neural networkscited by 73
Built on by
Citing papers per year: 2022: 16; 2023: 51; 2024: 62; 2025: 39; 2026: 26.
194 papers.
Sort:
By area:
- 2022Recipe for a General, Powerful, Scalable Graph Transformercited by 713
- 2023Exphormer: Sparse Transformers for Graphscited by 170
- 2023Graph Inductive Biases in Transformers without Message Passingcited by 153
- 2022NAGphormer: A Tokenized Graph Transformer for Node Classification in Large Graphscited by 137
- 2024Graph-Mamba: Towards Long-Range Graph Sequence Modeling with Selective State Spacescited by 134
- 2023SGFormer: Simplifying and Empowering Transformers for Large-Graph Representationscited by 133
- 2023Graph Foundation Models: Concepts, Opportunities and Challengescited by 103
- 2022A Generalization of ViT/MLP-Mixer to Graphscited by 93
- 2024Classic GNNs are Strong Baselines: Reassessing GNNs for Node Classificationcited by 85
- 2023Attending to Graph Transformerscited by 83
- 2023SimTeG: A Frustratingly Simple Approach Improves Textual Graph Learningcited by 73
- 2023A Comprehensive Survey on Deep Graph Representation Learningcited by 72
38 more
- 2023GIMLET: A Unified Graph-Text Model for Instruction-Based Molecule Zero-Shot Learningcited by 70
- 2024Feature Re-Embedding: Towards Foundation Model-Level Performance in Computational Pathologycited by 67
- 2024Polynormer: Polynomial-Expressive Graph Transformer in Linear Timecited by 65
- 2023A Complete Expressiveness Hierarchy for Subgraph GNNs via Subgraph Weisfeiler-Lehman Testscited by 64
- 2023On the Connection Between MPNN and Graph Transformercited by 61
- 2022Does GNN Pretraining Help Molecular Representation?cited by 60
- 2022A Survey on Graph Neural Networks and Graph Transformers in Computer Vision: A Task-Oriented Perspectivecited by 56
- 2023Virtual Node Tuning for Few-shot Node Classificationcited by 46
- 2022Relational Attention: Generalizing Transformers for Graph-Structured Taskscited by 41
- 2023Transformers Meet Directed Graphscited by 40
- 2024Beyond Weisfeiler-Lehman: A Quantitative Framework for GNN Expressivenesscited by 39
- 2023HINormer: Representation Learning On Heterogeneous Information Networks with Graph Transformercited by 35
- 2024VCR-Graphormer: A Mini-batch Graph Transformer via Virtual Connectionscited by 34
- 2023Graph Positional and Structural Encodercited by 33
- 2024GITA: Graph to Visual and Textual Integration for Vision-Language Graph Reasoningcited by 33
- 2024Graph Transformers: A Surveycited by 32
- 2023Can We Scale Transformers to Predict Parameters of Diverse ImageNet Models?cited by 29
- 2023Probabilistically Rewired Message-Passing Neural Networkscited by 26
- 2025Can Classic GNNs Be Strong Baselines for Graph-level Tasks? Simple Architectures Meet Excellencecited by 26
- 2023G-Adapter: Towards Structure-Aware Parameter-Efficient Transfer Learning for Graph Transformer Networkscited by 25
- 2023Adaptive Message Passing: A General Framework to Mitigate Oversmoothing, Oversquashing, and Underreachingcited by 24
- 2025A Survey of Representation Learning, Optimization Strategies, and Applications for Omnidirectional Visioncited by 24
- 2022Transformers over Directed Acyclic Graphscited by 23
- 2023Exposition on over-squashing problem on GNNs: Current Methods, Benchmarks and Challengescited by 22
- 2024MART: MultiscAle Relational Transformer Networks for Multi-agent Trajectory Predictioncited by 21
- 2023Graph Meets LLMs: Towards Large Graph Modelscited by 20
- 2023On Structural Expressive Power of Graph Transformerscited by 19
- 2024Learning Graph Quantized Tokenizerscited by 19
- 2024Learning Long Range Dependencies on Graphs via Random Walkscited by 18
- 2023Hierarchical Transformer for Scalable Graph Learningcited by 17
- 2023GraphGPT: Generative Pre-trained Graph Eulerian Transformercited by 17
- 2024Positional Knowledge is All You Need: Position-induced Transformer (PiT) for Operator Learningcited by 17
- 2025Graph Generative Pre-trained Transformercited by 17
- 2025Beyond Message Passing: Neural Graph Pattern Machinecited by 17
- 2023Enhancing Graph Transformers with Hierarchical Distance Structural Encodingcited by 16
- 2023Are More Layers Beneficial to Graph Transformers?cited by 15
- 2023Expressive Sign Equivariant Networks for Spectral Geometric Learningcited by 15
- 2024Probabilistic Graph Rewiring via Virtual Nodescited by 15
50 most cited of 194 All 194 (JSON)
- 2026Size Generalization for Diffusion Routing Solvers12 Oct 2026
- 2026PATTERN Can Be Solved from Memory: Generator-Aware Baselines for Synthetic Node Classification10 Oct 2026
- 2026QUARTET: Quad-branch cross-Attention and Random-walk Traces for Enhancing Transformers on Relational Graphs22 Sep 2026
- 2026WEECFP-SuRGE: A Position-Aware Substructure Encoding Method for Molecular Property Prediction4 Sep 2026
- 2026Converse and Collision-Based Achievability for Node Localization with Hybrid Distance-Spectral Graph Positional Encodings31 Aug 2026
- 2026Adaptive Multi-Agent Feature Selection for Personalized Fall Risk Prevention19 Aug 2026
- 2026iStructTab: Structured Feature Sequencing for Multimodal Learning of Image and Tabular Data5 Aug 2026
- 2026LC-SEPLM: long-range contact-supervised adaptation for sequence-only protein representation learning24 Jul 2026
- 2026CAIRN: Cross-Room 3D Scene Understanding with Topology-Aware Large Multimodal Models7 Jul 2026
- 2026X-LogSMask: Expand Transformer for Graph-Structured Data2 Jul 2026
- 2026Spatiotemporal Graph Transformer for 3D Neighborhood Interaction and Quality Prediction in Metal Additive Manufacturing8 Jun 2026
- 2026End-to-End Subgraph Detection with GraphDETR4 Jun 2026
38 more
- 2026Graph Cascades: Contagion-Based Mesoscopic Rewiring for Structure-Aware Graph Machine Learning3 Jun 2026
- 2026ALINC: Active Learning for Inductive Node Classification via Graph Sampling3 Jun 2026
- 2026GraViti: Graph-Level Variational Autoencoders with Relaxed Permutation Invariance15 May 2026
- 2026On the Expressive Power of GNNs to Solve Linear SDPs30 Apr 2026
- 2026BiScale-GTR: Fragment-Aware Graph Transformers for Multi-Scale Molecular Representation Learning7 Apr 2026
- 2026k-Maximum Inner Product Attention for Graph Transformers and the Expressive Power of GraphGPS4 Apr 2026
- 2026Revealing Combinatorial Reasoning of GNNs via Graph Concept Bottleneck Layer2 Mar 2026
- 2026DynamicGTR: Leveraging Graph Topology Representation Preferences to Boost VLM Capabilities on Graph QAs25 Feb 2026
- 2026NGDB-Zoo: Towards Efficient and Scalable Neural Graph Databases Training25 Feb 2026
- 2026What Structural Inductive Bias Helps Transformers Reason Over Knowledge Graphs? A Study with Tabula RASA2 Feb 2026
- 2026Plain Transformers are Surprisingly Powerful Link Predictors2 Feb 2026
- 2026Temporal Graph Pattern Machine30 Jan 2026
- 2026Artificial Intelligence in Materials Science and Engineering: Current Landscape, Key Challenges, and Future Trajectorie18 Jan 2026
- 2026Multi-fidelity graph-based neural networks architectures to learn Navier-Stokes solutions on non-parametrized 2D domains5 Jan 2026
- 2025Bridging Data and Physics: A Graph Neural Network-Based Hybrid Twin Framework12 Dec 2025
- 2025Aggregating Direct and Indirect Neighbors through Graph Linear Transformations21 Nov 2025
- 2025Weaver: Kronecker Product Approximations of Spatiotemporal Attention for Traffic Network Forecasting12 Nov 2025
- 2025Generalizable Insights for Graph Transformers in Theory and Practice11 Nov 2025
- 2025Iteratively Refined Early Interaction Alignment for Subgraph Matching based Graph Retrieval26 Oct 2025
- 2025DARTS-GT: Differentiable Architecture Search for Graph Transformers with Quantifiable Instance-Specific Interpretability Analysis16 Oct 2025
- 2025Conformal Inference for Time Series over Graphs13 Oct 2025
- 2025Adaptive Canonicalization with Application to Invariant Anisotropic Geometric Networks29 Sep 2025
- 2025Exploring the Global-to-Local Attention Scheme in Graph Transformers: An Empirical Study18 Sep 2025
- 2025State Space Models over Directed Graphs17 Sep 2025
- 2025GRATE: a Graph transformer-based deep Reinforcement learning Approach for Time-efficient autonomous robot Exploration16 Sep 2025
- 2025Hypergraph Neural Network with State Space Models for Node Classification8 Aug 2025
- 2025Invariant Graph Transformer for Out-of-Distribution Generalization1 Aug 2025
- 2025Toward a Graph Foundation Model: Pre-Training Transformers With Random Walks17 Jun 2025
- 2025Density-aware Walks for Coordinated Campaign Detection16 Jun 2025
- 2025Flow-Attentional Graph Neural Networks6 Jun 2025
- 2025Graph Neural Networks for Jamming Source Localization1 Jun 2025
- 2025Convexified Message-Passing Graph Neural Networks23 May 2025
- 2025Generative Graph Pattern Machine22 May 2025
- 2025Adaptive Tokenization: On the Hop-Overpriority Problem in Tokenized Graph Learning Models19 May 2025
- 2025Open Your Eyes: Vision Enhances Message Passing Neural Networks in Link Prediction13 May 2025
- 2025SA-GAT-SR: Self-Adaptable Graph Attention Networks with Symbolic Regression for high-fidelity material property prediction1 May 2025
- 2025Learning Laplacian Positional Encodings for Heterophilous Graphs29 Apr 2025
- 2025Graph Fourier Transformer with Structure-Frequency Information28 Apr 2025
50 newest of 194 All 194 (JSON)
- 2024GITA: Graph to Visual and Textual Integration for Vision-Language Graph Reasoningcited by 33
- 2024KnowFormer: Revisiting Transformers for Knowledge Graph Reasoningcited by 5
- 2026NGDB-Zoo: Towards Efficient and Scalable Neural Graph Databases Trainingcited by 2
- 2026Revealing Combinatorial Reasoning of GNNs via Graph Concept Bottleneck Layercited by 1
- 2026Revealing Combinatorial Reasoning of GNNs via Graph Concept Bottleneck Layer2 Mar 2026
- 2026NGDB-Zoo: Towards Efficient and Scalable Neural Graph Databases Training25 Feb 2026
- 2024KnowFormer: Revisiting Transformers for Knowledge Graph Reasoning19 Sep 2024
- 2024GITA: Graph to Visual and Textual Integration for Vision-Language Graph Reasoning3 Feb 2024
- 2026Size Generalization for Diffusion Routing Solverscited by 0
- 2026Size Generalization for Diffusion Routing Solvers12 Oct 2026
- 2022Recipe for a General, Powerful, Scalable Graph Transformercited by 713
- 2023Exphormer: Sparse Transformers for Graphscited by 170
- 2023Graph Inductive Biases in Transformers without Message Passingcited by 153
- 2022NAGphormer: A Tokenized Graph Transformer for Node Classification in Large Graphscited by 137
- 2023SGFormer: Simplifying and Empowering Transformers for Large-Graph Representationscited by 133
- 2023Graph Foundation Models: Concepts, Opportunities and Challengescited by 103
- 2022A Generalization of ViT/MLP-Mixer to Graphscited by 93
- 2024Classic GNNs are Strong Baselines: Reassessing GNNs for Node Classificationcited by 85
- 2023Attending to Graph Transformerscited by 83
- 2023SimTeG: A Frustratingly Simple Approach Improves Textual Graph Learningcited by 73
- 2023A Comprehensive Survey on Deep Graph Representation Learningcited by 72
- 2023GIMLET: A Unified Graph-Text Model for Instruction-Based Molecule Zero-Shot Learningcited by 70
12 most cited of 184 All 184 (JSON)
- 2026PATTERN Can Be Solved from Memory: Generator-Aware Baselines for Synthetic Node Classification10 Oct 2026
- 2026QUARTET: Quad-branch cross-Attention and Random-walk Traces for Enhancing Transformers on Relational Graphs22 Sep 2026
- 2026WEECFP-SuRGE: A Position-Aware Substructure Encoding Method for Molecular Property Prediction4 Sep 2026
- 2026Converse and Collision-Based Achievability for Node Localization with Hybrid Distance-Spectral Graph Positional Encodings31 Aug 2026
- 2026Adaptive Multi-Agent Feature Selection for Personalized Fall Risk Prevention19 Aug 2026
- 2026iStructTab: Structured Feature Sequencing for Multimodal Learning of Image and Tabular Data5 Aug 2026
- 2026LC-SEPLM: long-range contact-supervised adaptation for sequence-only protein representation learning24 Jul 2026
- 2026X-LogSMask: Expand Transformer for Graph-Structured Data2 Jul 2026
- 2026Spatiotemporal Graph Transformer for 3D Neighborhood Interaction and Quality Prediction in Metal Additive Manufacturing8 Jun 2026
- 2026End-to-End Subgraph Detection with GraphDETR4 Jun 2026
- 2026Graph Cascades: Contagion-Based Mesoscopic Rewiring for Structure-Aware Graph Machine Learning3 Jun 2026
- 2026ALINC: Active Learning for Inductive Node Classification via Graph Sampling3 Jun 2026
12 newest of 184 All 184 (JSON)