Representing Long-Range Context for Graph Neural Networks with Global Attention
Not on the map. Why?
Abstract (arXiv)
Graph neural networks are powerful architectures for structured datasets. However, current methods struggle to represent long-range dependencies. Scaling the depth or width of GNNs is insufficient to broaden receptive fields as larger GNNs encounter optimization instabilities such as vanishing gradients and representation oversmoothing, while pooling-based approaches have yet to become as universally useful as in computer vision. In this work, we propose the use of Transformer-based self-attention to learn long-range pairwise relationships, with a novel "readout" mechanism to obtain a global graph embedding. Inspired by recent computer vision results that find position-invariant attention performant in learning long-range relationships, our method, which we call GraphTrans, applies a permutation-invariant Transformer module after a standard GNN module. This simple architecture leads to state-of-the-art results on several graph classification tasks, outperforming methods that explicitly encode graph structure. Our results suggest that purely-learning-based approaches without graph structure may be suitable for learning high-level, long-range relationships on graphs. Code for GraphTrans is available at https://github.com/ucbrise/graphtrans.
Key facts. Cited by 193 papers in the map (data through 7 Oct 2026). Builds on 31 of its 43 references that are in the map. First posted on arXiv 21 Jan 2022.
Builds on
31 of 43 references.
References · 31
- 2017Attention Is All You Needcited by 59,932
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2020End-to-End Object Detection with Transformerscited by 7,384
- 2016SGDR: Stochastic Gradient Descent with Warm Restartscited by 4,993
- 2018How Powerful are Graph Neural Networks?cited by 4,355
- 2020Open Graph Benchmark: Datasets for Machine Learning on Graphscited by 2,148
- 2016Convolutional Neural Networks on Graphs with Fast Localized Spectral Filteringcited by 2,085
- 2020Reformer: The Efficient Transformercited by 1,658
- 2020Rethinking Attention with Performerscited by 1,584
- 2018Relational inductive biases, deep learning, and graph networkscited by 1,341
- 2018Deeper Insights into Graph Convolutional Networks for Semi-Supervised Learningcited by 1,099
19 more
- 2018Representation Learning on Graphs with Jumping Knowledge Networkscited by 875
- 2018Hierarchical Graph Representation Learning with Differentiable Poolingcited by 786
- 2020A Generalization of Transformer Networks to Graphscited by 653
- 2020On the Bottleneck of Graph Neural Networks and its Practical Implicationscited by 624
- 2019Measuring and Relieving the Over-smoothing Problem for Graph Neural Networks from the Topological Viewcited by 544
- 2019Graph U-Netscited by 489
- 2020Principal Neighbourhood Aggregation for Graph Netscited by 477
- 2019Self-Attention Graph Poolingcited by 421
- 2021Bottleneck Transformers for Visual Recognitioncited by 364
- 2019On the Relationship between Self-Attention and Convolutional Layerscited by 299
- 2019A Fair Comparison of Graph Neural Networks for Graph Classificationcited by 244
- 2015Order Matters: Sequence to sequence for setscited by 236
- 2020Graph-Bert: Only Attention is Needed for Learning Graph Representationscited by 176
- 2020HAT: Hardware-Aware Transformers for Efficient Natural Language Processingcited by 136
- 2020Lite Transformer with Long-Short Range Attentioncited by 127
- 2020Rethinking pooling in graph neural networkscited by 73
- 2021Directed Acyclic Graph Neural Networkscited by 70
- 2020Memory-Based Graph Networkscited by 56
- 2021Temporal Memory Attention for Video Semantic Segmentationcited by 49
Built on by
Citing papers per year: 2022: 27; 2023: 42; 2024: 64; 2025: 40; 2026: 20.
193 papers.
Sort:
By area:
- 2022Recipe for a General, Powerful, Scalable Graph Transformercited by 702
- 2022Structure-Aware Transformer for Graph Representation Learningcited by 191
- 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 132
- 2023SGFormer: Simplifying and Empowering Transformers for Large-Graph Representationscited by 131
- 2022Transformer for Graphs: An Overview from Architecture Perspectivecited by 107
- 2022A Generalization of ViT/MLP-Mixer to Graphscited by 93
- 2023Attending to Graph Transformerscited by 81
- 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
- 2022A Survey on Graph Representation Learning Methodscited by 66
38 more
- 2023On the Connection Between MPNN and Graph Transformercited by 60
- 2023Rethinking Tokenizer and Decoder in Masked Graph Modeling for Moleculescited by 49
- 2022Shortest Path Networks for Graph Property Predictioncited by 46
- 2022Relational Attention: Generalizing Transformers for Graph-Structured Taskscited by 41
- 2024Hypformer: Exploring Efficient Transformer Fully in Hyperbolic Spacecited 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
- 2024FairGT: A Fairness-aware Graph Transformercited by 29
- 2023Probabilistically Rewired Message-Passing Neural Networkscited by 26
- 2023Automated 3D Pre-Training for Molecular Property Predictioncited by 24
- 2025Can Classic GNNs Be Strong Baselines for Graph-level Tasks? Simple Architectures Meet Excellencecited by 24
- 2022Transformers over Directed Acyclic Graphscited by 23
- 2023Over-Squashing in Graph Neural Networks: A Comprehensive surveycited by 23
- 2022PACE: A Parallelizable Computation Encoder for Directed Acyclic Graphscited by 20
- 2023FormNetV2: Multimodal Graph Contrastive Learning for Form Document Information Extractioncited by 20
- 2024Gramformer: Learning Crowd Counting via Graph-Modulated Transformercited by 19
- 2024Learning Graph Quantized Tokenizerscited by 19
- 2024Learning Long Range Dependencies on Graphs via Random Walkscited by 18
- 2023HIGT: Hierarchical Interaction Graph-Transformer for Whole Slide Image Analysiscited by 17
- 2023Joint-Relation Transformer for Multi-Person Motion Predictioncited by 16
- 2025Graph Generative Pre-trained Transformercited by 16
- 2022How Expressive are Transformers in Spectral Domain for Graphs?cited by 15
- 2024Probabilistic Graph Rewiring via Virtual Nodescited by 15
- 2022Equivariant Hypergraph Neural Networkscited by 14
- 2023Are More Layers Beneficial to Graph Transformers?cited by 14
- 2024Understanding Virtual Nodes: Oversquashing and Node Heterogeneitycited by 14
- 2024What Improves the Generalization of Graph Transformers? A Theoretical Dive into the Self-attention and Positional Encodingcited by 14
- 2024GraphFM: A generalist graph transformer that learns transferable representations across diverse domainscited by 14
- 2022Pretraining Graph Neural Networks for few-shot Analog Circuit Modeling and Designcited by 13
- 2024Benchmarking Positional Encodings for GNNs and Graph Transformerscited by 13
- 2022Capturing Graphs with Hypo-Elliptic Diffusionscited by 12
- 2024Triplet Interaction Improves Graph Transformers: Accurate Molecular Graph Learning with Triplet Graph Transformerscited by 12
- 2022From Local to Global: Spectral-Inspired Graph Neural Networkscited by 11
- 2023Recurrent Distance Filtering for Graph Representation Learningcited by 11
- 2024Attending to Topological Spaces: The Cellular Transformercited by 11
- 2025Long-range Brain Graph Transformercited by 11
- 2022Learnable Spectral Wavelets on Dynamic Graphs to Capture Global Interactionscited by 10
- 2023GNN-based physics solver for time-independent PDEscited by 10
50 most cited of 193 All 193 (JSON)
- 2026RiPPLE: Cross-Space Performance Prediction from Early Training for Neural Architecture Search11 Sep 2026
- 2026Subgraph Filtering for Fair Graph Neural Networks26 Aug 2026
- 2026Read, Write, Relax: Why Neural PDE Surrogates Need Both Global and Local Processing21 Aug 2026
- 2026BrainLinear: A Linear Model for Brain Network Analysis in Sparse Tangent Subspaces15 Aug 2026
- 2026On Preserving Geometrical Invariance for Superpixel Image Classification using Graph Transformer5 Jul 2026
- 2026Handling Feature Heterogeneity with Learnable Graph Patches16 Jun 2026
- 2026Gaussian Relational Graph Transformer15 May 2026
- 2026BiScale-GTR: Fragment-Aware Graph Transformers for Multi-Scale Molecular Representation Learning7 Apr 2026
- 2026BLEG: LLM Functions as Powerful fMRI Graph-Enhancer for Brain Network Analysis1 Apr 2026
- 2026GraPHFormer: A Multimodal Graph Persistent Homology Transformer for the Analysis of Neuroscience Morphologies21 Mar 2026
- 2026Masked BRep Autoencoder via Hierarchical Graph Transformer16 Mar 2026
- 2026Intrinsic Lorentz Neural Network27 Feb 2026
38 more
- 2026VecFormer: Towards Efficient and Generalizable Graph Transformer with Graph Token Attention23 Feb 2026
- 2026Uncertainty-Calibrated Spatiotemporal Field Diffusion with Sparse Supervision17 Feb 2026
- 2026Size Transferability of Graph Transformers with Convolutional Positional Encodings16 Feb 2026
- 2026Plain Transformers are Surprisingly Powerful Link Predictors2 Feb 2026
- 2026Heterogeneous Graph Alignment for Joint Reasoning and Interpretability30 Jan 2026
- 2026Artificial Intelligence in Materials Science and Engineering: Current Landscape, Key Challenges, and Future Trajectorie18 Jan 2026
- 2026FairGE: Fairness-Aware Graph Encoding in Incomplete Social Networks14 Jan 2026
- 2026Graph Integrated Transformers for Community Detection in Social Networks7 Jan 2026
- 2025ParaFormer: A Generalized PageRank Graph Transformer for Graph Representation Learning16 Dec 2025
- 2025Towards Practical Large-scale Dynamical Heterogeneous Graph Embedding: Cold-start Resilient Recommendation15 Dec 2025
- 2025Are Graph Transformers Necessary? Efficient Long-Range Message Passing with Fractal Nodes in MPNNs17 Nov 2025
- 2025How Particle-System Random Batch Methods Enhance Graph Transformer: Memory Efficiency and Parallel Computing Strategy8 Nov 2025
- 2025Relieving the Over-Aggregating Effect in Graph Transformers24 Oct 2025
- 2025DARTS-GT: Differentiable Architecture Search for Graph Transformers with Quantifiable Instance-Specific Interpretability Analysis16 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
- 2025MSRFormer: Road Network Representation Learning using Multi-scale Feature Fusion of Heterogeneous Spatial Interactions6 Sep 2025
- 2025Invariant Graph Transformer for Out-of-Distribution Generalization1 Aug 2025
- 2025DuetGraph: Coarse-to-Fine Knowledge Graph Reasoning with Dual-Pathway Global-Local Fusion15 Jul 2025
- 2025NN-Former: Rethinking Graph Structure in Neural Architecture Representation1 Jul 2025
- 2025Toward a Graph Foundation Model: Pre-Training Transformers With Random Walks17 Jun 2025
- 2025KEPLA: A Knowledge-Enhanced Deep Learning Framework for Accurate Protein-Ligand Binding Affinity Prediction16 Jun 2025
- 2025Structural-Spectral Graph Convolution with Evidential Edge Learning for Hyperspectral Image Clustering11 Jun 2025
- 2025EnerBridge-DPO: Energy-Guided Protein Inverse Folding with Markov Bridges and Direct Preference Optimization11 Jun 2025
- 2025DualEquiNet: A Dual-Space Hierarchical Equivariant Network for Large Biomolecules10 Jun 2025
- 2025Language Embedding Meets Dynamic Graph: A New Exploration for Neural Architecture Representation Learning9 Jun 2025
- 2025On Measuring Long-Range Interactions in Graph Neural Networks6 Jun 2025
- 2025MTPNet: Multi-Grained Target Perception for Unified Activity Cliff Prediction5 Jun 2025
- 2025CARL: Causality-guided Architecture Representation Learning for an Interpretable Performance Predictor4 Jun 2025
- 2025Towards Efficient Few-shot Graph Neural Architecture Search via Partitioning Gradient Contribution2 Jun 2025
- 2025Graph Positional Autoencoders as Self-supervised Learners29 May 2025
- 2025HGCL: Hierarchical Graph Contrastive Learning for User-Item Recommendation25 May 2025
- 2025Convexified Message-Passing Graph Neural Networks23 May 2025
- 2025Multi-Scale Harmonic Encoding for Feature-Wise Graph Message Passing21 May 2025
- 2025Exploring Graph Representations of Logical Forms for Language Modeling20 May 2025
- 2025Adaptive Tokenization: On the Hop-Overpriority Problem in Tokenized Graph Learning Models19 May 2025
- 2025Graph Fourier Transformer with Structure-Frequency Information28 Apr 2025
- 2025Federated Prototype Graph Learning13 Apr 2025
50 newest of 193 All 193 (JSON)
- 2023Supercharging Graph Transformers with Advective Diffusion10 Oct 2023
- 2022Recipe for a General, Powerful, Scalable Graph Transformercited by 702
- 2022Structure-Aware Transformer for Graph Representation Learningcited by 191
- 2022NAGphormer: A Tokenized Graph Transformer for Node Classification in Large Graphscited by 137
- 2023SGFormer: Simplifying and Empowering Transformers for Large-Graph Representationscited by 131
- 2022Transformer for Graphs: An Overview from Architecture Perspectivecited by 107
- 2022A Generalization of ViT/MLP-Mixer to Graphscited by 93
- 2023Attending to Graph Transformerscited by 81
- 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
- 2022A Survey on Graph Representation Learning Methodscited by 66
- 2023On the Connection Between MPNN and Graph Transformercited by 60
12 most cited of 190 All 190 (JSON)
- 2026RiPPLE: Cross-Space Performance Prediction from Early Training for Neural Architecture Search11 Sep 2026
- 2026Subgraph Filtering for Fair Graph Neural Networks26 Aug 2026
- 2026Read, Write, Relax: Why Neural PDE Surrogates Need Both Global and Local Processing21 Aug 2026
- 2026BrainLinear: A Linear Model for Brain Network Analysis in Sparse Tangent Subspaces15 Aug 2026
- 2026On Preserving Geometrical Invariance for Superpixel Image Classification using Graph Transformer5 Jul 2026
- 2026Handling Feature Heterogeneity with Learnable Graph Patches16 Jun 2026
- 2026Gaussian Relational Graph Transformer15 May 2026
- 2026BiScale-GTR: Fragment-Aware Graph Transformers for Multi-Scale Molecular Representation Learning7 Apr 2026
- 2026BLEG: LLM Functions as Powerful fMRI Graph-Enhancer for Brain Network Analysis1 Apr 2026
- 2026GraPHFormer: A Multimodal Graph Persistent Homology Transformer for the Analysis of Neuroscience Morphologies21 Mar 2026
- 2026Masked BRep Autoencoder via Hierarchical Graph Transformer16 Mar 2026
- 2026Intrinsic Lorentz Neural Network27 Feb 2026
12 newest of 190 All 190 (JSON)