Graph neural networks

Molecules, citation networks and social networks have no natural order and no fixed shape. Graph neural networks pass messages along edges — and the constraints that make that work also limit what they can see.

55 min

After this lesson you can

  • Represent a graph with an adjacency matrix and a feature matrix, and name node-, edge- and graph-level tasks
  • State permutation invariance and equivariance with a permutation matrix, and explain why a plain MLP on the adjacency matrix violates them
  • Write one round of message passing, and derive the GCN's normalised propagation rule from Kipf's two fixes
  • Explain GAT's attention coefficients and how they differ from GCN's fixed weights
  • Prove that repeated GCN propagation collapses features onto one direction (over-smoothing), and say how residual connections resist it
  • State precisely what Xu et al. proved about GNNs and the Weisfeiler–Lehman test, and find two graphs no such GNN can tell apart

In this lesson

  1. The data: nodes, edges and features
  2. The inductive bias: order must not matter
  3. The architecture: passing messages
  4. GCN: the simplest rule that works
  5. GAT: let the edges have opinions
  6. Over-smoothing: why GNNs are shallow
  7. Expressivity: what message passing cannot see
  8. How GNNs are evaluated
  9. Open problems

This lesson is part of Descent Pro

Descent Pro unlocks every lesson on the route, from base camp to the summit. Every plan starts with a free trial.

Descent Pro

Start your free trial to keep reading

This lesson, and every other lesson on the route, is part of Descent Pro. Every plan starts with a free trial, and students with a .edu email get longer. Cancel before the trial ends and you pay nothing.