Transformers Generalize DeepSets and Can be Extended to Graphs and Hypergraphs
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
- 2017Attention Is All You Needcited by 60,361
- 2014Adam: A Method for Stochastic Optimizationcited by 37,240
- 2016Layer Normalizationcited by 5,669
- 2016Gaussian Error Linear Units (GELUs)cited by 3,502
- 2017Neural Message Passing for Quantum Chemistrycited by 3,487
- 2019A Comprehensive Survey on Graph Neural Networkscited by 2,919
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
- 2020Rethinking Attention with Performerscited by 1,601
- 2018Graph Neural Networks: A Review of Methods and Applicationscited by 1,576
- 2017Deep Setscited by 1,421
- 2018Deeper Insights into Graph Convolutional Networks for Semi-Supervised Learningcited by 1,102
- 2020On Layer Normalization in the Transformer Architecturecited by 922
17 more
- 2020A Generalization of Transformer Networks to Graphscited by 661
- 2019Are Transformers universal approximators of sequence-to-sequence functions?cited by 406
- 2018Deep Learning on Graphs: A Surveycited by 393
- 2019Provably Powerful Graph Networkscited by 389
- 2018Invariant and Equivariant Graph Networkscited by 346
- 2018Neural Relational Inference for Interacting Systemscited by 339
- 2021OGB-LSC: A Large-Scale Challenge for Machine Learning on Graphscited by 329
- 2020A Note on Over-Smoothing for Graph Neural Networkscited by 249
- 2019Universal Invariant and Equivariant Graph Neural Networkscited by 183
- 2018Set Transformer: A Framework for Attention-based Permutation-Invariant Neural Networkscited by 132
- 2018DeepInf: Social Influence Prediction with Deep Learningcited by 128
- 2017Approximating Continuous Functions by ReLU Nets of Minimal Widthcited by 122
- 2020Implicit Graph Neural Networkscited by 100
- 2018Deep Models of Interactions Across Setscited by 69
- 2019Hyper-SAGNN: a self-attention based graph neural network for hypergraphscited by 69
- 2019Random walks on hypergraphscited by 16
- 2020Set2Graph: Learning Graphs From Setscited by 16
Built on by
Citing papers per year: 2022: 5; 2023: 8; 2024: 16; 2025: 2; 2026: 4.
35 papers.
Sort:
- 2022Long Range Graph Benchmarkcited by 263
- 2022Pure Transformers are Powerful Graph Learnerscited by 188
- 2022Sign and Basis Invariant Networks for Spectral Graph Representation Learningcited by 179
- 2023Graph Metanetworks for Processing Diverse Neural Architecturescited by 57
- 20233Mformer: Multi-order Multi-mode Transformer for Skeletal Action Recognitioncited by 40
- 2024Graph Transformers: A Surveycited by 32
- 2023Learning Probabilistic Symmetrization for Architecture Agnostic Equivariancecited by 26
- 2022High-Order Pooling for Graph Neural Networks with Tensor Decompositioncited by 24
- 2023Devil's on the Edges: Selective Quad Attention for Scene Graph Generationcited by 23
- 2024A Survey on Hypergraph Neural Networks: An In-Depth and Step-By-Step Guidecited by 23
- 2024Crystalformer: Infinitely Connected Attention for Periodic Structure Encodingcited by 15
- 2022Equivariant Hypergraph Neural Networkscited by 14
23 more
- 2023Classification of Edge-dependent Labels of Nodes in Hypergraphscited by 14
- 2024Towards Understanding Inductive Bias in Transformers: A View From Infinitycited by 13
- 2024Towards Principled Graph Transformerscited by 11
- 2024Attending to Topological Spaces: The Cellular Transformercited by 11
- 2024Meet JEANIE: a Similarity Measure for 3D Skeleton Sequences via Temporal-Viewpoint Alignmentcited by 10
- 2024On permutation-invariant neural networkscited by 10
- 2024Cell Graph Transformer for Nuclei Classificationcited by 9
- 2024On the Theoretical Expressive Power and the Design Space of Higher-Order Graph Transformerscited by 8
- 2023Fast computation of permutation equivariant layers with the partition algebracited by 7
- 2024Recasting Generic Pretrained Vision Transformers As Object-Centric Scene Encoders For Manipulation Policiescited by 6
- 2023G-Signatures: Global Graph Propagation With Randomized Signaturescited by 4
- 2024Graph as Point Setcited by 4
- 2024CSA-Trans: Code Structure Aware Transformer for ASTcited by 3
- 2024SE3Set: Harnessing equivariant hypergraph neural networks for molecular representation learningcited by 2
- 2024Graph Transformers Dream of Electric Flowcited by 2
- 2025Using Random Noise Equivariantly to Boost Graph Neural Networks Universallycited by 2
- 2023There is more to graphs than meets the eye: Learning universal features with self-supervisioncited by 1
- 2025Sketch-Augmented Features Improve Learning Long-Range Dependencies in Graph Neural Networkscited by 1
- 2026Attention-based graph neural networks: a surveycited by 1
- 2024Decomposition of Equivariant Maps via Invariant Maps: Application to Universal Approximation under Symmetrycited by 0
- 2026Improving Set Function Approximation with Quasi-Arithmetic Neural Networkscited by 0
- 2026Subspace Kernel Learning on Tensor Sequencescited by 0
- 2026Weisfeiler-Leman Is Incomplete on Simple Spectrum Graphs, so Canonicalize Themcited by 0
- 2026Weisfeiler-Leman Is Incomplete on Simple Spectrum Graphs, so Canonicalize Them22 May 2026
- 2026Attention-based graph neural networks: a survey9 May 2026
- 2026Subspace Kernel Learning on Tensor Sequences20 Mar 2026
- 2026Improving Set Function Approximation with Quasi-Arithmetic Neural Networks4 Feb 2026
- 2025Sketch-Augmented Features Improve Learning Long-Range Dependencies in Graph Neural Networks5 Nov 2025
- 2025Using Random Noise Equivariantly to Boost Graph Neural Networks Universally4 Feb 2025
- 2024Graph Transformers Dream of Electric Flow22 Oct 2024
- 2024Decomposition of Equivariant Maps via Invariant Maps: Application to Universal Approximation under Symmetry25 Sep 2024
- 2024Graph Transformers: A Survey13 Jul 2024
- 2024SE3Set: Harnessing equivariant hypergraph neural networks for molecular representation learning26 May 2024
- 2024Recasting Generic Pretrained Vision Transformers As Object-Centric Scene Encoders For Manipulation Policies24 May 2024
- 2024Attending to Topological Spaces: The Cellular Transformer23 May 2024
23 more
- 2024Graph as Point Set5 May 2024
- 2024CSA-Trans: Code Structure Aware Transformer for AST7 Apr 2024
- 2024On the Theoretical Expressive Power and the Design Space of Higher-Order Graph Transformers4 Apr 2024
- 2024A Survey on Hypergraph Neural Networks: An In-Depth and Step-By-Step Guide1 Apr 2024
- 2024On permutation-invariant neural networks26 Mar 2024
- 2024Crystalformer: Infinitely Connected Attention for Periodic Structure Encoding18 Mar 2024
- 2024Cell Graph Transformer for Nuclei Classification20 Feb 2024
- 2024Towards Understanding Inductive Bias in Transformers: A View From Infinity7 Feb 2024
- 2024Meet JEANIE: a Similarity Measure for 3D Skeleton Sequences via Temporal-Viewpoint Alignment7 Feb 2024
- 2024Towards Principled Graph Transformers18 Jan 2024
- 2023Graph Metanetworks for Processing Diverse Neural Architectures7 Dec 2023
- 2023Classification of Edge-dependent Labels of Nodes in Hypergraphs5 Jun 2023
- 2023Learning Probabilistic Symmetrization for Architecture Agnostic Equivariance5 Jun 2023
- 2023There is more to graphs than meets the eye: Learning universal features with self-supervision31 May 2023
- 2023Devil's on the Edges: Selective Quad Attention for Scene Graph Generation7 Apr 2023
- 20233Mformer: Multi-order Multi-mode Transformer for Skeletal Action Recognition25 Mar 2023
- 2023Fast computation of permutation equivariant layers with the partition algebra10 Mar 2023
- 2023G-Signatures: Global Graph Propagation With Randomized Signatures17 Feb 2023
- 2022Equivariant Hypergraph Neural Networks22 Aug 2022
- 2022Pure Transformers are Powerful Graph Learners6 Jul 2022
- 2022Long Range Graph Benchmark16 Jun 2022
- 2022High-Order Pooling for Graph Neural Networks with Tensor Decomposition24 May 2022
- 2022Sign and Basis Invariant Networks for Spectral Graph Representation Learning25 Feb 2022
- 2022Long Range Graph Benchmarkcited by 263
- 2022Pure Transformers are Powerful Graph Learnerscited by 188
- 2022Sign and Basis Invariant Networks for Spectral Graph Representation Learningcited by 179
- 2023Graph Metanetworks for Processing Diverse Neural Architecturescited by 57
- 20233Mformer: Multi-order Multi-mode Transformer for Skeletal Action Recognitioncited by 40
- 2024Graph Transformers: A Surveycited by 32
- 2023Learning Probabilistic Symmetrization for Architecture Agnostic Equivariancecited by 26
- 2022High-Order Pooling for Graph Neural Networks with Tensor Decompositioncited by 24
- 2023Devil's on the Edges: Selective Quad Attention for Scene Graph Generationcited by 23
- 2024A Survey on Hypergraph Neural Networks: An In-Depth and Step-By-Step Guidecited by 23
- 2024Crystalformer: Infinitely Connected Attention for Periodic Structure Encodingcited by 15
- 2022Equivariant Hypergraph Neural Networkscited by 14
12 most cited of 35 All 35 (JSON)
- 2026Weisfeiler-Leman Is Incomplete on Simple Spectrum Graphs, so Canonicalize Them22 May 2026
- 2026Attention-based graph neural networks: a survey9 May 2026
- 2026Subspace Kernel Learning on Tensor Sequences20 Mar 2026
- 2026Improving Set Function Approximation with Quasi-Arithmetic Neural Networks4 Feb 2026
- 2025Sketch-Augmented Features Improve Learning Long-Range Dependencies in Graph Neural Networks5 Nov 2025
- 2025Using Random Noise Equivariantly to Boost Graph Neural Networks Universally4 Feb 2025
- 2024Graph Transformers Dream of Electric Flow22 Oct 2024
- 2024Decomposition of Equivariant Maps via Invariant Maps: Application to Universal Approximation under Symmetry25 Sep 2024
- 2024Graph Transformers: A Survey13 Jul 2024
- 2024SE3Set: Harnessing equivariant hypergraph neural networks for molecular representation learning26 May 2024
- 2024Recasting Generic Pretrained Vision Transformers As Object-Centric Scene Encoders For Manipulation Policies24 May 2024
- 2024Attending to Topological Spaces: The Cellular Transformer23 May 2024
12 newest of 35 All 35 (JSON)