Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Graph Inductive Biases in Transformers without Message Passing

About

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 new Graph Transformer that incorporates graph inductive biases without using message passing. GRIT is based on several architectural changes that are each theoretically and empirically justified, including: learned relative positional encodings initialized with random walk probabilities, a flexible attention mechanism that updates node and node-pair representations, and injection of degree information in each layer. We prove that GRIT is expressive -- it can express shortest path distances and various graph propagation matrices. GRIT achieves state-of-the-art empirical performance across a variety of graph datasets, thus showing the power that Graph Transformers without message-passing can deliver.

Liheng Ma, Chen Lin, Derek Lim, Adriana Romero-Soriano, Puneet K. Dokania, Mark Coates, Philip Torr, Ser-Nam Lim• 2023

Related benchmarks

TaskDatasetResultRank
Graph Classificationogbg-molpcba (test)
AP23.62
206
Graph RegressionZINC (test)
MAE0.059
204
Graph RegressionPeptides struct LRGB (test)
MAE0.246
178
Graph RegressionZINC 12K (test)
MAE0.059
164
Graph ClassificationCIFAR10 (test)
Test Accuracy76.468
139
Graph ClassificationPeptides-func LRGB (test)
AP0.6988
136
Node ClassificationCLUSTER (test)
Test Accuracy80.026
113
Graph ClassificationMNIST (test)
Accuracy98.108
110
Graph ClassificationCIFAR10
Accuracy76.468
108
Graph RegressionZINC
MAE0.059
96
Showing 10 of 30 rows

Other info

Code

Follow for update