Semi-Supervised Classification with Graph Convolutional Networks (GCN)

GCN banner Kaggle

Summary

The paper classifies nodes in a graph when only a few nodes have labels. It uses a neural network layer that mixes each node’s features with its neighbours’ features through a normalised adjacency matrix. A two-layer version of this Graph Convolutional Network (GCN) reached 70.3% accuracy on Citeseer, 81.5% on Cora, 79.0% on Pubmed and 66.0% on NELL, ahead of the baselines it was compared with (Section 6.1, Table 2).

What Problem Does It Solve

In many graphs, such as citation networks, most nodes have no label, but linked nodes often share a label. Earlier graph-based methods added a graph Laplacian penalty to the loss, which assumes that connected nodes are likely to share the same label; the paper notes that edges need not encode similarity (Section 1, Eq. 1). The GCN instead feeds the graph into the model itself, so the model learns from both the node features and the links, and the gradient from a few labelled nodes also shapes the representations of the unlabelled ones (Section 1).

Core Idea

Spectral graph convolutions multiply a signal by a filter in the eigenbasis of the graph Laplacian (Section 2.1). The paper keeps only the first-order term of a Chebyshev approximation of that filter and uses a single parameter per filter (Section 2.2). To keep repeated application stable, it uses the renormalisation trick: Ã = A + I and the propagation matrix D̃^(−1/2) Ã D̃^(−1/2) (Section 2.2, Eq. 8). Each layer then computes H’ = σ(D̃^(−1/2) Ã D̃^(−1/2) H W), which costs time linear in the number of edges (Section 3.2).

Key Method Details

  • Model: two layers, Z = softmax( ReLU( X W⁽⁰⁾) W⁽¹⁾) with  = D̃^(−1/2) à D̃^(−1/2) precomputed once (Section 3.1, Eq. 9).
  • Loss: cross-entropy over the labelled nodes only (Section 3.1, Eq. 10).
  • Training: Adam with learning rate 0.01, up to 200 epochs, early stopping with a window of 10 epochs, Glorot initialisation, dropout 0.5, L2 regularisation 5 · 10⁻⁴ on the first layer, 16 hidden units (Section 5.2).
  • Data: Citeseer, Cora and Pubmed with 20 labels per class, and NELL with one label per class (Section 5.1).
  • Propagation models: the renormalised matrix beat Chebyshev filters, the first-order model, the single-parameter model and an MLP on all three citation datasets (Section 6.2, Table 3).

Simplifications in This Notebook

  • Graph: Zachary’s karate club (34 nodes) from networkx, unweighted, with one-hot node features (X = I).
  • Labels: the 2 factions from the club attribute, not the 4 modularity-based classes in the paper’s karate club example (Appendix A.1).
  • Training: NumPy with a hand-written backward pass and Adam; 3 labelled nodes per class, 200 epochs, no dropout, no early stopping, one seed.

What the Notebook Result Shows

  • The earlier version failed: its saved run predicted the same class for every node (accuracy 0.50). An unmasked output gradient, weighted edges and gradient descent at learning rate 0.5 were the cause. After the fix the analytic gradient matches a numerical gradient (max error 9.96e-11).
  • The fixed GCN works on this graph: with 6 labelled nodes it reaches 0.8214 accuracy on the 28 unlabelled nodes (0.8529 on all 34). The same model without the graph scores 0.5000.
  • The paper’s normalisation is not shown to be better here: symmetric normalisation, no self-loops and row normalisation all reach 0.8214, and plain A + I reaches 0.9286, in one run on a 34-node graph.

Influence

The authors released a TensorFlow implementation (tkipf/gcn), and Kipf wrote an explanatory blog post. PyTorch Geometric’s GCNConv layer implements the paper’s propagation rule. OpenAlex lists about 46,300 citations (46,281 when checked on 3 December 2026).


Resources

File Description
README.md This overview — a 5-minute read covering the paper’s summary, core idea, key method details, influence, and a plain-English explanation of the problem it solves
solution.ipynb From-scratch NumPy two-layer GCN on the karate club graph, with a gradient check, a label-count sweep and a propagation-matrix ablation
CODE_ARCHITECTURE.md Section-by-section breakdown of the notebook — what each cell does, data flow, tensor shapes, and key design decisions
TALK.md Press coverage, Q&A (answers from the paper), citations, and common misconceptions about the paper

Table of contents