
GraphGPS
Graphs and geometry89 ops41.9K params
A graph Transformer layer design that combines local message passing with global attention.
Graphs and geometry · 1,347 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
This model fills the second and third ingredients of the GPS recipe with GCN for local message passing and a BiasedTransformer for global attention.
About this model's family
GraphGPS is a recipe for building graph Transformers, where GPS stands for general, powerful, scalable. The paper is a response to a field in which graph Transformers had become popular but lacked a common foundation about what makes a good positional or structural encoding.
The recipe consists of choosing three main ingredients: a positional or structural encoding, a local message-passing mechanism and a global attention mechanism. Message passing over the real edges of the graph is decoupled from the fully-connected Transformer, and the paper states that this gives a complexity linear in the number of nodes and edges. The authors argue that the decoupling does not negatively affect expressivity.
The GraphGPS package implements the recipe with several encodings and model choices. For local message passing it lists GatedGCN, GINE and PNA, and for global attention it lists Transformer, Performer and BigBird. The paper reports tests on 16 benchmarks.
Key idea. GraphGPS is a modular framework for graph Transformers that combines positional or structural encodings, local message passing and global attention, with complexity linear in the number of nodes and edges.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@misc{rampášek2023recipegeneralpowerfulscalable,
title={Recipe for a General, Powerful, Scalable Graph Transformer},
author={Ladislav Rampášek and Mikhail Galkin and Vijay Prakash Dwivedi and Anh Tuan Luu and Guy Wolf and Dominique Beaini},
year={2023},
eprint={2205.12454},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2205.12454},
}