Expressive Power of Graph Transformers via Logic
Not on the map. Why?
Abstract (arXiv)
Transformers are the basis of modern large language models, but relatively little is known about their precise expressive power on graphs. We study the expressive power of graph transformers (GTs) by Dwivedi and Bresson (2020) and GPS-networks by Ramp'asek et al. (2022), both under soft-attention and average hard-attention. Our study covers two scenarios: the theoretical setting with real numbers and the more practical case with floats. With reals, we show that in restriction to vertex properties definable in first-order logic (FO), GPS-networks have the same expressive power as graded modal logic (GML) with the global modality. With floats, GPS-networks turn out to be equally expressive as GML with the counting global modality. The latter result is absolute, not restricting to properties definable in a background logic. We also obtain similar characterizations for GTs in terms of propositional logic with the global modality (for reals) and the counting global modality (for floats).
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 12 of its 18 references that are in the map. First posted on arXiv 1 Aug 2025.
Builds on
12 of 18 references.
References · 12
- 2018Deeper Insights into Graph Convolutional Networks for Semi-Supervised Learningcited by 1,102
- 2022Recipe for a General, Powerful, Scalable Graph Transformercited by 713
- 2020A Generalization of Transformer Networks to Graphscited by 661
- 2020On the Bottleneck of Graph Neural Networks and its Practical Implicationscited by 631
- 2023Tighter Bounds on the Expressivity of Transformer Encoderscited by 66
- 2023Masked Hard-Attention Transformers Recognize Exactly the Star-Free Languagescited by 49
- 2023Graph Transformer for Recommendationcited by 28
- 2024Distinguished In Uniform: Self Attention Vs. Virtual Nodescited by 20
- 2024Decidability of Graph Neural Networks via Logical Characterizationscited by 14
- 2025Characterizing the Expressivity of Fixed-Precision Transformer Language Modelscited by 14
- 2024Logical Characterizations of Recurrent Graph Neural Networks with Reals and Floatscited by 13
- 2025Unique Hard Attention: A Tale of Two Sidescited by 10
Built on by
Citing papers per year: 2026: 2.
2 papers.