Do Transformers Really Perform Bad for Graph Representation?
Not on the map. Why?
Abstract (arXiv)
The Transformer architecture has become a dominant choice in many domains, such as natural language processing and computer vision. Yet, it has not achieved competitive performance on popular leaderboards of graph-level prediction compared to mainstream GNN variants. Therefore, it remains a mystery how Transformers could perform well for graph representation learning. In this paper, we solve this mystery by presenting Graphormer, which is built upon the standard Transformer architecture, and could attain excellent results on a broad range of graph representation learning tasks, especially on the recent OGB Large-Scale Challenge. Our key insight to utilizing Transformer in the graph is the necessity of effectively encoding the structural information of a graph into the model. To this end, we propose several simple yet effective structural encoding methods to help Graphormer better model graph-structured data. Besides, we mathematically characterize the expressive power of Graphormer and exhibit that with our ways of encoding the structural information of graphs, many popular GNN variants could be covered as the special cases of Graphormer.
Key facts. Cited by 318 papers in the map (data through 7 Oct 2026). Builds on 48 of its 65 references that are in the map. First posted on arXiv 9 Jun 2021.
Builds on
48 of 65 references.
References · 48
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2016Semi-Supervised Classification with Graph Convolutional Networkscited by 11,282
- 2017Graph Attention Networkscited by 8,854
- 2017Inductive Representation Learning on Large Graphscited by 6,284
- 2018How Powerful are Graph Neural Networks?cited by 4,355
- 2017Neural Message Passing for Quantum Chemistrycited by 3,460
36 more
- 2020Open Graph Benchmark: Datasets for Machine Learning on Graphscited by 2,148
- 2020Conformer: Convolution-augmented Transformer for Speech Recognitioncited by 1,838
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
- 2018Self-Attention with Relative Position Representationscited by 1,112
- 2019Strategies for Pre-training Graph Neural Networkscited by 964
- 2020On Layer Normalization in the Transformer Architecturecited by 906
- 2020Benchmarking Graph Neural Networkscited by 672
- 2020A Generalization of Transformer Networks to Graphscited by 653
- 2020Heterogeneous Graph Transformercited by 581
- 2019Graph Transformer Networkscited by 520
- 2020Masked Label Prediction: Unified Message Passing Model for Semi-Supervised Classificationcited by 500
- 2020Principal Neighbourhood Aggregation for Graph Netscited by 477
- 2021Rethinking Graph Transformers with Spectral Attentioncited by 468
- 2019Provably Powerful Graph Networkscited by 385
- 2017Residual Gated Graph ConvNetscited by 341
- 2021OGB-LSC: A Large-Scale Challenge for Machine Learning on Graphscited by 328
- 2019FreeLB: Enhanced Adversarial Training for Natural Language Understandingcited by 261
- 2020DeeperGCN: All You Need to Train Deeper GCNscited by 249
- 2019Position-aware Graph Neural Networkscited by 203
- 2020Rethinking Positional Encoding in Language Pre-trainingcited by 197
- 2020Graph-Bert: Only Attention is Needed for Learning Graph Representationscited by 176
- 2020Directional Graph Networkscited by 132
- 2021Accurate Learning of Graph Representations with Graph Multiset Poolingcited by 120
- 2020GraphNorm: A Principled Approach to Accelerating Graph Neural Network Trainingcited by 116
- 2018Multi-Hop Knowledge Graph Reasoning with Reward Shapingcited by 102
- 2020Molecule Attention Transformercited by 92
- 2021Do Transformer Modifications Transfer Across Implementations and Applications?cited by 87
- 2019Graph Transformer for Graph-to-Sequence Learningcited by 82
- 2021Language-Agnostic Representation Learning of Source Code from Structure and Contextcited by 63
- 2017Learning Graph-Level Representation for Drug Discoverycited by 43
- 2020Graph convolutions that can finally model local structurecited by 31
- 2021SPAGAN: Shortest Path Graph Attention Networkcited by 28
- 2021How could Neural Networks understand Programs?cited by 26
- 2019Path-Augmented Graph Transformer Networkcited by 22
- 2021LazyFormer: Self Attention with Lazy Updatecited by 16
- 2020Breaking the Expressive Bottlenecks of Graph Neural Networkscited by 6
Built on by
Citing papers per year: 2021: 23; 2022: 82; 2023: 78; 2024: 52; 2025: 32; 2026: 51.
318 papers.
Sort:
By area:
- 2022Recipe for a General, Powerful, Scalable Graph Transformercited by 702
- 2021Graph Neural Networks with Learnable Structural and Positional Representationscited by 326
- 2022Equiformer: Equivariant Graph Attention Transformer for 3D Atomistic Graphscited by 258
- 2022Pure Transformers are Powerful Graph Learnerscited by 188
- 2023Exphormer: Sparse Transformers for Graphscited by 166
- 2023On Over-Squashing in Message Passing Neural Networks: The Impact of Width, Depth, and Topologycited by 163
- 2021From Stars to Subgraphs: Uplifting Any GNN with Local Structure Awarenesscited by 154
- 2022Anti-Oversmoothing in Deep Vision Transformers via the Fourier Domain Analysis: From Theory to Practicecited by 136
- 2024Graph-Mamba: Towards Long-Range Graph Sequence Modeling with Selective State Spacescited by 132
- 2023SGFormer: Simplifying and Empowering Transformers for Large-Graph Representationscited by 131
- 2022Pre-training via Denoising for Molecular Property Predictioncited by 124
- 2021Global Self-Attention as a Replacement for Graph Convolutioncited by 113
38 more
- 2023The Impact of Large Language Models on Scientific Discovery: a Preliminary Study using GPT-4cited by 112
- 2023GraphText: Graph Reasoning in Text Spacecited by 110
- 2022Transformer for Graphs: An Overview from Architecture Perspectivecited by 107
- 2023Specformer: Spectral Graph Neural Networks Meet Transformerscited by 102
- 2022XAI for Transformers: Better Explanations through Conservative Propagationcited by 100
- 2022The Open Catalyst 2022 (OC22) Dataset and Challenges for Oxide Electrocatalystscited by 95
- 2022Equivariant and Stable Positional Encoding for More Powerful Graph Neural Networkscited by 94
- 2022TableFormer: Robust Transformer Modeling for Table-Text Encodingcited by 90
- 2023DIFFormer: Scalable (Graph) Transformers Induced by Energy Constrained Diffusioncited by 85
- 2022One Transformer Can Understand Both 2D & 3D Molecular Datacited by 77
- 2022Hierarchical Graph Transformer with Adaptive Node Samplingcited by 72
- 2023GIMLET: A Unified Graph-Text Model for Instruction-Based Molecule Zero-Shot Learningcited by 70
- 2023Energy Transformercited by 69
- 2021Knowledge Matters: Radiology Report Generation with General and Specific Knowledgecited by 68
- 2022GRPE: Relative Positional Encoding for Graph Transformercited by 67
- 2021Permutation invariant graph-to-sequence model for template-free retrosynthesis and reaction predictioncited by 66
- 2022MolGenSurvey: A Systematic Survey in Machine Learning Models for Molecule Designcited by 66
- 2021Gophormer: Ego-Graph Transformer for Node Classificationcited by 63
- 2022Benchmarking Graphormer on Large-Scale Molecular Modeling Datasetscited by 63
- 2022Video Graph Transformer for Video Question Answeringcited by 63
- 2023On the Connection Between MPNN and Graph Transformercited by 60
- 2022Does GNN Pretraining Help Molecular Representation?cited by 59
- 2023CktGNN: Circuit Graph Neural Network for Electronic Design Automationcited by 55
- 2022DrugOOD: Out-of-Distribution (OOD) Dataset Curator and Benchmark for AI-aided Drug Discovery -- A Focus on Affinity Prediction Problems with Noise Annotationscited by 54
- 2022Multimodal learning with graphscited by 54
- 2022Galvatron: Efficient Transformer Training over Multiple GPUs Using Automatic Parallelismcited by 51
- 2023InGram: Inductive Knowledge Graph Embedding via Relation Graphscited by 50
- 2022Message passing all the way upcited by 47
- 2022Spherical Channels for Modeling Atomic Interactionscited by 47
- 2023Ewald-based Long-Range Message Passing for Molecular Graphscited by 46
- 2021Simple GNN Regularisation for 3D Molecular Property Prediction & Beyondcited by 44
- 2021Molformer: Motif-based Transformer on 3D Heterogeneous Molecular Graphscited by 44
- 2023GNNDelete: A General Strategy for Unlearning in Graph Neural Networkscited by 43
- 2022Relational Attention: Generalizing Transformers for Graph-Structured Taskscited by 41
- 2023Transformers Meet Directed Graphscited by 39
- 2021From block-Toeplitz matrices to differential equations on graphs: towards a general theory for scalable masked Transformerscited by 38
- 2022Improving Molecular Contrastive Learning via Faulty Negative Mitigation and Decomposed Fragment Contrastcited by 37
- 2022Energy-Motivated Equivariant Pretraining for 3D Molecular Graphscited by 37
50 most cited of 318 All 318 (JSON)
- 2026From Rules to Neural Graphs: Scalable Structured Prediction for Patent Prior Art Search1 Oct 2026
- 2026Concept-Grounded Attention: A Controlled Evaluation of Graph-Injected Attention, Temporal Versioning, and Epistemic Status30 Sep 2026
- 2026MegaGraph: Towards Efficient Training of Large-Scale Graph Transformers with Automated Hybrid Parallelism28 Sep 2026
- 2026Diffusion-Induced Spatial Attention Overlapping Community Detection22 Sep 2026
- 2026RiPPLE: Cross-Space Performance Prediction from Early Training for Neural Architecture Search11 Sep 2026
- 2026Monroe: A Molecular Foundation Model for In-Context Probabilistic Inference19 Aug 2026
- 2026Do Geometry-Aware Positional Encodings Help Transformers in Spatial Imperfect-Information Games?15 Aug 2026
- 2026Graph Machine: Exploring Edge Mechanisms as an Inductive Bias7 Aug 2026
- 2026When Should Graph Attention Be Sparse? Learning a Per-Edge Tsallis Index3 Aug 2026
- 2026Persistent Gaussian Perturbations Prevent Oversmoothing in Recurrent Graph Neural Networks30 Jul 2026
- 2026Labeled Incidence Structures for Native Transformer Modeling of Text, Knowledge Graphs, and Hypergraphs29 Jul 2026
- 2026MPP-GNN: Subject-Adaptive Community Detection for fMRI-Based Alzheimer's Disease Classification29 Jul 2026
38 more
- 2026A Weisfeiler-Leman Characterization of Global-Attention Graph Transformers for Mixed-Integer Linear Programs20 Jul 2026
- 2026ChemFusion: A Multimodal Cross-Attention Network for Reaction Yield Prediction19 Jul 2026
- 2026Beyond Modality Fusion: Deep Ensembles for Multimodal Classification6 Jul 2026
- 2026Graph Neural Networks for the Graphical Bootstrap3 Jul 2026
- 2026X-LogSMask: Expand Transformer for Graph-Structured Data2 Jul 2026
- 2026GLACIER: Rethinking Mass Spectrum Prediction as an Object Detection Problem28 Jun 2026
- 2026Understanding Rollout Error in Graph World Models26 Jun 2026
- 2026Convex--Concave Quadratic Spectral Filtering for Graph Neural Networks23 Jun 2026
- 2026Adaptive Recurrent Message Passing for Test Time Computing on Graphs21 Jun 2026
- 2026Enhancing LLMs for Graph Tasks via Graph-aware LoRA Generation21 Jun 2026
- 2026In-Context Graphical Inference3 Jun 2026
- 2026Edge-aware Decoding for Neural Asymmetric Routing1 Jun 2026
- 2026Sampling Triangulations and Calabi-Yau Threefolds with Autoregressive GNNs26 May 2026
- 2026Adversarial Water-Filling: Theory, Algorithms, and a Domain-Specific Wireless Foundation Model24 May 2026
- 2026SciCore-Mol: Augmenting Large Language Models with Pluggable Molecular Cognition Modules21 May 2026
- 2026Rethinking Graph Convolution for 2D-to-3D Hand Pose Lifting13 May 2026
- 2026GCCM: Enhancing Generative Graph Prediction via Contrastive Consistency Model7 May 2026
- 2026Generalization Boundaries of Fine-Tuned Small Language Models for Graph Structural Inference20 Apr 2026
- 2026RoleMAG: Learning Neighbor Roles in Multimodal Graphs14 Apr 2026
- 2026Crystalite: A Lightweight Transformer for Efficient Crystal Modeling2 Apr 2026
- 2026Learning-guided Prioritized Planning for Lifelong Multi-Agent Path Finding in Warehouse Automation25 Mar 2026
- 2026GIST: Gauge-Invariant Spectral Transformers for Scalable Graph Neural Operators17 Mar 2026
- 2026Masked BRep Autoencoder via Hierarchical Graph Transformer16 Mar 2026
- 2026Graph Hopfield Networks: Energy-Based Node Classification with Associative Memory3 Mar 2026
- 2026MolFM-Lite: Multi-Modal Molecular Property Prediction with Conformer Ensemble Attention and Cross-Modal Fusion25 Feb 2026
- 2026MolGraphBench: A Benchmark of GNN Architectures for Molecular Regression Tasks24 Feb 2026
- 2026VecFormer: Towards Efficient and Generalizable Graph Transformer with Graph Token Attention23 Feb 2026
- 2026Toward Manifest Relationality in Transformers via Symmetry Reduction21 Feb 2026
- 2026COMBA: Cross Batch Aggregation for Learning Large Graphs with Context Gating State Space Models19 Feb 2026
- 2026Context-aware Skin Cancer Epithelial Cell Classification with Scalable Graph Transformers17 Feb 2026
- 2026From Classical to Topological Neural Networks Under Uncertainty10 Feb 2026
- 2026Knowledge Graph and Hypergraph Transformers with Repository-Attention and Journey-Based Role Transport7 Feb 2026
- 2026Billion-Scale Graph Foundation Models4 Feb 2026
- 2026What Structural Inductive Bias Helps Transformers Reason Over Knowledge Graphs? A Study with Tabula RASA2 Feb 2026
- 2026Cardinality-Preserving Attention Channels for Graph Transformers in Molecular Property Prediction2 Feb 2026
- 2026Plain Transformers are Surprisingly Powerful Link Predictors2 Feb 2026
- 2026NAG: A Unified Native Architecture for Encoder-free Text-Graph Modeling in Language Models30 Jan 2026
- 2026DeePM: Regime-Robust Deep Learning for Systematic Macro Portfolio Management9 Jan 2026
50 newest of 318 All 318 (JSON)
- 2023Learning Joint 2D & 3D Diffusion Models for Complete Molecule Generationcited by 27
- 2024Unifying Generation and Prediction on Graphs with Latent Graph Diffusioncited by 24
- 2025Electron flow matching for generative reaction mechanism prediction obeying conservation lawscited by 13
- 2023Supercharging Graph Transformers with Advective Diffusioncited by 7
- 2024Generative Inverse Design of Crystal Structures via Diffusion Models with Transformerscited by 7
- 2025ReDiSC: A Reparameterized Masked Diffusion Model for Scalable Node Classification with Structured Predictionscited by 0
- 2026GCCM: Enhancing Generative Graph Prediction via Contrastive Consistency Modelcited by 0
- 2026GCCM: Enhancing Generative Graph Prediction via Contrastive Consistency Model7 May 2026
- 2025ReDiSC: A Reparameterized Masked Diffusion Model for Scalable Node Classification with Structured Predictions19 Jul 2025
- 2025Electron flow matching for generative reaction mechanism prediction obeying conservation laws18 Feb 2025
- 2024Generative Inverse Design of Crystal Structures via Diffusion Models with Transformers13 Jun 2024
- 2024Unifying Generation and Prediction on Graphs with Latent Graph Diffusion4 Feb 2024
- 2023Supercharging Graph Transformers with Advective Diffusion10 Oct 2023
- 2023Learning Joint 2D & 3D Diffusion Models for Complete Molecule Generation21 May 2023
- 2023GraphText: Graph Reasoning in Text Spacecited by 110
- 2022Logiformer: A Two-Branch Graph Transformer Network for Interpretable Logical Reasoningcited by 8
- 2025GraphRAFT: Retrieval Augmented Fine-Tuning for Knowledge Graphs on Graph Databasescited by 5
- 2024KnowGraph: Knowledge-Enabled Anomaly Detection via Logical Reasoning on Graph Datacited by 4
- 2025GraphRAFT: Retrieval Augmented Fine-Tuning for Knowledge Graphs on Graph Databases7 Apr 2025
- 2024KnowGraph: Knowledge-Enabled Anomaly Detection via Logical Reasoning on Graph Data10 Oct 2024
- 2023GraphText: Graph Reasoning in Text Space2 Oct 2023
- 2022Logiformer: A Two-Branch Graph Transformer Network for Interpretable Logical Reasoning2 May 2022
- 2026Understanding Rollout Error in Graph World Modelscited by 3
- 2026Understanding Rollout Error in Graph World Models26 Jun 2026
- 2022Recipe for a General, Powerful, Scalable Graph Transformercited by 702
- 2021Graph Neural Networks with Learnable Structural and Positional Representationscited by 326
- 2022Equiformer: Equivariant Graph Attention Transformer for 3D Atomistic Graphscited by 258
- 2022Pure Transformers are Powerful Graph Learnerscited by 188
- 2023Exphormer: Sparse Transformers for Graphscited by 166
- 2023On Over-Squashing in Message Passing Neural Networks: The Impact of Width, Depth, and Topologycited by 163
- 2021From Stars to Subgraphs: Uplifting Any GNN with Local Structure Awarenesscited by 154
- 2022Anti-Oversmoothing in Deep Vision Transformers via the Fourier Domain Analysis: From Theory to Practicecited by 136
- 2023SGFormer: Simplifying and Empowering Transformers for Large-Graph Representationscited by 131
- 2022Pre-training via Denoising for Molecular Property Predictioncited by 124
- 2021Global Self-Attention as a Replacement for Graph Convolutioncited by 113
- 2023The Impact of Large Language Models on Scientific Discovery: a Preliminary Study using GPT-4cited by 112
12 most cited of 304 All 304 (JSON)
- 2026From Rules to Neural Graphs: Scalable Structured Prediction for Patent Prior Art Search1 Oct 2026
- 2026Concept-Grounded Attention: A Controlled Evaluation of Graph-Injected Attention, Temporal Versioning, and Epistemic Status30 Sep 2026
- 2026MegaGraph: Towards Efficient Training of Large-Scale Graph Transformers with Automated Hybrid Parallelism28 Sep 2026
- 2026Diffusion-Induced Spatial Attention Overlapping Community Detection22 Sep 2026
- 2026RiPPLE: Cross-Space Performance Prediction from Early Training for Neural Architecture Search11 Sep 2026
- 2026Monroe: A Molecular Foundation Model for In-Context Probabilistic Inference19 Aug 2026
- 2026Do Geometry-Aware Positional Encodings Help Transformers in Spatial Imperfect-Information Games?15 Aug 2026
- 2026Graph Machine: Exploring Edge Mechanisms as an Inductive Bias7 Aug 2026
- 2026When Should Graph Attention Be Sparse? Learning a Per-Edge Tsallis Index3 Aug 2026
- 2026Persistent Gaussian Perturbations Prevent Oversmoothing in Recurrent Graph Neural Networks30 Jul 2026
- 2026Labeled Incidence Structures for Native Transformer Modeling of Text, Knowledge Graphs, and Hypergraphs29 Jul 2026
- 2026MPP-GNN: Subject-Adaptive Community Detection for fMRI-Based Alzheimer's Disease Classification29 Jul 2026
12 newest of 304 All 304 (JSON)