Aligning Transformers with Weisfeiler-Leman
Not on the map. Why?
Abstract (arXiv)
Graph neural network architectures aligned with the k-dimensional Weisfeiler--Leman (k-WL) hierarchy offer theoretically well-understood expressive power. However, these architectures often fail to deliver state-of-the-art predictive performance on real-world graphs, limiting their practical utility. While recent works aligning graph transformer architectures with the k-WL hierarchy have shown promising empirical results, employing transformers for higher orders of k remains challenging due to a prohibitive runtime and memory complexity of self-attention as well as impractical architectural assumptions, such as an infeasible number of attention heads. Here, we advance the alignment of transformers with the k-WL hierarchy, showing stronger expressivity results for each k, making them more feasible in practice. In addition, we develop a theoretical framework that allows the study of established positional encodings such as Laplacian PEs and SPE. We evaluate our transformers on the large-scale PCQM4Mv2 dataset, showing competitive predictive performance with the state-of-the-art and demonstrating strong downstream performance when fine-tuning them on small-scale molecular datasets. Our code is available at https://github.com/luis-mueller/wl-transformers.
Key facts. Cited by 8 papers in the map (data through 14 Oct 2026). Builds on 32 of its 55 references that are in the map. First posted on arXiv 5 Jun 2024.
Builds on
32 of 55 references.
References · 32
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2016Semi-Supervised Classification with Graph Convolutional Networkscited by 11,361
- 2018How Powerful are Graph Neural Networks?cited by 4,393
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
- 2017Neural Message Passing for Quantum Chemistrycited by 3,487
- 2020Open Graph Benchmark: Datasets for Machine Learning on Graphscited by 2,163
- 2020Rethinking Attention with Performerscited by 1,601
- 2018Pitfalls of Graph Neural Network Evaluationcited by 1,007
- 2019Strategies for Pre-training Graph Neural Networkscited by 971
20 more
- 2022Recipe for a General, Powerful, Scalable Graph Transformercited by 713
- 2021Rethinking Graph Transformers with Spectral Attentioncited by 473
- 2021OGB-LSC: A Large-Scale Challenge for Machine Learning on Graphscited by 329
- 2021Weisfeiler and Lehman Go Cellular: CW Networkscited by 218
- 2022Pure Transformers are Powerful Graph Learnerscited by 188
- 2022Sign and Basis Invariant Networks for Spectral Graph Representation Learningcited by 179
- 2019On the equivalence between graph isomorphism testing and function approximation with GNNscited by 172
- 2023Graph Inductive Biases in Transformers without Message Passingcited by 153
- 2021Weisfeiler and Leman go Machine Learning: The Story so farcited by 122
- 2023Rethinking the Expressive Power of GNNs via Graph Biconnectivitycited by 119
- 2022A Generalization of ViT/MLP-Mixer to Graphscited by 93
- 2023Where Did the Gap Go? Reassessing the Long-Range Graph Benchmarkcited by 85
- 2023Attending to Graph Transformerscited by 83
- 2022Expressiveness and Approximation Properties of Graph Neural Networkscited by 64
- 2023Towards Foundational Models for Molecular Learning on Large-Scale Multi-Task Datasetscited by 39
- 2023Equivariant Polynomials for Graph Neural Networkscited by 38
- 2022SpeqNets: Sparsity-aware Permutation-equivariant Graph Networkscited by 37
- 2023An Empirical Study of Realized GNN Expressivenesscited by 33
- 2022MolE: a molecular foundation model for drug discoverycited by 12
- 2023Diffusing Graph Attentioncited by 5
Built on by
Citing papers per year: 2025: 3; 2026: 5.
8 papers.
- 2025A Survey of Graph Transformers: Architectures, Theories and Applicationscited by 14
- 2026Principled Latent Diffusion for Graphs via Laplacian Autoencoderscited by 4
- 2025Generalizable Insights for Graph Transformers in Theory and Practicecited by 2
- 2026GraViti: Graph-Level Variational Autoencoders with Relaxed Permutation Invariancecited by 2
- 2025Random Search Neural Networks for Efficient and Expressive Graph Learningcited by 1
- 2026On the Expressive Power of GNNs to Solve Linear SDPscited by 1
- 2026Weisfeiler-Leman Is Incomplete on Simple Spectrum Graphs, so Canonicalize Themcited by 0
- 2026A Weisfeiler-Leman Characterization of Global-Attention Graph Transformers for Mixed-Integer Linear Programscited by 0
- 2026A Weisfeiler-Leman Characterization of Global-Attention Graph Transformers for Mixed-Integer Linear Programs20 Jul 2026
- 2026Weisfeiler-Leman Is Incomplete on Simple Spectrum Graphs, so Canonicalize Them22 May 2026
- 2026GraViti: Graph-Level Variational Autoencoders with Relaxed Permutation Invariance15 May 2026
- 2026On the Expressive Power of GNNs to Solve Linear SDPs30 Apr 2026
- 2026Principled Latent Diffusion for Graphs via Laplacian Autoencoders20 Jan 2026
- 2025Generalizable Insights for Graph Transformers in Theory and Practice11 Nov 2025
- 2025Random Search Neural Networks for Efficient and Expressive Graph Learning26 Oct 2025
- 2025A Survey of Graph Transformers: Architectures, Theories and Applications23 Feb 2025