mlsanityData to 7 Oct 2026

Relational Attention: Generalizing Transformers for Graph-Structured Tasks

arXiv 2210.05062 ↗First posted 11 Oct 2022cs.LG cs.AIcited by 41

Not on the map. Why?

Abstract (arXiv)

Transformers flexibly operate over sets of real-valued vectors representing task-specific entities and their attributes, where each vector might encode one word-piece token and its position in a sequence, or some piece of information that carries no position at all. But as set processors, transformers are at a disadvantage in reasoning over more general graph-structured data where nodes represent entities and edges represent relations between entities. To address this shortcoming, we generalize transformer attention to consider and update edge vectors in each transformer layer. We evaluate this relational transformer on a diverse array of graph-structured tasks, including the large and challenging CLRS Algorithmic Reasoning Benchmark. There, it dramatically outperforms state-of-the-art graph neural networks expressly designed to reason over graph-structured data. Our analysis demonstrates that these gains are attributable to relational attention's inherent ability to leverage the greater expressivity of graphs over sets.

Key facts. Cited by 41 papers in the map (data through 7 Oct 2026). Builds on 50 of its 68 references that are in the map. First posted on arXiv 11 Oct 2022.

Builds on

50 of 68 references.

References · 50

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2020Language Models are Few-Shot Learnerscited by 32,199
  4. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  5. 2016Semi-Supervised Classification with Graph Convolutional Networkscited by 11,282
  6. 2017Graph Attention Networkscited by 8,854
  7. 2017Neural Message Passing for Quantum Chemistrycited by 3,460
  8. 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
  9. 2021Decision Transformer: Reinforcement Learning via Sequence Modelingcited by 1,528
  10. 2017Deep Setscited by 1,394
  11. 2018Relational inductive biases, deep learning, and graph networkscited by 1,341
  12. 2018Self-Attention with Relative Position Representationscited by 1,112
38 more
  1. 2018Deeper Insights into Graph Convolutional Networks for Semi-Supervised Learningcited by 1,099
  2. 2017MoleculeNet: A Benchmark for Molecular Machine Learningcited by 1,037
  3. 2021How Attentive are Graph Attention Networks?cited by 818
  4. 2022Recipe for a General, Powerful, Scalable Graph Transformercited by 702
  5. 2020A Generalization of Transformer Networks to Graphscited by 653
  6. 2018Attention, Learn to Solve Routing Problems!cited by 646
  7. 2021Offline Reinforcement Learning as One Big Sequence Modeling Problemcited by 636
  8. 2020Heterogeneous Graph Transformercited by 581
  9. 2021Rethinking Graph Transformers with Spectral Attentioncited by 468
  10. 2021OGB-LSC: A Large-Scale Challenge for Machine Learning on Graphscited by 328
  11. 2021Do Transformers Really Perform Bad for Graph Representation?cited by 318
  12. 2019Stabilizing Transformers for Reinforcement Learningcited by 262
  13. 2022Representing Long-Range Context for Graph Neural Networks with Global Attentioncited by 193
  14. 2022Structure-Aware Transformer for Graph Representation Learningcited by 191
  15. 2022Pure Transformers are Powerful Graph Learnerscited by 188
  16. 2020Graph-Bert: Only Attention is Needed for Learning Graph Representationscited by 176
  17. 2021Are we really making much progress? Revisiting, benchmarking, and refining heterogeneous graph neural networkscited by 176
  18. 2019What Can Neural Networks Reason About?cited by 155
  19. 2015Neural GPUs Learn Algorithmscited by 118
  20. 2019Neural Execution of Graph Algorithmscited by 118
  21. 2021Global Self-Attention as a Replacement for Graph Convolutioncited by 113
  22. 2014Learning to Executecited by 105
  23. 2022The CLRS Algorithmic Reasoning Benchmarkcited by 103
  24. 2019Star-Transformercited by 94
  25. 2019Graph Transformer for Graph-to-Sequence Learningcited by 82
  26. 2018Neural Arithmetic Logic Unitscited by 69
  27. 2019An investigation of model-free planningcited by 64
  28. 2022A Generalist Neural Algorithmic Learnercited by 58
  29. 2022Graph Neural Networks are Dynamic Programmerscited by 55
  30. 2020Pointer Graph Networkscited by 52
  31. 2020Molecular Mechanics-Driven Graph Neural Network with Multiplex Graph for Molecular Structurescited by 44
  32. 2021Heterogeneity-aware Twitter Bot Detection with Relational Graph Transformerscited by 41
  33. 2022Mask and Reason: Pre-Training Knowledge Graph Transformers for Complex Logical Queriescited by 39
  34. 2021Systematic Generalization with Edge Transformerscited by 38
  35. 2019Working Memory Graphscited by 23
  36. 2021ReFormer: The Relational Transformer for Image Captioningcited by 23
  37. 2020Structure-Feature based Graph Self-adaptive Poolingcited by 18
  38. 2020Towards Scale-Invariant Graph-related Problem Solving by Iterative Homogeneous Graph Neural Networkscited by 6

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 12; 2024: 14; 2025: 9; 2026: 6.

41 papers.

Sort:

By area:

  1. 2023Graph Inductive Biases in Transformers without Message Passingcited by 150
  2. 2024Graph Neural Networks for Learning Equivariant Representations of Neural Networkscited by 59
  3. 2023Graph Metanetworks for Processing Diverse Neural Architecturescited by 55
  4. 2023Transformers Meet Directed Graphscited by 39
  5. 2023Never Train from Scratch: Fair Comparison of Long-Sequence Models Requires Data-Driven Priorscited by 33
  6. 2023Neural Algorithmic Reasoning with Causal Regularisationcited by 30
  7. 2024Simulation of Graph Algorithms with Looped Transformerscited by 29
  8. 2023G-Adapter: Towards Structure-Aware Parameter-Efficient Transfer Learning for Graph Transformer Networkscited by 25
  9. 2023Coarse-to-Fine: a Hierarchical Diffusion Model for Molecule Generation in 3Dcited by 24
  10. 2024Improved Generalization of Weight Space Networks via Augmentationscited by 24
  11. 2024MART: MultiscAle Relational Transformer Networks for Multi-agent Trajectory Predictioncited by 21
  12. 2024Deep Linear Probe Generators for Weight Space Learningcited by 17
29 more
  1. 2023Neural Algorithmic Reasoning Without Intermediate Supervisioncited by 16
  2. 2023Joint-Relation Transformer for Multi-Person Motion Predictioncited by 16
  3. 2023How to Train Neural Field Representations: A Comprehensive Study and Benchmarkcited by 12
  4. 2023SALSA-CLRS: A Sparse and Scalable Benchmark for Algorithmic Reasoningcited by 11
  5. 2024Towards Principled Graph Transformerscited by 11
  6. 2024Towards Dynamic Message Passing on Graphscited by 11
  7. 2024On the Markov Property of Neural Algorithmic Reasoning: Analyses and Methodscited by 10
  8. 2024Gradformer: Graph Transformer with Exponential Decaycited by 10
  9. 2024Recurrent Aggregators in Neural Algorithmic Reasoningcited by 6
  10. 2023Transformers as Graph-to-Graph Modelscited by 5
  11. 2024A Scalable and Effective Alternative to Graph Transformerscited by 4
  12. 2025Rethinking Addressing in Language Models via Contexualized Equivariant Positional Encodingcited by 4
  13. 2025ViTE: Virtual Graph Trajectory Expert Router for Pedestrian Trajectory Predictioncited by 4
  14. 2025Flow to Learn: Flow Matching on Neural Network Parameterscited by 3
  15. 2025Learnable Spatial-Temporal Positional Encoding for Link Predictioncited by 3
  16. 2024Open-Book Neural Algorithmic Reasoningcited by 2
  17. 2025Generalizable Insights for Graph Transformers in Theory and Practicecited by 2
  18. 2024A Context-Enhanced Framework for Sequential Graph Reasoningcited by 1
  19. 2025Beyond Pixels: Medical Image Quality Assessment with Implicit Neural Representationscited by 1
  20. 2026FloydNet: A Learning Paradigm for Global Relational Reasoningcited by 1
  21. 2026ART: Adaptive Relational Transformer for Pedestrian Trajectory Prediction with Temporal-Aware Relationscited by 1
  22. 2026Graph Machine: Exploring Edge Mechanisms as an Inductive Biascited by 1
  23. 2024Temporal Graph Memory Networks For Knowledge Tracingcited by 0
  24. 2025PatchTraj: Unified Time-Frequency Representation Learning via Dynamic Patches for Trajectory Predictioncited by 0
  25. 2025KNARsack: Teaching Neural Algorithmic Reasoners to Solve Pseudo-Polynomial Problemscited by 0
  26. 20253D-GSRD: 3D Molecular Graph Auto-Encoder with Selective Re-mask Decodingcited by 0
  27. 2026Smoothing Dark Areas in Molecular Latent Diffusioncited by 0
  28. 2026Autoregressive latent diffusion for 3D molecule generationcited by 0
  29. 2026Let the Heads Talk: Beyond Diagonal Graph Attentioncited by 0