All models

GCN

Kipf and Welling's graph convolution: normalise the adjacency, propagate, apply a weight matrix.

Graphs and geometry · 69 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (44 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Family
GCN
Parameters
1.6K
Operations
69
Framework
PyTorch
Recurrent
No
Published
ICLR 2017
Cited by
7,964 (as of 4 October 2026)
Authors
Thomas N. Kipf, Max Welling
License
MIT
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m1111
Graph hash
d908035a653f5a501c5b16c5903ddebce0993e037134168a4a969fd176c64c02
Skeleton hash
8a0c8330089dd8f1566e4b3557e22e4b9fe2b59e107b71c6c88a713c0d5a5cce
Architecture hash
48eb4b7b8015732050a679fe2b04791e3b69b1542f01a12045624eea436e9cd9
Diagram SHA-256
f4d7c5aae5f064b3a29c91cfb9b2d08e520b942bcdb646a73b65fc10ba3cd634
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

PyTorch Geometric's GCN model, the paper's network using the GCNConv operator for message passing, with out_channels unset so it returns hidden node embeddings.

About this model's family

GCN is the graph convolutional network of Thomas N. Kipf and Max Welling: a scalable approach to semi-supervised learning on graph-structured data, built from an efficient variant of convolutional networks that operate directly on graphs. The architecture is motivated by a localized first-order approximation of spectral graph convolutions, and the model scales linearly in the number of graph edges. It was published as a conference paper at ICLR 2017.

One layer is a single rule: the adjacency matrix of the undirected graph gets added self-connections, is normalised by degree, and multiplies the node features before a layer-specific trainable weight matrix and an activation such as ReLU. The paper calls that normalisation its renormalization trick, introduced because repeated application of the un-normalised operator can lead to numerical instabilities and exploding or vanishing gradients in a deep model. Stacking layers widens each node's view one hop at a time: a GCN with K layers depends on the K-th order neighbourhood.

The paper's own forward model for semi-supervised node classification is a two-layer GCN, an input-to-hidden weight matrix for a hidden layer followed by a hidden-to-output one. It was tested on the citation networks Citeseer, Cora and Pubmed and on NELL, a dataset extracted from a knowledge graph, with 16 hidden units for the citation datasets. The reference implementation was written in TensorFlow using sparse-dense matrix multiplications, and the author's later PyTorch re-implementation warns of subtle differences from it.

The captures here come from PyTorch Geometric: GCNConv, the graph convolutional operator from the paper, and GCN, the library's model that uses the GCNConv operator for message passing. In these captures out_channels is left unset, so the GCN model returns hidden node embeddings rather than class scores.

Key idea. A simple, well-behaved layer-wise propagation rule for neural networks that operate directly on graphs, motivated by a first-order approximation of spectral graph convolutions, which makes semi-supervised node classification fast and scalable.

  • gcn
  • graph convolutional network
  • gcnconv
  • graphconv
  • kipf welling
  • semi-supervised classification
  • node classification
  • pytorch geometric
  • citation network
  • cora

AI-written summary, checked automatically against its sources; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{kipf2017semisupervisedclassificationgraphconvolutional,
      title={Semi-Supervised Classification with Graph Convolutional Networks}, 
      author={Thomas N. Kipf and Max Welling},
      year={2017},
      eprint={1609.02907},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/1609.02907}, 
}