GraphiT: Encoding Graph Structure in Transformers
Not on the map. Why?
Abstract (arXiv)
We show that viewing graphs as sets of node features and incorporating structural and positional information into a transformer architecture is able to outperform representations learned with classical graph neural networks (GNNs). Our model, GraphiT, encodes such information by (i) leveraging relative positional encoding strategies in self-attention scores based on positive definite kernels on graphs, and (ii) enumerating and encoding local sub-structures such as paths of short length. We thoroughly evaluate these two ideas on many classification and regression tasks, demonstrating the effectiveness of each of them independently, as well as their combination. In addition to performing well on standard benchmarks, our model also admits natural visualization mechanisms for interpreting graph motifs explaining the predictions, making it a potentially strong candidate for scientific applications where interpretation is important. Code available at https://github.com/inria-thoth/GraphiT.
Key facts. Cited by 147 papers in the map (data through 14 Oct 2026). Builds on 22 of its 44 references that are in the map. First posted on arXiv 10 Jun 2021.
Builds on
22 of 44 references.
References · 22
- 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
- 2020Scaling Laws for Neural Language Modelscited by 6,586
- 2018How Powerful are Graph Neural Networks?cited by 4,393
- 2020Longformer: The Long-Document Transformercited by 3,413
- 2019Fast Graph Representation Learning with PyTorch Geometriccited by 2,434
- 2020Reformer: The Efficient Transformercited by 1,668
- 2018Self-Attention with Relative Position Representationscited by 1,120
- 2016Geometric deep learning: going beyond Euclidean datacited by 1,048
- 2020Efficient Transformers: A Surveycited by 790
10 more
- 2015Convolutional Networks on Graphs for Learning Molecular Fingerprintscited by 754
- 2020A Generalization of Transformer Networks to Graphscited by 661
- 2019Graph Transformer Networkscited by 523
- 2019Diffusion Improves Graph Learningcited by 414
- 2016A Decomposable Attention Model for Natural Language Inferencecited by 215
- 2019Transformer Dissection: A Unified Understanding of Transformer's Attention via the Lens of Kernelcited by 213
- 2020Graph-Bert: Only Attention is Needed for Learning Graph Representationscited by 177
- 2019Graph Neural Tangent Kernel: Fusing Graph Neural Networks with Graph Kernelscited by 161
- 2020Graph Kernels: State-of-the-Art and Future Challengescited by 63
- 2020Convolutional Kernel Networks for Graph-Structured Datacited by 38
Built on by
Citing papers per year: 2021: 3; 2022: 22; 2023: 41; 2024: 47; 2025: 25; 2026: 9.
147 papers.
Sort:
By area:
- 2022Recipe for a General, Powerful, Scalable Graph Transformercited by 713
- 2021Graph Neural Networks with Learnable Structural and Positional Representationscited by 333
- 2022Long Range Graph Benchmarkcited by 263
- 2022Structure-Aware Transformer for Graph Representation Learningcited by 194
- 2022Sign and Basis Invariant Networks for Spectral Graph Representation Learningcited by 179
- 2023Exphormer: Sparse Transformers for Graphscited by 170
- 2023On Over-Squashing in Message Passing Neural Networks: The Impact of Width, Depth, and Topologycited by 166
- 2023Graph Inductive Biases in Transformers without Message Passingcited by 153
- 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
- 2022Transformer for Graphs: An Overview from Architecture Perspectivecited by 107
- 2022A Generalization of ViT/MLP-Mixer to Graphscited by 93
38 more
- 2023Attending to Graph Transformerscited by 83
- 2022Expander Graph Propagationcited by 75
- 2023GIMLET: A Unified Graph-Text Model for Instruction-Based Molecule Zero-Shot Learningcited by 70
- 2023On the Connection Between MPNN and Graph Transformercited by 61
- 2023Locality-Aware Graph-Rewiring in GNNscited by 56
- 2023How does over-squashing affect the power of GNNs?cited by 53
- 2024GKAN: Graph Kolmogorov-Arnold Networkscited by 53
- 2022Message passing all the way upcited by 47
- 2023Ewald-based Long-Range Message Passing for Molecular Graphscited by 46
- 2023Virtual Node Tuning for Few-shot Node Classificationcited by 46
- 2023Transformers Meet Directed Graphscited by 40
- 2023HINormer: Representation Learning On Heterogeneous Information Networks with Graph Transformercited by 35
- 2024VCR-Graphormer: A Mini-batch Graph Transformer via Virtual Connectionscited by 34
- 2025Relational Graph Transformercited by 34
- 2023Graph Positional and Structural Encodercited by 33
- 2024Graph Transformers: A Surveycited by 32
- 2022Generalised Implicit Neural Representationscited by 31
- 2022KPGT: Knowledge-Guided Pre-training of Graph Transformer for Molecular Property Predictioncited by 31
- 2023G-Adapter: Towards Structure-Aware Parameter-Efficient Transfer Learning for Graph Transformer Networkscited by 25
- 2025Learning Efficient Positional Encodings with Graph Neural Networkscited by 24
- 2022Transformers over Directed Acyclic Graphscited by 23
- 2025Relational Deep Learning: Challenges, Foundations and Next-Generation Architecturescited by 23
- 2023Exposition on over-squashing problem on GNNs: Current Methods, Benchmarks and Challengescited by 22
- 2023Laplacian Canonization: A Minimalist Approach to Sign and Basis Invariant Spectral Embeddingcited by 21
- 2022PACE: A Parallelizable Computation Encoder for Directed Acyclic Graphscited by 20
- 2024Comparing Graph Transformers via Positional Encodingscited by 20
- 2021NeuroBack: Improving CDCL SAT Solving using Graph Neural Networkscited by 19
- 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
- 2024Positional Knowledge is All You Need: Position-induced Transformer (PiT) for Operator Learningcited by 17
- 2023Joint-Relation Transformer for Multi-Person Motion Predictioncited by 16
- 2022How Expressive are Transformers in Spectral Domain for Graphs?cited by 15
- 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
- 2024On the Expressive Power of Spectral Invariant Graph Neural Networkscited by 15
- 2023Classification of Edge-dependent Labels of Nodes in Hypergraphscited by 14
50 most cited of 147 All 147 (JSON)
- 2026QUARTET: Quad-branch cross-Attention and Random-walk Traces for Enhancing Transformers on Relational Graphs22 Sep 2026
- 2026Degraded but Not Entirely Ineffective: PE-Based Deformable Graph Neural Networks12 Sep 2026
- 2026Unifying Graph Neural Networks Through a Common Layer Equation17 Aug 2026
- 2026Communicability-Inspired Positional Encoding (CIPE)24 Jun 2026
- 2026Graph Cascades: Contagion-Based Mesoscopic Rewiring for Structure-Aware Graph Machine Learning3 Jun 2026
- 2026Masked BRep Autoencoder via Hierarchical Graph Transformer16 Mar 2026
- 2026Probing Graph Neural Network Activation Patterns Through Graph Topology24 Feb 2026
- 2026Size-Transferability of Graph Transformers with Convolutional Positional Encodings16 Feb 2026
- 2026Graph Integrated Transformers for Community Detection in Social Networks7 Jan 2026
- 2025GRIT-LP: Graph Transformer with Long-Range Skip Connection and Partitioned Spatial Graphs for Accurate Ice Layer Thickness Prediction24 Nov 2025
- 2025Are Graph Transformers Necessary? Efficient Long-Range Message Passing with Fractal Nodes in MPNNs17 Nov 2025
- 2025Weaver: Kronecker Product Approximations of Spatiotemporal Attention for Traffic Network Forecasting12 Nov 2025
38 more
- 2025Integrating Temporal and Structural Context in Graph Transformers for Relational Deep Learning6 Nov 2025
- 2025Relieving the Over-Aggregating Effect in Graph Transformers24 Oct 2025
- 20253D-GSRD: 3D Molecular Graph Auto-Encoder with Selective Re-mask Decoding19 Oct 2025
- 2025Graph is a Natural Regularization: Revisiting Vector Quantization for Graph Representation Learning8 Aug 2025
- 2025SaGIF: Improving Individual Fairness in Graph Neural Networks via Similarity Encoding23 Jun 2025
- 2025Relational Deep Learning: Challenges, Foundations and Next-Generation Architectures19 Jun 2025
- 2025GITO: Graph-Informed Transformer Operator for Learning Complex Partial Differential Equations16 Jun 2025
- 2025Vector Representations of Vessel Trees11 Jun 2025
- 2025Spectral Graph Neural Networks are Incomplete on Graphs with a Simple Spectrum5 Jun 2025
- 2025SpectralGap: Graph-Level Out-of-Distribution Detection via Laplacian Eigenvalue Gaps21 May 2025
- 2025Adaptive Tokenization: On the Hop-Overpriority Problem in Tokenized Graph Learning Models19 May 2025
- 2025Relational Graph Transformer16 May 2025
- 2025Structural-Temporal Coupling Anomaly Detection with Dynamic Graph Transformer13 May 2025
- 2025POET: Prompt Offset Tuning for Continual Human Action Adaptation25 Apr 2025
- 2025Towards A Universal Graph Structural Encoder15 Apr 2025
- 2025A Survey of Graph Transformers: Architectures, Theories and Applications23 Feb 2025
- 2025Simple Path Structural Encoding for Graph Transformers13 Feb 2025
- 2025Biologically Plausible Brain Graph Transformer13 Feb 2025
- 2025Using Random Noise Equivariantly to Boost Graph Neural Networks Universally4 Feb 2025
- 2025Flatten Graphs as Sequences: Transformers are Scalable Graph Generators4 Feb 2025
- 2025Learning Efficient Positional Encodings with Graph Neural Networks3 Feb 2025
- 2025DeepGate4: Efficient and Effective Representation Learning for Circuit Design at Scale2 Feb 2025
- 2024A Generalizable Anomaly Detection Method in Dynamic Graphs21 Dec 2024
- 2024Towards Graph Foundation Models: A Study on the Generalization of Positional and Structural Encodings10 Dec 2024
- 2024GQWformer: A Quantum-based Transformer for Graph Representation Learning3 Dec 2024
- 2024Scale-aware Message Passing For Graph Node Classification28 Nov 2024
- 2024Edge Weight Prediction For Category-Agnostic Pose Estimation25 Nov 2024
- 2024Even Sparser Graph Transformers25 Nov 2024
- 2024Benchmarking Positional Encodings for GNNs and Graph Transformers19 Nov 2024
- 2024Towards Dynamic Message Passing on Graphs31 Oct 2024
- 2024Graph Transformers Dream of Electric Flow22 Oct 2024
- 2024Learning Graph Quantized Tokenizers17 Oct 2024
- 2024Rethinking Graph Transformer Architecture Design for Node Classification15 Oct 2024
- 2024Cluster-wise Graph Transformer with Dual-granularity Kernelized Attention9 Oct 2024
- 2024Range-aware Positional Encoding via High-order Pretraining: Theory and Practice27 Sep 2024
- 2024Supra-Laplacian Encoding for Transformer on Dynamic Graphs26 Sep 2024
- 2024Learning to Model Graph Structural Information on MLPs via Graph Structure Self-Contrasting9 Sep 2024
- 2024Massive Activations in Graph Neural Networks: Decoding Attention for Domain-Dependent Interpretability5 Sep 2024
50 newest of 147 All 147 (JSON)
- 2022Recipe for a General, Powerful, Scalable Graph Transformercited by 713
- 2021Graph Neural Networks with Learnable Structural and Positional Representationscited by 333
- 2022Long Range Graph Benchmarkcited by 263
- 2022Structure-Aware Transformer for Graph Representation Learningcited by 194
- 2022Sign and Basis Invariant Networks for Spectral Graph Representation Learningcited by 179
- 2023Exphormer: Sparse Transformers for Graphscited by 170
- 2023On Over-Squashing in Message Passing Neural Networks: The Impact of Width, Depth, and Topologycited by 166
- 2023Graph Inductive Biases in Transformers without Message Passingcited by 153
- 2023SGFormer: Simplifying and Empowering Transformers for Large-Graph Representationscited by 133
- 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 83
12 most cited of 146 All 146 (JSON)
- 2026QUARTET: Quad-branch cross-Attention and Random-walk Traces for Enhancing Transformers on Relational Graphs22 Sep 2026
- 2026Degraded but Not Entirely Ineffective: PE-Based Deformable Graph Neural Networks12 Sep 2026
- 2026Unifying Graph Neural Networks Through a Common Layer Equation17 Aug 2026
- 2026Communicability-Inspired Positional Encoding (CIPE)24 Jun 2026
- 2026Graph Cascades: Contagion-Based Mesoscopic Rewiring for Structure-Aware Graph Machine Learning3 Jun 2026
- 2026Masked BRep Autoencoder via Hierarchical Graph Transformer16 Mar 2026
- 2026Probing Graph Neural Network Activation Patterns Through Graph Topology24 Feb 2026
- 2026Size-Transferability of Graph Transformers with Convolutional Positional Encodings16 Feb 2026
- 2026Graph Integrated Transformers for Community Detection in Social Networks7 Jan 2026
- 2025GRIT-LP: Graph Transformer with Long-Range Skip Connection and Partitioned Spatial Graphs for Accurate Ice Layer Thickness Prediction24 Nov 2025
- 2025Are Graph Transformers Necessary? Efficient Long-Range Message Passing with Fractal Nodes in MPNNs17 Nov 2025
- 2025Weaver: Kronecker Product Approximations of Spatiotemporal Attention for Traffic Network Forecasting12 Nov 2025
12 newest of 146 All 146 (JSON)