mlsanityData to 14 Oct 2026

GraphiT: Encoding Graph Structure in Transformers

arXiv 2106.05667 ↗First posted 10 Jun 2021cs.LGcited by 147

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

  1. 2017Attention Is All You Needcited by 60,361
  2. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  3. 2016Semi-Supervised Classification with Graph Convolutional Networkscited by 11,361
  4. 2017Graph Attention Networkscited by 8,923
  5. 2020Scaling Laws for Neural Language Modelscited by 6,586
  6. 2018How Powerful are Graph Neural Networks?cited by 4,393
  7. 2020Longformer: The Long-Document Transformercited by 3,413
  8. 2019Fast Graph Representation Learning with PyTorch Geometriccited by 2,434
  9. 2020Reformer: The Efficient Transformercited by 1,668
  10. 2018Self-Attention with Relative Position Representationscited by 1,120
  11. 2016Geometric deep learning: going beyond Euclidean datacited by 1,048
  12. 2020Efficient Transformers: A Surveycited by 790
10 more
  1. 2015Convolutional Networks on Graphs for Learning Molecular Fingerprintscited by 754
  2. 2020A Generalization of Transformer Networks to Graphscited by 661
  3. 2019Graph Transformer Networkscited by 523
  4. 2019Diffusion Improves Graph Learningcited by 414
  5. 2016A Decomposable Attention Model for Natural Language Inferencecited by 215
  6. 2019Transformer Dissection: A Unified Understanding of Transformer's Attention via the Lens of Kernelcited by 213
  7. 2020Graph-Bert: Only Attention is Needed for Learning Graph Representationscited by 177
  8. 2019Graph Neural Tangent Kernel: Fusing Graph Neural Networks with Graph Kernelscited by 161
  9. 2020Graph Kernels: State-of-the-Art and Future Challengescited by 63
  10. 2020Convolutional Kernel Networks for Graph-Structured Datacited by 38

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2021: 3; 2022: 22; 2023: 41; 2024: 47; 2025: 25; 2026: 9.

147 papers.

Sort:

By area:

  1. 2022Recipe for a General, Powerful, Scalable Graph Transformercited by 713
  2. 2021Graph Neural Networks with Learnable Structural and Positional Representationscited by 333
  3. 2022Long Range Graph Benchmarkcited by 263
  4. 2022Structure-Aware Transformer for Graph Representation Learningcited by 194
  5. 2022Sign and Basis Invariant Networks for Spectral Graph Representation Learningcited by 179
  6. 2023Exphormer: Sparse Transformers for Graphscited by 170
  7. 2023On Over-Squashing in Message Passing Neural Networks: The Impact of Width, Depth, and Topologycited by 166
  8. 2023Graph Inductive Biases in Transformers without Message Passingcited by 153
  9. 2024Graph-Mamba: Towards Long-Range Graph Sequence Modeling with Selective State Spacescited by 134
  10. 2023SGFormer: Simplifying and Empowering Transformers for Large-Graph Representationscited by 133
  11. 2022Transformer for Graphs: An Overview from Architecture Perspectivecited by 107
  12. 2022A Generalization of ViT/MLP-Mixer to Graphscited by 93
38 more
  1. 2023Attending to Graph Transformerscited by 83
  2. 2022Expander Graph Propagationcited by 75
  3. 2023GIMLET: A Unified Graph-Text Model for Instruction-Based Molecule Zero-Shot Learningcited by 70
  4. 2023On the Connection Between MPNN and Graph Transformercited by 61
  5. 2023Locality-Aware Graph-Rewiring in GNNscited by 56
  6. 2023How does over-squashing affect the power of GNNs?cited by 53
  7. 2024GKAN: Graph Kolmogorov-Arnold Networkscited by 53
  8. 2022Message passing all the way upcited by 47
  9. 2023Ewald-based Long-Range Message Passing for Molecular Graphscited by 46
  10. 2023Virtual Node Tuning for Few-shot Node Classificationcited by 46
  11. 2023Transformers Meet Directed Graphscited by 40
  12. 2023HINormer: Representation Learning On Heterogeneous Information Networks with Graph Transformercited by 35
  13. 2024VCR-Graphormer: A Mini-batch Graph Transformer via Virtual Connectionscited by 34
  14. 2025Relational Graph Transformercited by 34
  15. 2023Graph Positional and Structural Encodercited by 33
  16. 2024Graph Transformers: A Surveycited by 32
  17. 2022Generalised Implicit Neural Representationscited by 31
  18. 2022KPGT: Knowledge-Guided Pre-training of Graph Transformer for Molecular Property Predictioncited by 31
  19. 2023G-Adapter: Towards Structure-Aware Parameter-Efficient Transfer Learning for Graph Transformer Networkscited by 25
  20. 2025Learning Efficient Positional Encodings with Graph Neural Networkscited by 24
  21. 2022Transformers over Directed Acyclic Graphscited by 23
  22. 2025Relational Deep Learning: Challenges, Foundations and Next-Generation Architecturescited by 23
  23. 2023Exposition on over-squashing problem on GNNs: Current Methods, Benchmarks and Challengescited by 22
  24. 2023Laplacian Canonization: A Minimalist Approach to Sign and Basis Invariant Spectral Embeddingcited by 21
  25. 2022PACE: A Parallelizable Computation Encoder for Directed Acyclic Graphscited by 20
  26. 2024Comparing Graph Transformers via Positional Encodingscited by 20
  27. 2021NeuroBack: Improving CDCL SAT Solving using Graph Neural Networkscited by 19
  28. 2024Gramformer: Learning Crowd Counting via Graph-Modulated Transformercited by 19
  29. 2024Learning Graph Quantized Tokenizerscited by 19
  30. 2024Learning Long Range Dependencies on Graphs via Random Walkscited by 18
  31. 2024Positional Knowledge is All You Need: Position-induced Transformer (PiT) for Operator Learningcited by 17
  32. 2023Joint-Relation Transformer for Multi-Person Motion Predictioncited by 16
  33. 2022How Expressive are Transformers in Spectral Domain for Graphs?cited by 15
  34. 2023Are More Layers Beneficial to Graph Transformers?cited by 15
  35. 2023Expressive Sign Equivariant Networks for Spectral Geometric Learningcited by 15
  36. 2024Probabilistic Graph Rewiring via Virtual Nodescited by 15
  37. 2024On the Expressive Power of Spectral Invariant Graph Neural Networkscited by 15
  38. 2023Classification of Edge-dependent Labels of Nodes in Hypergraphscited by 14

50 most cited of 147 All 147 (JSON)