AI summary · arXiv: 2207.02505v2 · cs.LG
Pure Transformers are Powerful Graph Learners
The essentials
- Standard Transformers can be effective in graph learning without any graph-specific modifications
- Tokenized Graph Transformer (TokenGT) approach treats all nodes and edges as independent tokens and augment them with token embeddings before feeding them to a Transformer
- With an appropriate choice of token embeddings, TokenGT is theoretically at least as expressive as an invariant graph network composed of equivariant linear layers
- TokenGT outperforms message-passing Graph Neural Networks (GNN) baselines and achieves competitive results compared to other Transformer variants when trained on a large-scale graph dataset (PCQM4Mv2)
- The implementation of TokenGT is available on GitHub
- TokenGT works well with large-scale data and achieve promising results in graph learning both in theory and practice
- The authors explore the capability of TokenGT on the PCQM4Mv2 quantum chemistry regression dataset, which has 3.7 million molecular graphs, using both node and type identifiers in their model
- They also apply kernel attention that approximates the attention computation to linear cost
- This research can contribute to advancing machine learning technology for various applications supported by organizations like the Korea government (MSIT)
Key points written by AI: they may contain errors, check them against the paper.
Ask questions about this paper to our AI assistant
How to chat with this paper? Illustrated guide
You can also chat with multiple papers at once here.
Keep this conversation — a free account saves your questions and answers, your collections of papers and your alerts.
Continue with Google Create a free accountTools for this paper
Advanced tools Premium
For researchers who follow a field closely: citation alerts, journal-club slides, version comparison and Zotero export. Discover Premium
Among the 31 papers around this one, the name that comes back most: Luis Müller (3 papers)
10 more people sign several of them. The full map adds their institutions and approaches, from the papers of the last years.
Papers around this one
See them on a mapRanked by how close their title and abstract are to this paper’s. Select some to read them together.
Closest papers
-
Plain Transformers Can be Powerful Graph LearnersLiheng Ma, Soumyasundar Pal, Yingxue Zhang et al. · 2025 · Trans. Mach. Learn. Res. · cited 4 times · Not summarized yet
Abstract
Transformers have attained outstanding performance across various modalities, owing to their simple but powerful scaled-dot-product (SDP) attention mechanisms. Researchers have attempted to migrate Transformers to graph learning, but most advanced Graph Transformers (GTs) have strayed far from plain Transformers, exhibiting major architectural differences either by integrating message-passing or incorporating sophisticated attention mechanisms. These divergences hinder the easy adoption of training advances for Transformers developed in other domains. Contrary to previous GTs, this work demonstrates that the plain Transformer architecture can be a powerful graph learner. To achieve this, we …
-
On the theoretical expressive power of graph transformers for solving graph problemsGiannis Nikolentzos, Dimitrios Kelesis, M. Vazirgiannis · 2025 · Neural Networks · cited 3 times · Not summarized yet
Abstract
In recent years, Transformers have become the dominant neural architecture in the fields of natural language processing and computer vision. The generalization of Transformers to graphs, so-called Graph Transformers, have recently emerged as a promising alternative to the successful message passing Graph Neural Networks (MPNNs). While the expressive power of MPNNs has been intensively studied in the past years, that of Graph Transformers is still underexplored. Existing results mostly rely on the employed structural/positional encodings and not on the pure architecture itself. However, gaining an understanding of the strengths and limitations of Graph Transformers would be very useful both f…
-
Learning Graph Quantized TokenizersLi-Mei Wang, Kaveh Hassani, Si Zhang et al. · 2024 · International Conference on Learning Representations · cited 24 times · Not summarized yet
Abstract
Transformers serve as the backbone architectures of Foundational Models, where domain-specific tokenizers allow them to adapt to various domains. Graph Transformers (GTs) have recently emerged as leading models in geometric deep learning, outperforming Graph Neural Networks (GNNs) in various graph learning tasks. However, the development of tokenizers for graphs has lagged behind other modalities. To address this, we introduce GQT (\textbf{G}raph \textbf{Q}uantized \textbf{T}okenizer), which decouples tokenizer training from Transformer training by leveraging multi-task graph self-supervised learning, yielding robust and generalizable graph tokens. Furthermore, the GQT utilizes Residual Vect…
-
Topology-Induced Graph Transformer for Graph Representation LearningPeiyu Liang, Yuzhou Chen, Xubin He · 2025 · BigData Congress [Services Society] · Not summarized yet
Abstract
While Graph Neural Networks excel at graph learning, they are limited by the 1-Weisfeiler-Leman (WL) test and sensitive to structural changes. Recent work addressed the 1-WL test limitation by introducing Graph Transformers (GTs), which combine a Transformer encoder layer with a graph convolution layer. This allows nodes to attend to long-range dependencies without structural inductive bias. However, the self-attention mechanism in GTs primarily focuses on node features and local substructures, neglecting the crucial high-order connectivity patterns, i.e., topological features, in reasoning the underlying graph structure. Our proposed Topology-Induced Graph Transformer (TOPGT) addresses this…
-
Generalizable Insights for Graph Transformers in Theory and PracticeTimo Stoll, Luis Müller, Christopher Morris · 2025 · Machine Learning · cited 6 times · AI summary available
Abstract
Graph Transformers (GTs) have shown strong empirical performance, yet current architectures vary widely in their use of attention mechanisms, positional embeddings (PEs), and expressivity. Existing expressivity results are often tied to specific design choices and lack comprehensive empirical validation on large-scale data. This leaves a gap between theory and practice, preventing generalizable insights that exceed particular application domains. Here, we propose the Generalized-Distance Transformer (GDT), a GT architecture using standard attention that incorporates many advancements for GTs from recent years, and develop a fine-grained understanding of the GDT's representation power in term…
-
Simplifying and Empowering Transformers for Large-Graph RepresentationsQi-Tian Wu, Wen-Tao Zhao, Chen-Xiao Yang et al. · 2023 · Neural Information Processing Systems · cited 343 times · Not summarized yet
Abstract
Learning representations on large-sized graphs is a long-standing challenge due to the inter-dependence nature involved in massive data points. Transformers, as an emerging class of foundation encoders for graph-structured data, have shown promising performance on small graphs due to its global attention capable of capturing all-pair influence beyond neighboring nodes. Even so, existing approaches tend to inherit the spirit of Transformers in language and vision tasks, and embrace complicated models by stacking deep multi-head attentions. In this paper, we critically demonstrate that even using a one-layer attention can bring up surprisingly competitive performance across node property predi…
-
Graph Generative Pre-trained TransformerXiaohui Chen, Yinkai Wang, Jia-Xing He et al. · 2025 · International Conference on Machine Learning · cited 25 times · Not summarized yet
Abstract
Graph generation is a critical task in numerous domains, including molecular design and social network analysis, due to its ability to model complex relationships and structured data. While most modern graph generative models utilize adjacency matrix representations, this work revisits an alternative approach that represents graphs as sequences of node set and edge set. We advocate for this approach due to its efficient encoding of graphs and propose a novel representation. Based on this representation, we introduce the Graph Generative Pre-trained Transformer (G2PT), an auto-regressive model that learns graph structures via next-token prediction. To further exploit G2PT's capabilities as a …
-
Attending to Graph TransformersLuis Müller, Mikhail Galkin, Christopher Morris et al. · 2023 · Trans. Mach. Learn. Res. · cited 143 times · Not summarized yet
Abstract
Recently, transformer architectures for graphs emerged as an alternative to established techniques for machine learning with graphs, such as (message-passing) graph neural networks. So far, they have shown promising empirical results, e.g., on molecular prediction datasets, often attributed to their ability to circumvent graph neural networks' shortcomings, such as over-smoothing and over-squashing. Here, we derive a taxonomy of graph transformer architectures, bringing some order to this emerging field. We overview their theoretical properties, survey structural and positional encodings, and discuss extensions for important graph classes, e.g., 3D molecular graphs. Empirically, we probe how…
Prior work it builds on
-
A Generalization of Transformer Networks to GraphsVijay Prakash Dwivedi, X. Bresson · 2020 · arXiv.org · preprint, not peer reviewed · cited 1,250 times · Not summarized yet
Abstract
We propose a generalization of transformer neural network architecture for arbitrary graphs. The original transformer was designed for Natural Language Processing (NLP), which operates on fully connected graphs representing all connections between the words in a sequence. Such architecture does not leverage the graph connectivity inductive bias, and can perform poorly when the graph topology is important and has not been encoded into the node features. We introduce a graph transformer with four new properties compared to the standard model. First, the attention mechanism is a function of the neighborhood connectivity for each node in the graph. Second, the positional encoding is represented …
-
Universal Graph Transformer Self-Attention NetworksDai Quoc Nguyen, T. D. Nguyen, Dinh Q. Phung · 2019 · The Web Conference · cited 94 times · Not summarized yet
Abstract
We introduce a transformer-based GNN model, named UGformer, to learn graph representations. In particular, we present two UGformer variants, wherein the first variant (publicized in September 2019) is to leverage the transformer on a set of sampled neighbors for each input node, while the second (publicized in May 2021) is to leverage the transformer on all input nodes. Experimental results demonstrate that the first UGformer variant achieves state-of-the-art accuracies on benchmark datasets for graph classification in both inductive setting and unsupervised transductive setting; and the second UGformer variant obtains state-of-the-art accuracies for inductive text classification. The code i…
-
Edge-augmented Graph Transformers: Global Self-attention is Enough for GraphsMd Shamim Hussain, Mohammed J. Zaki, D. Subramanian · 2021 · arXiv.org · preprint, not peer reviewed · cited 48 times · Not summarized yet
-
Transformers Generalize DeepSets and Can be Extended to Graphs and HypergraphsJinwoo Kim, Saeyoon Oh, Seunghoon Hong · 2021 · Neural Information Processing Systems · cited 49 times · Not summarized yet
Abstract
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 $\mathcal{O}(n^{2k})$ to the number of input nodes $n$. To address this problem, we present sparse higher-order Transformers that have quadratic complexity to …
-
Rethinking Graph Transformers with Spectral AttentionDevin Kreuzer, D. Beaini, William L. Hamilton et al. · 2021 · Neural Information Processing Systems · cited 876 times · Not summarized yet
Abstract
In recent years, the Transformer architecture has proven to be very successful in sequence processing, but its application to other data structures, such as graphs, has remained limited due to the difficulty of properly defining positions. Here, we present the $\textit{Spectral Attention Network}$ (SAN), which uses a learned positional encoding (LPE) that can take advantage of the full Laplacian spectrum to learn the position of each node in a given graph. This LPE is then added to the node features of the graph and passed to a fully-connected Transformer. By leveraging the full spectrum of the Laplacian, our model is theoretically powerful in distinguishing graphs, and can better detect sim…
Papers that cite it
-
On the Connection Between MPNN and Graph TransformerChen Cai, T. Hy, Rose Yu et al. · 2023 · International Conference on Machine Learning · cited 101 times · Not summarized yet
Abstract
Graph Transformer (GT) recently has emerged as a new paradigm of graph learning algorithms, outperforming the previously popular Message Passing Neural Network (MPNN) on multiple benchmarks. Previous work (Kim et al., 2022) shows that with proper position embedding, GT can approximate MPNN arbitrarily well, implying that GT is at least as powerful as MPNN. In this paper, we study the inverse connection and show that MPNN with virtual node (VN), a commonly used heuristic with little theoretical understanding, is powerful enough to arbitrarily approximate the self-attention layer of GT. In particular, we first show that if we consider one type of linear transformer, the so-called Performer/Lin…
-
A Survey of Graph Transformers: Architectures, Theories and ApplicationsChaohao Yuan, Kangfei Zhao, Ercan Engin Kuruoglu et al. · 2025 · Machine Learning · cited 37 times · AI summary available
Abstract
Graph Transformers (GTs) have demonstrated a strong capability in modeling graph structures by addressing the intrinsic limitations of graph neural networks (GNNs), such as over-smoothing and over-squashing. Recent studies have proposed diverse architectures, enhanced explainability, and practical applications for Graph Transformers. In light of these rapid developments, we conduct a comprehensive review of Graph Transformers, covering aspects such as their architectures, theoretical foundations, and applications within this survey. We categorize the architecture of Graph Transformers according to their strategies for processing structural information, including graph tokenization, positiona…
-
Learning Graph Quantized Tokenizers for TransformersLi-Mei Wang, Kaveh Hassani, Si Zhang et al. · 2024 · arXiv.org · preprint, not peer reviewed · cited 7 times · Not summarized yet
-
Graph Inductive Biases in Transformers without Message PassingLiheng Ma, Chen Lin, Derek Lim et al. · 2023 · International Conference on Machine Learning · cited 237 times · Not summarized yet
Abstract
Transformers for graph data are increasingly widely studied and successful in numerous learning tasks. Graph inductive biases are crucial for Graph Transformers, and previous works incorporate them using message-passing modules and/or positional encodings. However, Graph Transformers that use message-passing inherit known issues of message-passing, and differ significantly from Transformers used in other domains, thus making transfer of research advances more difficult. On the other hand, Graph Transformers without message-passing often perform poorly on smaller datasets, where inductive biases are more crucial. To bridge this gap, we propose the Graph Inductive bias Transformer (GRIT) -- a …
-
GraphGPT: Graph Learning with Generative Pre-trained TransformersQifang Zhao, Weidong Ren, Tianyu Li et al. · 2024 · arXiv.org · preprint, not peer reviewed · cited 14 times · Not summarized yet
Go further
How are these papers found?
We compare the title and abstract of this paper with those of every paper summarized on this site, and with the papers Semantic Scholar recommends, those it cites and those citing it (for a much-cited paper, its most recent citations and, from OpenAlex, the most cited ones). Among the prior work and the follow-ups, the papers that use each other in depth, a method it uses and the much-cited follow-ups come a little higher. The levels (very close, close, related) come from the similarity of the texts, not from a judgment of quality; * marks a paper without an abstract, compared by its title. The sentence under a paper is written by an AI from the two abstracts: check it in the papers. A paper marked not relevant by three readers leaves the list.
Updated on 5 November 2026.
The previous summary was created more than a year ago and can be re-run (if necessary) by clicking on the Run button below.
Disclaimer: The AI-based summarization tool and virtual assistant provided on this website may not always provide accurate and complete summaries or responses. We encourage you to carefully review and evaluate the generated content to ensure its quality and relevance to your needs.