MLPAggregation
A graph readout that flattens all node features and learns the pooling with a two-layer MLP.
Graphs and geometry · 36 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
- 271.2K
- Operations
- 36
- Framework
- PyTorch
- Recurrent
- No
- Published
- NeurIPS 2022
- Cited by
- 33 (as of 19 October 2026)
- Authors
- David Buterez, Jon Paul Janet, Steven J. Kiddle and others
- Source
- torch_geometric 2.6.1
- 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
- m1668
- Graph hash
- 197e51c8035412ab4176c755691b9de5c8adb243874f0fbb2dc59ec5748eddeb
- Skeleton hash
- db7834ca69630fab5cef5b7575ed76b5fa8160fc200282407b738167c51f1adc
- Architecture hash
- ab8697a923f56de00eaada30d5cb2a3a701f228b2270b6476915afff390355aa
- Diagram SHA-256
- 23b8a4c6a47968fd317d5e13380d9554bbaa31cdf9963596e732da86039db3d1
- 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
The MLP aggregation is a learned readout for graph neural networks: the node features of a graph are flattened into a single vector and then processed by a multi-layer perceptron. It comes from the paper Graph Neural Networks with Adaptive Readouts, which studies replacing the usual non-adaptive readouts, sum, max and mean, with readouts given by neural networks. In problems such as binding affinity prediction, where molecules are presented in a canonical form, the authors argue it may be possible to relax permutation invariance and learn a more effective model.
The node feature matrix is padded with zeros up to the maximal number of nodes a graph can have in the dataset, then flattened. The paper's MLP readout is a two-layer fully connected network applied to that flattened node feature matrix. In the experiments, Bernoulli dropout with rate 0.4 is the last operation within the MLP, which matches the operator on this page. This operator is not permutation invariant.
Across more than 40 datasets, the paper reports a consistent improvement over standard readouts regardless of the number of aggregation iterations and the convolutional operator. On AstraZeneca's multi-million scale screening datasets, only plain MLP readouts significantly improved performance. The adaptive readouts were later added to PyTorch Geometric 2.3.0 as aggregation operators.
Key idea. The paper shows that learned neural readouts, including a plain MLP over flattened node features, consistently beat sum, max and mean pooling across more than 40 graph datasets.
- mlp aggregation
- mlpaggregation
- mlp readout
- adaptive readout
- neural readout
- graph readout
- graph pooling
- adaptive readouts
- graph neural networks with adaptive readouts
- readout function
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},
}