All models

GRUAggregation

A GRU that reads a graph's node features as a sequence and keeps the last state as the readout.

Graphs and geometry · 33 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 (37 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
4.8K
Operations
33
Framework
PyTorch
Recurrent
No
Published
NeurIPS 2022
Cited by
33 (as of 18 October 2026)
Authors
David Buterez, Jon Paul Janet, Steven J. Kiddle 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
m1166
Graph hash
51caec97d524b00108a4b124257ca6ac1fe96f102bc547af58aee6ee26e25d5a
Skeleton hash
4c848f12909cffaffce017450aeef2d53ffb0208125d570ea53384099f7f9f34
Architecture hash
2797b9d6d572828ccb9255c94a022470601481260fd3770c0650fc303589e2e0
Diagram SHA-256
d6de638fd946c8dcf94969f46722770451ffa61932b14baef5065ccd105079e5
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

GRUAggregation is the gated recurrent unit readout from Graph Neural Networks with Adaptive Readouts: the elements to aggregate are interpreted as a sequence, and a recurrent network, rather than a fixed sum, mean or max, folds them into a single vector. The paper's starting point is that simple, permutation-invariant readouts might require complex node embeddings that can be difficult to learn via standard neighborhood aggregation schemes. The authors argue that in problems such as binding affinity prediction, where molecules arrive in a canonical form, it might be possible to relax the constraints on permutation invariance of the hypothesis space.

In the paper the GRU neural readout is composed of a single-layer, unidirectional gated recurrent unit that accepts the input order of the graph nodes as the sequence order. The graph-level representation created by this readout is given by the last element of the output sequence. The captured PyTorch Geometric module does the same, returning the final step of the GRU output for each group. Two warnings ship with the library version: it requires sorted indices as input, and it is not a permutation-invariant operator.

Across more than 40 datasets the paper reports a consistent improvement over standard readouts (sum, max and mean) relative to the number of neighborhood aggregation iterations and across different convolutional operators. The adaptive readouts were later made available directly in PyTorch Geometric 2.3.0 as aggregation operators.

Key idea. Adaptive neural readouts, including this GRU readout, that trade strict permutation invariance for a learned, more expressive graph-level aggregation.

  • GRUAggregation
  • GRU readout
  • adaptive GRU readout
  • adaptive readouts
  • neural readout
  • Graph Neural Networks with Adaptive Readouts
  • graph readout
  • PyTorch Geometric
  • Buterez

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

Cite the paper

@misc{buterez2022graphneuralnetworksadaptive,
      title={Graph Neural Networks with Adaptive Readouts}, 
      author={David Buterez and Jon Paul Janet and Steven J. Kiddle and Dino Oglic and Pietro Liò},
      year={2022},
      eprint={2211.04952},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/2211.04952}, 
}