liveBook · Manning

Graph isomorphism network

As explained in Build AI Drug Discovery Pipelines

A graph isomorphism network is a graph neural network architecture designed to provide highly expressive neighborhood aggregation for distinguishing graph structures.

A graph isomorphism network (GIN) is a graph neural network architecture for learning from molecular or protein graphs. It repeatedly sums neighboring node features, combines that sum with the node’s own features, and applies a multilayer perceptron (MLP). Sum aggregation preserves more structural information than mean aggregation, while the learned ε parameter controls the contribution of the node’s existing features. section 11.4 section 11.5.4

A GIN-based prediction workflow typically follows these steps:

  • Represent molecules or proteins as graphs with node features, edge connectivity, and optional edge features. section 11.4
  • Pass neighborhood information through several GINConv layers so each node captures progressively larger chemical or structural contexts. section 11.4 section 11.5.4
  • Use the resulting graph representations in a dual-graph neural network for drug-target affinity prediction, then compare GIN with GCN and GAT variants. section 11.5.4 section 11.6
mol_nn1 = nn.Sequential(
    nn.Linear(num_features_mol, num_features_mol),
    nn.ReLU(),
    nn.Linear(num_features_mol, num_features_mol)
)
self.mol_conv1 = GINConv(mol_nn1)

A compact PyTorch definition shows how an MLP is supplied to GINConv, making the architecture directly implementable. section 11.5.4

How Build AI Drug Discovery Pipelines covers it

How deep it goes
Explains message passing, sum aggregation, ε, MLP updates, and Weisfeiler-Lehman expressiveness, but omits a full derivation.
Examples
Uses GINConv code, molecular functional-group attention as contrast, and Davis and KIBA affinity benchmarks.
What it assumes
Assumes graph-structured node features and introduces neighborhood aggregation before applying GIN to affinity prediction.
What you can do after
Apply it via PyTorch Geometric by defining GINConv layers with learned MLP updates.
How it connects
Connects GIN to graph neural networks, message passing, graph convolutional networks, graph attention networks, MLPs, and the Weisfeiler-Lehman test.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Build AI Drug Discovery Pipelines. The section links point to the parts of the book it draws on.