
GCNConv
Graphs and geometry33 ops544 params
Kipf and Welling's graph convolution: normalise the adjacency, propagate, apply a weight matrix.
Graphs and geometry · 67 operations Checked
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.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
A plain stack of GCNConv layers, the graph convolutional operator from the paper, assembled by the adapter.
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.
AI-written summary, checked automatically against its sources; not reviewed by a person. Corrections welcome.
@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},
}