All models

GPSENodeEncoder

A small encoder that joins precomputed GPSE positional and structural encodings to a graph's node features.

Graphs and geometry · 8 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

Parameters
12.5K
Operations
8
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
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
m1154
Graph hash
521ce9fa8b70c91b4066bb5c79eaed3937b500dc7c6cc67b8d43da510216dec2
Skeleton hash
0421046b27941a970821107bf7fa36aa2b02fc5341ee4d3d2ed2a70e80ef4166
Architecture hash
3e2e3b87f04ffcbeedb5853b1df69961d00976b7e1979f6441453e5dfcaa605b
Diagram SHA-256
44b4ab68c82aed16ed9e19335c3abe08a52107e839e0390f318fe80d884f2103
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 is the component that brings encodings from the Graph Positional and Structural Encoder (GPSE) into a downstream graph network, where they take the place of traditional positional and structural encodings. Positional and structural encodings (PSE) are extra node descriptors that make the nodes of a graph easier to tell apart, and GPSE is a graph encoder designed to produce them for any GNN. The paper trains GPSE to reconstruct a collection of established encodings as self-supervision, then runs it in inference mode to extract encodings for a downstream dataset.

On the downstream side the extracted encodings go through a processing encoder, and the paper tunes its type, its output dimensions, its input and output dropout and whether batch normalization is applied to the incoming encodings. In the paper's MoleculeNet experiments, the representations extracted from GPSE are concatenated with the atom embeddings and then fed into a GINE model. The paper also validates the encodings with other graph Transformers and message-passing networks, and concludes that their utility is not bound to one architecture. The official GPSE repository notes that downstream GPSE usage was being integrated into PyG.

Key idea. The paper built GPSE, a graph encoder that learns a common latent representation for multiple positional and structural encodings and can augment any GNN.

  • gpse node encoder
  • gpsenodeencoder
  • gpse encodings
  • positional and structural encodings
  • graph positional encoding
  • structural encoding
  • pse
  • node encoder

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