All models

LabelPropagation

Parameter-free label propagation over a normalized adjacency, in PyTorch Geometric's Correct and Smooth form.

Graphs and geometry · 59 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 (16 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

Operations
59
Framework
PyTorch
Recurrent
No
Published
2002, Carnegie Mellon University technical report CMU-CALD-02-107
Cited by
1,524 (as of 18 October 2026)
Authors
Xiaojin Zhu, Zoubin Ghahramani
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
m1538
Graph hash
e7f83c43b29af96d656a4958ce76c2ad31f58c40e833047f8d6c27d0b835d972
Skeleton hash
0cbde2e8dbbd212d1c4137a7f0adb26fb9584359e62446006d2f72003786ae89
Architecture hash
b849c43ffe93c19c97fb0ae7dacf13470e9222ee2ac7194382cf0c86cece10ee
Diagram SHA-256
9221444fe088818857a7a8eb509264bebb5aab5167e173505ab9d0d1922a852d
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

Label propagation is one of the oldest ideas in graph-based semi-supervised learning: known labels spread along edges so that unlabeled nodes are inferred from their labeled neighbors. The operator traced here is the PyTorch Geometric LabelPropagation module, whose concrete implementation is derived from the Correct and Smooth paper rather than directly from the paper that first introduced the idea. It has no learnable parameters at all: the forward pass runs under no_grad and simply iterates a fixed update.

Each step mixes propagated labels with the originals: the propagated matrix is scaled by alpha and added to one minus alpha times the input labels. Integer labels are converted to one-hot vectors, and where a mask is given only the masked nodes seed the propagation. The adjacency uses the GCN normalization without added self-loops, and after each step the output is clamped between 0 and 1 unless a custom post step is supplied.

The Correct and Smooth paper this implementation follows showed that shallow models which ignore the graph, plus two label-propagation post-processing steps, can exceed or match state-of-the-art GNNs on many transductive node classification benchmarks. Those two steps are an error correlation that spreads residual training errors to correct test predictions and a prediction correlation that smooths predictions over the graph. Even plain label propagation that ignores features does surprisingly well on a number of benchmarks, which the authors read as evidence that neighboring nodes really do share labels. On OGB-Products, C&S beat the best known GNN with 137 times fewer parameters and more than 100 times less training time.

Key idea. Known labels are diffused over the symmetrically normalized adjacency with no learned parameters, so unlabeled nodes are inferred from labeled ones by propagation alone.

  • label propagation
  • LabelPropagation
  • LP
  • label spreading
  • Zhu Ghahramani
  • Correct and Smooth
  • C&S
  • graph semi-supervised learning
  • transductive node classification
  • PyTorch Geometric

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@article{labelpropagation2002,
  title = {Learning from Labeled and Unlabeled Data with Label Propagation},
  author = {Xiaojin Zhu and Zoubin Ghahramani},
  year = {2002},
  journal = {Carnegie Mellon University technical report CMU-CALD-02-107}
}