Pure Transformers are Powerful Graph Learners
Jinwoo Kim, Tien Dat Nguyen, Seonwoo Min, Sungjun Cho, Moontae Lee,, Honglak Lee, Seunghoon Hong

TL;DR
This paper demonstrates that standard Transformers, when applied to graph data with simple tokenization, can match or surpass the expressiveness of specialized graph neural networks and achieve strong empirical results.
Contribution
It introduces TokenGT, a simple yet powerful graph learning method using standard Transformers with token embeddings, showing theoretical and practical advantages over existing GNNs.
Findings
TokenGT matches the expressiveness of 2-IGNs.
TokenGT outperforms GNN baselines on large-scale datasets.
TokenGT achieves competitive results with graph-specific Transformer models.
Abstract
We show that standard Transformers without graph-specific modifications can lead to promising results in graph learning both in theory and practice. Given a graph, we simply treat all nodes and edges as independent tokens, augment them with token embeddings, and feed them to a Transformer. With an appropriate choice of token embeddings, we prove that this approach is theoretically at least as expressive as an invariant graph network (2-IGN) composed of equivariant linear layers, which is already more expressive than all message-passing Graph Neural Networks (GNN). When trained on a large-scale graph dataset (PCQM4Mv2), our method coined Tokenized Graph Transformer (TokenGT) achieves significantly better results compared to GNN baselines and competitive results compared to Transformer variants with sophisticated graph-specific inductive bias. Our implementation is available at…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
Taxonomy
TopicsAdvanced Graph Neural Networks
MethodsAttention Is All You Need · Linear Layer · Laplacian EigenMap · Softmax · Multi-Head Attention · Residual Connection · Dense Connections · Position-Wise Feed-Forward Layer · Adam · Dropout
