All models

GraphGPS-GPS-GCN-BiasedTransformer

A graph Transformer layer design that combines local message passing with global attention.

Graphs and geometry · 1,347 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (13 KB)

Open in a new tab

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.

At a glance

Family
GraphGPS
Parameters
387.1K
Operations
1,347
Framework
PyTorch
Recurrent
No
Published
NeurIPS 2022
Cited by
330 (as of 22 October 2026)
Authors
Ladislav Rampášek, Mikhail Galkin, Vijay Prakash Dwivedi and others
License
MIT
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m1237
Graph hash
c6c9a09c2a5b6e6d61f903ff406c02a5a8cdf23e1fdd83ae1b0b1d1db2a2b269
Skeleton hash
994ebe4da48d2c74b266be7b4b0d0ed49f0fe1351d345dd3dd44436382245fd5
Architecture hash
2702999aac7a152f93cca516c8d4cc0151cda97f45b7c58396160c4e00055503
Diagram SHA-256
bb6d40be54e6ad54d5ced1c35a3077c982cf778219d1bf135b1bd80e6929d48d
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

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.

  • graphgps
  • gps
  • gpsconv
  • general powerful scalable graph transformer
  • graph transformer
  • gps layer
  • positional encoding
  • structural encoding
  • message passing
  • global attention

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@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}, 
}