mlsanityData to 14 Oct 2026

Transformers Generalize DeepSets and Can be Extended to Graphs and Hypergraphs

arXiv 2110.14416 ↗First posted 27 Oct 2021cs.LGcited by 35

Not on the map. Why?

Abstract (arXiv)

We present a generalization of Transformers to any-order permutation invariant data (sets, graphs, and hypergraphs). We begin by observing that Transformers generalize DeepSets, or first-order (set-input) permutation invariant MLPs. Then, based on recently characterized higher-order invariant MLPs, we extend the concept of self-attention to higher orders and propose higher-order Transformers for order-k data (k=2 for graphs and k>2 for hypergraphs). Unfortunately, higher-order Transformers turn out to have prohibitive complexity O(n2k) to the number of input nodes n. To address this problem, we present sparse higher-order Transformers that have quadratic complexity to the number of input hyperedges, and further adopt the kernel attention approach to reduce the complexity to linear. In particular, we show that the sparse second-order Transformers with kernel attention are theoretically more expressive than message passing operations while having an asymptotically identical complexity. Our models achieve significant performance improvement over invariant MLPs and message-passing graph neural networks in large-scale graph regression and set-to-(hyper)graph prediction tasks. Our implementation is available at https://github.com/jw9730/hot.

Key facts. Cited by 35 papers in the map (data through 14 Oct 2026). Builds on 29 of its 58 references that are in the map. First posted on arXiv 27 Oct 2021.

Builds on

29 of 58 references.

References · 29

  1. 2017Attention Is All You Needcited by 60,361
  2. 2014Adam: A Method for Stochastic Optimizationcited by 37,240
  3. 2016Layer Normalizationcited by 5,669
  4. 2016Gaussian Error Linear Units (GELUs)cited by 3,502
  5. 2017Neural Message Passing for Quantum Chemistrycited by 3,487
  6. 2019A Comprehensive Survey on Graph Neural Networkscited by 2,919
  7. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
  8. 2020Rethinking Attention with Performerscited by 1,601
  9. 2018Graph Neural Networks: A Review of Methods and Applicationscited by 1,576
  10. 2017Deep Setscited by 1,421
  11. 2018Deeper Insights into Graph Convolutional Networks for Semi-Supervised Learningcited by 1,102
  12. 2020On Layer Normalization in the Transformer Architecturecited by 922
17 more
  1. 2020A Generalization of Transformer Networks to Graphscited by 661
  2. 2019Are Transformers universal approximators of sequence-to-sequence functions?cited by 406
  3. 2018Deep Learning on Graphs: A Surveycited by 393
  4. 2019Provably Powerful Graph Networkscited by 389
  5. 2018Invariant and Equivariant Graph Networkscited by 346
  6. 2018Neural Relational Inference for Interacting Systemscited by 339
  7. 2021OGB-LSC: A Large-Scale Challenge for Machine Learning on Graphscited by 329
  8. 2020A Note on Over-Smoothing for Graph Neural Networkscited by 249
  9. 2019Universal Invariant and Equivariant Graph Neural Networkscited by 183
  10. 2018Set Transformer: A Framework for Attention-based Permutation-Invariant Neural Networkscited by 132
  11. 2018DeepInf: Social Influence Prediction with Deep Learningcited by 128
  12. 2017Approximating Continuous Functions by ReLU Nets of Minimal Widthcited by 122
  13. 2020Implicit Graph Neural Networkscited by 100
  14. 2018Deep Models of Interactions Across Setscited by 69
  15. 2019Hyper-SAGNN: a self-attention based graph neural network for hypergraphscited by 69
  16. 2019Random walks on hypergraphscited by 16
  17. 2020Set2Graph: Learning Graphs From Setscited by 16

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2022: 5; 2023: 8; 2024: 16; 2025: 2; 2026: 4.

35 papers.

Sort:

  1. 2022Long Range Graph Benchmarkcited by 263
  2. 2022Pure Transformers are Powerful Graph Learnerscited by 188
  3. 2022Sign and Basis Invariant Networks for Spectral Graph Representation Learningcited by 179
  4. 2023Graph Metanetworks for Processing Diverse Neural Architecturescited by 57
  5. 20233Mformer: Multi-order Multi-mode Transformer for Skeletal Action Recognitioncited by 40
  6. 2024Graph Transformers: A Surveycited by 32
  7. 2023Learning Probabilistic Symmetrization for Architecture Agnostic Equivariancecited by 26
  8. 2022High-Order Pooling for Graph Neural Networks with Tensor Decompositioncited by 24
  9. 2023Devil's on the Edges: Selective Quad Attention for Scene Graph Generationcited by 23
  10. 2024A Survey on Hypergraph Neural Networks: An In-Depth and Step-By-Step Guidecited by 23
  11. 2024Crystalformer: Infinitely Connected Attention for Periodic Structure Encodingcited by 15
  12. 2022Equivariant Hypergraph Neural Networkscited by 14
23 more
  1. 2023Classification of Edge-dependent Labels of Nodes in Hypergraphscited by 14
  2. 2024Towards Understanding Inductive Bias in Transformers: A View From Infinitycited by 13
  3. 2024Towards Principled Graph Transformerscited by 11
  4. 2024Attending to Topological Spaces: The Cellular Transformercited by 11
  5. 2024Meet JEANIE: a Similarity Measure for 3D Skeleton Sequences via Temporal-Viewpoint Alignmentcited by 10
  6. 2024On permutation-invariant neural networkscited by 10
  7. 2024Cell Graph Transformer for Nuclei Classificationcited by 9
  8. 2024On the Theoretical Expressive Power and the Design Space of Higher-Order Graph Transformerscited by 8
  9. 2023Fast computation of permutation equivariant layers with the partition algebracited by 7
  10. 2024Recasting Generic Pretrained Vision Transformers As Object-Centric Scene Encoders For Manipulation Policiescited by 6
  11. 2023G-Signatures: Global Graph Propagation With Randomized Signaturescited by 4
  12. 2024Graph as Point Setcited by 4
  13. 2024CSA-Trans: Code Structure Aware Transformer for ASTcited by 3
  14. 2024SE3Set: Harnessing equivariant hypergraph neural networks for molecular representation learningcited by 2
  15. 2024Graph Transformers Dream of Electric Flowcited by 2
  16. 2025Using Random Noise Equivariantly to Boost Graph Neural Networks Universallycited by 2
  17. 2023There is more to graphs than meets the eye: Learning universal features with self-supervisioncited by 1
  18. 2025Sketch-Augmented Features Improve Learning Long-Range Dependencies in Graph Neural Networkscited by 1
  19. 2026Attention-based graph neural networks: a surveycited by 1
  20. 2024Decomposition of Equivariant Maps via Invariant Maps: Application to Universal Approximation under Symmetrycited by 0
  21. 2026Improving Set Function Approximation with Quasi-Arithmetic Neural Networkscited by 0
  22. 2026Subspace Kernel Learning on Tensor Sequencescited by 0
  23. 2026Weisfeiler-Leman Is Incomplete on Simple Spectrum Graphs, so Canonicalize Themcited by 0