/knowledge/notes/graph-convolution-layer
Concept note · ML
Graph Convolution Layer
Graph Neural Networks
- Studied
- Statistical Machine LearningCOMP90051
- When
- 2023 S1
- Applied in
- Studied
- Read / Refreshed
- ~5 min read2026-10-15
Graph data—molecules, social networks, citations—has no fixed grid. A graph convolution layer averages each node's features with its neighbours, weighted by degree, to build representations that respect graph structure. The operation is matrix multiplication with a renormalised adjacency matrix.
01
The idea
The core operation is H^(l+1) = σ(D̃^(-1/2) Ã D̃^(-1/2) H^(l) W^(l)), where à = A + I adds self-loops (a node is its own neighbour), D̃ is the diagonal degree matrix of Ã, and the D̃^(-1/2) terms normalise by degree. The result: each node's new features are a weighted sum of its old features and its neighbours', passed through a learned weight matrix and non-linearity.
Without normalisation, high-degree nodes dominate. With symmetric normalisation, each neighbour contributes proportionally to its degree. Stacking layers lets information propagate: a 3-layer GCN sees 3-hop neighbours.
02
The maths
03
Try it
04
Where I used it
05
Easy to get wrong
06
Sources
COMP90051 (2023). GCN architectures and applications for node classification on graphs.