Skip to main content
QUICK REVIEW

[Paper Review] Graph Inductive Biases in Transformers without Message Passing

Liheng Ma, Chen Lin|arXiv (Cornell University)|May 27, 2023
Advanced Graph Neural NetworksComputer Science15 citations
TL;DR

GRIT introduces a Graph Transformer that leverages learned relative random-walk positional encodings, a dual node and node-pair attention mechanism, and degree information to enable graph inductive biases without explicit message passing, achieving state-of-the-art results across small to large graph datasets.

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 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.

Motivation & Objective

  • Motivate and address the gap where graph Transformers without message passing underperform on small datasets yet lack graph inductive biases when using pure attention.
  • Propose GRIT as a non-message-passing Graph Transformer with graph inductive biases.
  • Theoretically justify and empirically validate design choices that enable expressiveness and practical performance on graph tasks.

Proposed method

  • Introduce learned relative positional encodings initialized with random walk probabilities (RRWP) to capture graph structure.
  • Develop a flexible attention mechanism that jointly updates node and node-pair representations and can update RRWP encodings.
  • Inject degree information per layer via degree scalers and replace layer norm with batch normalization to preserve degree information.
  • Prove that RRWP with an MLP updater is expressive enough to approximate shortest path distances and various graph propagation matrices.
  • Provide ablations and synthetic experiments to justify design choices and demonstrate state-of-the-art performance across datasets.

Experimental results

Research questions

  • RQ1Can GRIT express common graph propagation matrices and shortest-path distances through RRWP with learned updates?
  • RQ2Does jointly updating node and node-pair representations improve the model's ability to leverage graph structure without message passing?
  • RQ3How does incorporating degree information and alternative normalization affect expressiveness and performance in Graph Transformers without MPNNs?

Key findings

  • GRIT achieves state-of-the-art empirical performance across a variety of graph benchmarks, including small-to-medium and large-scale datasets.
  • RRWP with an MLP updater can approximate SPD distances and several graph propagations, making RRWP strictly more expressive than SPD in GD-WL analyses.
  • The proposed attention mechanism that updates node and node-pair representations can learn to update positional encodings, enhancing expressiveness.
  • Incorporating degree information with degree scalers and batch normalization preserves useful degree signals and improves performance.
  • Ablation studies show removing degree scalers, RRWP updates, or using alternative attention/matching encodings degrades performance, supporting the effectiveness of GRIT’s design choices.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.