mlsanityData to 14 Oct 2026

Distinguished In Uniform: Self Attention Vs. Virtual Nodes

arXiv 2405.11951 ↗First posted 20 May 2024cs.LGcited by 20

Not on the map. Why?

Abstract (arXiv)

Graph Transformers (GTs) such as SAN and GPS are graph processing models that combine Message-Passing GNNs (MPGNNs) with global Self-Attention. They were shown to be universal function approximators, with two reservations: 1. The initial node features must be augmented with certain positional encodings. 2. The approximation is non-uniform: Graphs of different sizes may require a different approximating network. We first clarify that this form of universality is not unique to GTs: Using the same positional encodings, also pure MPGNNs and even 2-layer MLPs are non-uniform universal approximators. We then consider uniform expressivity: The target function is to be approximated by a single network for graphs of all sizes. There, we compare GTs to the more efficient MPGNN + Virtual Node architecture. The essential difference between the two model definitions is in their global computation method -- Self-Attention Vs Virtual Node. We prove that none of the models is a uniform-universal approximator, before proving our main result: Neither model's uniform expressivity subsumes the other's. We demonstrate the theory with experiments on synthetic data. We further augment our study with real-world datasets, observing mixed results which indicate no clear ranking in practice as well.

Key facts. Cited by 20 papers in the map (data through 14 Oct 2026). Builds on 29 of its 39 references that are in the map. First posted on arXiv 20 May 2024.

Builds on

29 of 39 references.

References · 29

  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. 2015Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shiftcited by 7,005
  5. 2016Layer Normalizationcited by 5,669
  6. 2018How Powerful are Graph Neural Networks?cited by 4,393
  7. 2017Neural Message Passing for Quantum Chemistrycited by 3,487
  8. 2020Open Graph Benchmark: Datasets for Machine Learning on Graphscited by 2,163
  9. 2017Deep Setscited by 1,421
  10. 2019Strategies for Pre-training Graph Neural Networkscited by 971
  11. 2018Weisfeiler and Leman Go Neural: Higher-order Graph Neural Networkscited by 881
  12. 2022Recipe for a General, Powerful, Scalable Graph Transformercited by 713
17 more
  1. 2020A Generalization of Transformer Networks to Graphscited by 661
  2. 2021Rethinking Graph Transformers with Spectral Attentioncited by 473
  3. 2019Are Transformers universal approximators of sequence-to-sequence functions?cited by 406
  4. 2017Residual Gated Graph ConvNetscited by 346
  5. 2021Graph Neural Networks with Learnable Structural and Positional Representationscited by 333
  6. 2022Long Range Graph Benchmarkcited by 263
  7. 2020The Surprising Power of Graph Neural Networks with Random Node Initializationcited by 198
  8. 2022Pure Transformers are Powerful Graph Learnerscited by 188
  9. 2019On the equivalence between graph isomorphism testing and function approximation with GNNscited by 172
  10. 2023Exphormer: Sparse Transformers for Graphscited by 170
  11. 2023Where Did the Gap Go? Reassessing the Long-Range Graph Benchmarkcited by 85
  12. 2023Attending to Graph Transformerscited by 83
  13. 2023On the Connection Between MPNN and Graph Transformercited by 61
  14. 2019Coloring graph neural networks for node disambiguationcited by 52
  15. 2021Graph Neural Networks with Local Graph Parameterscited by 52
  16. 2023WL meet VCcited by 31
  17. 2023Some Might Say All You Need Is Sumcited by 21

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 8; 2025: 8; 2026: 4.

20 papers.

Sort:

By area:

  1. 2024G-Designer: Architecting Multi-agent Communication Topologies via Graph Neural Networkscited by 119
  2. 2024Learning Long Range Dependencies on Graphs via Random Walkscited by 18
  3. 2024Probabilistic Graph Rewiring via Virtual Nodescited by 15
  4. 2024Understanding Virtual Nodes: Oversquashing and Node Heterogeneitycited by 14
  5. 2024Bundle Neural Networks for message diffusion on graphscited by 14
  6. 2025A Survey of Graph Transformers: Architectures, Theories and Applicationscited by 14
  7. 2024Benchmarking Positional Encodings for GNNs and Graph Transformerscited by 13
  8. 2025Geometry-aware RL for Manipulation of Varying Shapes and Deformable Objectscited by 10
  9. 2024Homomorphism Counts as Structural Encodings for Graph Learningcited by 7
  10. 2025Deeper with Riemannian Geometry: Overcoming Oversmoothing and Oversquashing for Graph Foundation Modelscited by 7
  11. 2024Next Level Message-Passing with Hierarchical Support Graphscited by 5
  12. 2025Repetition Makes Perfect: Recurrent Graph Neural Networks Match Message-Passing Limitcited by 4
8 more
  1. 2025Are Graph Transformers Necessary? Efficient Long-Range Message Passing with Fractal Nodes in MPNNscited by 3
  2. 2025Short-Range Oversquashingcited by 3
  3. 2025Expressive Power of Graph Transformers via Logiccited by 2
  4. 2025Exploring Graph-Transformer Out-of-Distribution Generalization Abilitiescited by 1
  5. 2026Towards Understanding the Expressive Power of GNNs with Global Readoutcited by 0
  6. 2026Learn When and Where to Connect: Adaptive Virtual Nodes for Dynamic Message Passing on Graphscited by 0
  7. 2026Escaping Oversquashing: Addressable and Support-Aware Global Memory for Message Passing Networkscited by 0
  8. 2026The Expressive Power of Random-Feature MPNNs Across Graph Sizescited by 0