- Introduced by
- Kipf, T. N. & Welling, M. (canonical formulation); Zhou et al. (label propagation precursor)
- Year
- 2017 (GCN formulation); 2004 (label propagation roots)
- Type
- Semi-supervised graph representation learning
- Family
- Deep learning / NLP / CV
What does it do?
A semi-supervised graph neural network trains a graph neural network on data where only a small fraction of nodes have labels.
Neighbourhood message passing carries information from labeled nodes to unlabeled ones. The approach is associated with the Graph Convolutional Network of Kipf and Welling (2017), which reported strong node-classification results when labeled examples are scarce.
The intuition behind the method
Consider a social network in which a handful of users have known interests. The method assumes that connected users often share properties. Each layer updates a node by combining its own features with an aggregated summary of its neighbours, so information from the few labeled nodes can reach nodes further away over several layers. Training uses the loss only on labeled nodes, but each node's learned representation depends on its neighbourhood, so the unlabeled nodes still shape the model through the graph structure.
History
Label-propagation ideas on graphs, linked on this page to Zhou et al. (2004), predate the deep formulation. Kipf and Welling (2017, ICLR) introduced the graph convolutional layer described here and reported node-classification results on Cora, Citeseer and PubMed with as few as 20 labels per class. Later inductive and aggregation variants include GraphSAGE (2017), GAT (2018) and GIN (2019).
When to use it
Use a semi-supervised GNN when the data are naturally graph-structured, for example citation networks, social networks, knowledge graphs, molecular graphs or user-item interaction graphs, and when labels are expensive or sparse. The method relies on the assumption that connected nodes tend to share classes, so it is best suited to homophilous graphs. Do not use it when connected nodes typically belong to different classes, when the graph is very small, or when no reliable graph exists and a constructed graph would be mostly noise. For tabular data without a meaningful graph structure, standard supervised models are usually the more natural choice.
Limitations and considerations
- The GCN formulation is transductive: it requires the full graph at training time, and new nodes added later need graph context before they can be classified.
- Its neighbourhood averaging assumes homophily, so accuracy tends to drop on heterophilic graphs where connected nodes belong to different classes.
- Each layer repeatedly multiplies by the normalised adjacency matrix, so deep stacks tend to make node representations over-smooth and hard to distinguish.
- When the graph is constructed from non-graph data, the construction choice (for example the number of neighbours in a k-NN graph) strongly influences the results.
- The method relies on several assumptions: homophily, a reliable and correctly specified graph, labeled nodes that are representative of the whole graph, and node features that carry useful class information. When these fail, performance can degrade even if the model is trained correctly.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Uses both the graph topology and the node features, so the two sources of information are combined in the same model.
- The symmetric degree normalisation in the propagation rule scales each neighbour's contribution by the degrees of both endpoints, which reduces, but does not eliminate, the influence of high-degree nodes on their neighbourhoods.
- Kipf and Welling (2017) reported strong node-classification results with as few as 20 labels per class on Cora, Citeseer and PubMed under their transductive setting. These are specific citation benchmarks, and similar results may not transfer to other graphs.
- The learned node representations can be reused for related tasks such as link prediction or graph classification.
Applications
- Node classification in citation networks and knowledge graphs with few labeled nodes.
- Community detection and user-interest prediction in social networks.
- Molecular property prediction where labeled compounds are limited.
- Fraud and anomaly detection in transaction graphs with few confirmed labels.
- Recommendation settings where user-item interaction graphs are only partially labeled.
How it works
How it works
The input is a graph G = (V, E) with an adjacency matrix A and a node-feature matrix X. If no graph is given, one can be built from pairwise similarities: each node is connected to its k most similar nodes under a stated similarity measure, for example a k-nearest-neighbour graph on feature vectors, and the resulting edges are usually symmetrised so that the adjacency matrix is undirected. Only a subset V_L of nodes carries class labels; the remaining nodes are unlabeled during training. The quality of the constructed graph therefore directly affects what the model can learn.
At each layer, every node aggregates feature vectors from its immediate neighbours and combines them with its own features through a learnable weight matrix. In the GCN formulation, H^(l+1) = sigma(D_tilde^(-1/2) A_tilde D_tilde^(-1/2) H^(l) W^(l)), where A_tilde is the adjacency matrix with self-loops added and D_tilde is its degree matrix. The symmetric normalisation scales each neighbour's contribution by the degrees of both endpoints. Stacking layers lets information travel several hops across the graph.
Formula
H^{(l+1)} = \sigma\!\left(\tilde{D}^{-1/2}\tilde{A}\tilde{D}^{-1/2}H^{(l)}W^{(l)}\right)The cross-entropy loss is computed only over labeled nodes: L = -sum over labeled nodes v and classes c of Y_vc * ln(Z_vc), where Z_vc is the predicted probability of class c for node v. Unlabeled nodes contribute to the loss only indirectly, through their influence on the representations of labeled nodes in the forward pass.
Formula
\mathcal{L} = -\sum_{v \in \mathcal{V}_L} \sum_{c} Y_{vc}\ln Z_{vc}In the GCN formulation, label information reaches unlabeled nodes through repeated neighbourhood aggregation in the message-passing layers during training and prediction, rather than through an iterative label-spreading procedure as in the classical method of Zhou et al. (2004).
A final softmax layer produces class-probability vectors for all nodes in one forward pass over the graph. The GCN formulation is transductive: the full graph, including the unlabeled nodes to be predicted, is used during training. Predicting for nodes that were absent during training requires either retraining or an inductive variant such as GraphSAGE.
Common pitfalls
- Selecting hyperparameters on a validation set drawn from a very small number of labels, which gives noisy estimates of generalisation.
- Stacking many layers, which causes over-smoothing through repeated application of the normalised adjacency matrix.
- Ignoring class imbalance among the few labeled nodes, which can bias the decision boundary toward the more frequent class.
- Treating the model as inductive when deployment requires predicting on new nodes without access to the training graph.
- Reporting a single random split and seed. With few labels, results vary across splits, so use several fixed random splits with multiple seeds, report the mean and spread, and compare against a feature-only supervised baseline.
Frequently asked questions
How many labeled nodes are typically needed?
Kipf and Welling reported strong results on standard citation benchmarks with as few as 20 labeled nodes per class, and accuracy generally improves as more labels are added. The number needed depends on graph size, how informative the node features are, and how well the classes separate.
How does this differ from a fully supervised GNN?
Both compute the loss only over labeled nodes. The difference lies in the regime the semi-supervised setting targets: labeled nodes form a small part of the graph, and the representations of unlabeled nodes are still shaped by their neighbourhoods through message passing.
What if my graph is heterophilic?
Standard GCN-style aggregation assumes connected nodes share a class. On heterophilic graphs, averaging over neighbours can reduce accuracy. Models designed for heterophily should be considered in that case.
Can I apply this to data that is not naturally a graph?
Yes, by constructing a graph such as a k-nearest-neighbour graph on feature similarity. The quality of the learned representations depends on whether the constructed graph reflects meaningful structure, and a noisy graph can hurt performance.
How do I prevent over-smoothing?
Use shallow architectures, add residual connections, apply regularisation that randomly drops edges during training, or use architectures that combine representations from several layers rather than only the final one.
Related methods
Sources
Kipf, T. N., & Welling, M. (2017). Semi-Supervised Classification with Graph Convolutional Networks. International Conference on Learning Representations (ICLR 2017).
Open publication referenceZhou, D., Bousquet, O., Lal, T. N., Weston, J., & Scholkopf, B. (2004). Learning with Local and Global Consistency. Advances in Neural Information Processing Systems (NeurIPS 2004), 17.
Open publication reference