Graph Neural Networks
This section covers networks whose input is a graph: nodes joined by edges, with a feature vector on each node. Molecules, social networks and road maps all have this form. A CNN relies on a fixed grid, and a general graph has none. A graph network therefore applies the same update at every node and combines the neighbors without an order. 6.1.1. Message Passing defines this update and its properties. 6.1.2. Graph Convolutional Networks writes the update as one matrix product with a normalized adjacency matrix. 6.1.3. Graph Pooling shrinks a graph to fewer nodes or to one vector, for graph-level outputs. All three notes use the same five-node graph, a triangle with a two-edge tail.
Prerequisites
- 3.1 Graph, for adjacency matrices, degrees and walks.
- 5.2.1. Convolutional Layer, the grid case that message passing generalizes.
- 5.2.1b. Equivariance and Invariance, for the symmetry argument behind the aggregators.
- 2. Neural Networks, for MLPs and backpropagation.
Contents
- 6.1.1. Message Passing: graph types and edge labels, the three task levels, the message-passing update, aggregators, permutation equivariance, -hop neighborhoods and walk counts with , the image as a labeled graph, oversmoothing, oversquashing, normalization on graphs and masked nodes. Not taught: edge and global vectors, walk counts with , and the comparison of aggregators. Shortest paths with a min aggregator come from discussion.
- 6.1.2. Graph Convolutional Networks: the GCN layer, self-loops, sum, mean and symmetric propagation matrices, their spectra, oversmoothing in linear GCNs, inductive and transductive learning, and one-hot inputs. Not taught: the matrix form and the named propagation matrices, the renormalization trick, graph attention, batching graphs, and edge graphs.
- 6.1.3. Graph Pooling: readouts, the global node, DiffPool with its assignment matrix, the link and entropy losses, and why hard clustering blocks gradients. Not taught: the separate embedding GNN of the DiffPool paper, and other pooling layers such as SortPool.
Recommended Path
Read 6.1.1. Message Passing first, since the other notes specialize its update. Then read 6.1.2. Graph Convolutional Networks, whose examples compute oversmoothing on small graphs. Read 6.1.3. Graph Pooling last. Masked nodes return in 8.1. Self-Supervised Learning as a pretext task.