
GINConv
Graphs and geometry13 ops1.6K params
7 models, graphs and geometry. Fewest parameters first.
GIN, the Graph Isomorphism Network, is a simple graph neural network that is provably the most expressive among the class of GNNs: as powerful as the Weisfeiler-Lehman graph isomorphism test at telling graph structures apart. The paper behind it, How Powerful are Graph Neural Networks?, builds a theoretical framework for the expressive power of GNNs and shows that popular variants such as Graph Convolutional Networks and GraphSAGE cannot distinguish certain simple graph structures.
The key insight is that a maximally powerful GNN must never map two different neighborhoods, two different multisets of feature vectors, to the same representation, so its aggregation scheme must be injective. Sum aggregation is what delivers this, since sum aggregators can represent injective, in fact universal, functions over multisets. Mean captures only the proportion of each element type in the neighborhood and max reduces the multiset to a plain set, which is why GCN-style and GraphSAGE-style aggregators fall short. In practice a multi-layer perceptron follows each summation, since MLPs can represent the composition of functions, and in the first layer no MLP is needed before the sum when inputs are one-hot, because their summation alone is injective. For graph classification the readout uses information from all depths of the model, concatenating per-layer graph summaries in the manner of Jumping Knowledge Networks.
The members traced here span the implementations in circulation: the PyTorch Geometric GIN model and its GINConv and GINEConv layers, the Open Graph Benchmark molecular baselines with and without a virtual node, and a sum-pooling network in the style of the authors' code. Some return node embeddings, which serve node classification and link prediction directly; the molecular baselines pool them into a graph-level readout and predict a label for the whole graph. One quirk the authors flag in their repository: the paper's cross-validation used only training and validation sets, with no test set, because the benchmark datasets are small.
AI-written summary; not reviewed by a person. Corrections welcome.

Graphs and geometry13 ops1.6K params

Graphs and geometry35 ops1.9K params

Graphs and geometry13 ops5.2K params

Graphs and geometry16 ops5.3K params

Graphs and geometry179 ops1.9M params

Graphs and geometry179 ops1.9M params

Graphs and geometry246 ops3.3M params