
EGNN layer (lucidrains)
Graphs and geometry31 ops3.2M params
A graph neural network that updates node features and coordinates and is equivariant to rotations and translations.
Graphs and geometry · 215 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.
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.
This is a full EGNN network with dimension 32, depth 3 and 8 nearest neighbors per node.
About this model's family
EGNN is a graph neural network that is equivariant to rotations, translations, reflections and permutations. Such symmetries appear in many problems, and the paper gives point clouds, 3D molecular structures and N-body particle simulations as examples. Unlike the methods it compares with, it does not need computationally expensive higher-order representations in its intermediate layers.
Each node carries a feature embedding and also an n-dimensional coordinate. The edge operation receives the relative squared distance between two coordinates along with the node embeddings and edge attributes. The position of each node is then updated by a weighted sum of its relative differences to the other nodes. The paper names this coordinate update as the main difference from standard GNNs and the reason translation and rotation equivariance are preserved.
The equivariance is not tied to three dimensions; the abstract says the model is easily scaled to higher-dimensional spaces. The paper evaluates on dynamical systems, representation learning in graph autoencoders and molecular property prediction on the QM9 dataset. In the N-body experiment it reports that the model significantly outperforms the other equivariant and non-equivariant alternatives. In the egnn-pytorch implementation, a layer takes node features and coordinates and returns both.
Key idea. The paper introduces a graph neural network equivariant to rotations, translations, reflections and permutations that needs no computationally expensive higher-order representations in its intermediate layers.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@misc{satorras2022enequivariantgraphneural,
title={E(n) Equivariant Graph Neural Networks},
author={Victor Garcia Satorras and Emiel Hoogeboom and Max Welling},
year={2022},
eprint={2102.09844},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2102.09844},
}