NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A Consistent Diffusion-Based Algorithm for Semi-Supervised Classification on Graphs

Nathan de Lara, Thomas BonaldarXiv 2020

Abstract

Standard graph-based diffusion algorithms for semi-supervised classification often suffer from mathematical "inconsistency." They can fail to identify correct clusters even when graph structures are clear, primarily due to biases introduced by unbalanced seed labels and varying cluster sizes. This paper introduces a simple yet effective modification: subtracting the mean "temperature" (centering) from diffusion results. This parameter-free fix removes global biases and leads to significant performance improvements across synthetic and real-world datasets.

Introduction: The Problem of Inconsistency

Semi-supervised classification on graphs typically involves propagating labels from a small set of "seed" nodes to the rest of the network. Heat diffusion is a popular mechanism for this: seeds of a specific class are assigned a high temperature, and heat flows through edges until equilibrium. Nodes with higher temperatures are then assigned to that class.

However, this "vanilla" approach is highly sensitive to the distribution of seeds and the size of clusters. If one class has more seeds or a larger cluster, its "heat" mathematically dominates the graph, regardless of the underlying connectivity. This leads to an inconsistent classifier that fails even with perfect graph structures.

Comparison between ground truth (a) and the biased solution of the standard Dirichlet problem (b).

The Proposed Method: Temperature Centering

To address this, the authors propose a "Dirichlet classifier" with a critical modification:

  1. One-Against-All Diffusion: For each label $k$, solve a Dirichlet problem where seeds of label $k$ are set to temperature 1 and all other seeds to 0.
  2. Temperature Centering: Before classification, calculate the mean temperature of all nodes for each diffusion process and subtract it from every node's score.
  3. Classification: Assign each node the label $k$ that yields the highest centered temperature.

By centering the temperatures, the algorithm "levels the playing field," effectively removing the global bias introduced by seed or cluster size asymmetry.

Experimental Evaluation

The algorithm was tested on synthetic Stochastic Block Models (SBM) and various real-world networks, including citation networks (Cora, CiteSeer), Wikipedia hyperlink graphs, and large social networks (DBLP, Amazon).

Key Results

The performance gains are most evident in scenarios with unbalanced labels. In synthetic tests, as the ratio of seeds or block sizes between classes increases, the F1-score of the vanilla algorithm drops sharply. In contrast, the centered algorithm maintains near-perfect performance.

F1-score performance under seed asymmetry (a) and block size asymmetry (b) for Vanilla, Weighted, and Centered diffusion variants.

On real-world data, the results are equally striking. For the "Wikipedia Vitals" dataset, the Macro-F1 score improved from 0.09 (vanilla) to 0.55 (centered). On Cora and CiteSeer, the centered approach more than doubled the performance of the vanilla version.

Discussion and Conclusion

The primary advantage of temperature centering is its simplicity and lack of parameters. Unlike other variants that require complex re-weighting of seeds based on degrees or class sizes, centering is a universal fix that requires no tuning. Furthermore, the authors provide mathematical proof that the centered version is consistent on block models as long as internal cluster density exceeds external density.

Future work includes extending the algorithm to provide "soft" labels (confidence scores) and broadening the theoretical consistency proofs to more complex, noisy graph models.

Summary updated

BibTeX
@misc{lara2020consistent,
  author = {Nathan de Lara and Thomas Bonald},
  title = {{A Consistent Diffusion-Based Algorithm for Semi-Supervised Classification on Graphs}},
  year = {2020},
  eprint = {2008.11944},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2008.11944},
}
Figure