Label propagation is a graph-based semi-supervised learning method that assigns labels to unlabeled nodes by iteratively spreading known labels along weighted edges until the label distribution stabilizes. In graph learning, it is the classic baseline for node classification when only a small fraction of nodes carry labels and the graph connects similar items.
The method rests on one assumption, homophily: connected or nearby nodes tend to share the same class. Introduced by Zhu and Ghahramani in 2002 and refined as label spreading by Zhou and colleagues in 2004, it remains popular in artificial intelligence because it is fast, parameter-light and transparent, and because it still competes with graph neural networks on many homophilous benchmarks.
How label propagation spreads labels across a graph
Label propagation works by repeated neighborhood averaging. Each node holds a vector of class scores; labeled nodes start with a one-hot vector for their class, and unlabeled nodes start with zeros or a uniform distribution. In every iteration, each node replaces its scores with the weighted average of its neighbors’ scores.
In matrix form, with edge weight matrix W and degree matrix D, one step computes Y ← D⁻¹WY. After each step, the original labeled nodes are clamped back to their true labels so that the known information never fades. The process repeats until the scores change by less than a small tolerance, and each unlabeled node finally receives the class with the highest score.
The iteration converges to a closed-form harmonic solution: the score of every unlabeled node equals the weighted mean of its neighbors. An equivalent view uses random walks: the score of class c at a node is the probability that a random walk starting there is first absorbed by a labeled node of class c.
| Step | Operation | Purpose |
|---|---|---|
| Build the graph | Use given edges or a similarity graph | Encode which items are alike |
| Initialize scores | One-hot for labeled, zero for unlabeled | Inject the known labels |
| Propagate | Multiply scores by normalized weights | Spread labels to neighbors |
| Clamp | Reset labeled nodes to true labels | Keep known labels fixed |
| Check convergence | Compare change with a tolerance | Stop when scores stabilize |
| Predict | Take the highest class score | Assign final labels |
Variants of label propagation
Several variants share the same idea but differ in normalization, clamping and goal. The most important distinction is between hard clamping, which never lets original labels change, and soft clamping, which lets noisy labels be corrected by the graph.
| Variant | Key difference | Best suited for |
|---|---|---|
| Label propagation (Zhu and Ghahramani) | Random-walk normalization, hard clamping | Clean labels, homophilous graphs |
| Label spreading (Zhou et al.) | Symmetric normalized Laplacian, soft clamping with alpha | Noisy labels, irregular degrees |
| Personalized PageRank propagation | Restart probability toward seed nodes | Large graphs, localized influence |
| Label propagation algorithm (LPA) | No seeds, nodes adopt the majority label | Unsupervised community detection |
| Correct and Smooth | Propagates errors and predictions of a base model | Boosting simple classifiers on graphs |
Label spreading uses a mixing parameter alpha, typically between 0.8 and 0.99, which sets how much each node trusts its neighbors versus its initial label. The community detection algorithm by Raghavan, Albert and Kumara shares the name but solves a different task: it starts with a unique label per node and finds dense groups without any supervision.
Label propagation compared with graph neural networks
Label propagation and graph neural networks (GNNs) both exploit graph structure for node classification, but they use different signals. Label propagation spreads labels only and ignores node features, while a graph convolutional network propagates learned feature representations and trains weights by gradient descent.
| Property | Label propagation | Graph convolutional network |
|---|---|---|
| Uses node features | No, structure and labels only | Yes, features are central |
| Trainable parameters | None or one alpha value | Weight matrices per layer |
| Receptive field | Whole graph through iteration | Limited by number of layers |
| Cost per iteration | Proportional to number of edges | Edges times feature dimension |
| Works under heterophily | Poorly | Poorly without special designs |
The two approaches are complementary. Combining a feature-based model with label propagation, as Correct and Smooth does, often matches or beats deeper GNNs on homophilous graphs at a fraction of the training cost. Both methods also share a risk: too many smoothing steps cause over-smoothing, where distant classes blend together.
Building the graph and tuning the method
Results depend more on graph construction than on the propagation rule. When data has no natural graph, practitioners build a k-nearest-neighbor graph with k typically between 5 and 20, or a fully connected graph with a Gaussian (RBF) kernel, whose bandwidth sets how quickly similarity decays with distance.
- Prefer sparse k-NN graphs for large datasets, because dense kernel graphs need memory quadratic in the number of points.
- Symmetrize the graph so that similarity is mutual and normalization behaves well.
- Balance classes by normalizing scores per class when one class dominates the labeled seeds.
- Validate on held-out labels to choose k, the kernel width and alpha.
Libraries such as scikit-learn provide LabelPropagation and LabelSpreading with RBF and k-NN kernels, and graph libraries offer sparse implementations that scale to millions of nodes, since each iteration costs time linear in the number of edges.
Limitations and common mistakes
The main limitation is dependence on homophily. On heterophilous graphs, where linked nodes usually belong to different classes, such as fraud rings linking fraudsters to legitimate accounts, label propagation actively spreads wrong labels. It also cannot label nodes in disconnected components that contain no seed.
Other frequent problems include class imbalance, where large classes flood the graph, and transductive scope: classic label propagation labels only nodes present at training time, so new nodes require rerunning the algorithm or an inductive model. Finally, a poorly chosen kernel width can produce a graph that is almost empty or almost complete, and both extremes make propagation meaningless.
Put simply
Imagine a town where only a few people wear name tags showing their favorite team. Everyone else is unknown. Friends usually support the same team. So you guess each person’s team from their friends.
Label propagation does this again and again. Each round, every unknown person looks at friends and takes on the most common team. The known people keep their tags. After a few rounds, the guesses settle down. Everyone ends up with a likely team.
The idea works well when similar people are connected. It fails when connected people tend to differ.
In practice
An online marketplace wants to sort 2 million product listings into 300 categories, but sellers have categorized only about 40,000 of them reliably. The data team builds a k-nearest-neighbor graph with k = 10 from text and image embeddings of every listing, so similar listings become neighbors.
The team runs label spreading with alpha set to 0.9, using the 40,000 trusted listings as seeds. The sparse implementation finishes in a few minutes on one server. Listings with a top score below a confidence threshold go to human reviewers instead of being labeled automatically.
On a held-out set of 5,000 manually checked listings, the propagated labels reach accuracy close to a fine-tuned classifier trained on the same seeds. The marketplace thus categorizes most of its catalog without new annotation and focuses its review effort on the uncertain remainder.