liveBook · Manning

Graph convolution

As explained in Build AI Drug Discovery Pipelines

A graph convolution is a graph-neural-network operation that updates each node representation by combining information from neighboring nodes and typically the node itself.

A graph convolution updates each node by combining its neighbors’ representations with its own. Degree-normalized aggregation, shared weights, and a nonlinearity such as ReLU let one layer process graphs of different sizes while respecting neighbor-order invariance. section 11.4

A practical graph-convolution workflow uses:

  • Self-loops, so each node contributes its current representation during aggregation. section 11.4
  • Permutation-invariant summation or averaging, because graph neighbors have no natural order. section 11.4
  • PyTorch Geometric tensors: edge_index stores connections, x stores node features, and edge_attr optionally stores edge features. section 11.4
  • Global pooling by mean, sum, or maximum to produce a fixed-size molecular or protein embedding. section 11.4
hi(k+1) = σ( W(k) AGG( { hj(k) : j ∈ N(i) ∪ {i} } ) )

The update equation makes the neighborhood aggregation, learned shared transformation, and nonlinear activation explicit. section 11.4

How Build AI Drug Discovery Pipelines covers it

How deep it goes
Explains normalized aggregation, self-loops, shared weights, activation, and pooling, while deferring batched graph packing.
Examples
Uses edge_index, node-feature matrices, optional edge features, GCN updates, and molecular or protein graph pooling.
What it assumes
Assumes graphs with nodes, neighbors, and node vectors, while defining aggregation, self-loops, and graph-level pooling.
What you can do after
Apply graph convolutions via PyTorch Geometric tensor conventions and combine node vectors into fixed-size graph embeddings.
How it connects
Connects graph neural networks with message passing, self-loops, permutation invariance, global pooling, and graph isomorphism networks.

Also explained in

Compare how 3 books explain graph convolution →

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.