GPSE
A deep gated message passing encoder that learns graph positional and structural encodings from random node features.
Graphs and geometry · 536 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.
At a glance
- Task
- Graphs and geometry
- Parameters
- 21M
- Operations
- 536
- Framework
- PyTorch
- Recurrent
- No
- Published
- ICML 2024
- Cited by
- 3 (as of 22 October 2026)
- Authors
- Semih Cantürk, Renming Liu, Olivier Lapointe-Gagné and others
- Source
- torch_geometric 2.7.0
- License
- MIT
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
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.
Details
- Stable ID
- m1152
- Graph hash
- 5d6e107082a3871aa57c44f0b4a1dd4200dce952037089436ad4190016856d04
- Skeleton hash
- ba2257ed8348983c19ad7d5b713ed56ec893b7de2151cbd51f6c2deef1e4cd3f
- Architecture hash
- d86eb0124c518739848e755a9ccf6c9769c98a78e551e3a50d178fa957da9713
- Diagram SHA-256
- 8cdd94170c2ee17b6bdb23e96c28a1cf0b8723dea5e487f2bf735d473a793c95
- 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
GPSE, the Graph Positional and Structural Encoder, is a graph neural network that reads only a graph's structure and produces a node embedding meant to stand in for hand-made positional and structural encodings (PSEs) in any downstream GNN. The problem it addresses is that designing PSEs that work optimally for all graph prediction tasks is a challenging and unsolved problem. Instead of computing each encoding by hand, GPSE learns an efficient common latent representation for multiple PSEs.
The model is a message passing network of stacked graph convolution blocks with residual gating and skip connections, made unconventionally deep at 20 layers to capture the long-range dependencies that encodings like Laplacian eigenvectors need. Its input is unusual: given a query graph, a k-dimensional feature is drawn from a standard normal distribution for each node, and that random feature is what the network transforms. A virtual node connected to all nodes enables global message passing and faster propagation of information between distant nodes. Training is self-supervised: the representations are decoded into the target PSEs by independent MLP heads, one per PSE, with a reconstruction loss that sums an l1 and a cosine similarity loss.
The paper pre-trains on MolPCBA, 323,555 unique molecular graphs averaging 25 nodes, and reports the encoder transfers to datasets from markedly different distributions. Its headline result is GPSE-augmented GPS reaching 0.0648 MAE on ZINC.
Key idea. A deep gated message passing encoder fed random node features can learn one latent representation of many positional and structural encodings and transfer it across graph datasets.
- gpse
- graph positional and structural encoder
- positional encoding
- structural encoding
- graph encoder
- gnn
- message passing
- graph transformer
- laplacian eigenvectors
- random walk encoding
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{cantürk2024graphpositionalstructuralencoder,
title={Graph Positional and Structural Encoder},
author={Semih Cantürk and Renming Liu and Olivier Lapointe-Gagné and Vincent Létourneau and Guy Wolf and Dominique Beaini and Ladislav Rampášek},
year={2024},
eprint={2307.07107},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2307.07107},
}