Learning from labeled and unlabeled data on a directed graph

Dengyong Zhou, Jiayuan Huang, Bernhard Schölkopf

This 2005 paper from Dengyong Zhou and colleagues at the Max Planck Institute and the University of Waterloo is a foundational piece in graph-based machine learning. It tackles a problem that remains highly relevant today: how do we propagate information across a network where the connections only go one way?

By leveraging the stationary distribution of random walks, the authors introduce a general framework for semi-supervised learning on directed graphs. They define a novel "directed graph Laplacian," providing a mathematically rigorous way to classify unlabeled nodes (like web pages or research papers) while respecting the global flow and directionality of the network.

The Challenge of Directed Graphs

In many real-world networks—the World Wide Web, citation indices, or social media follows—edges are directed. However, most classical "spectral" methods for clustering or classifying nodes were designed for undirected graphs.

Directed Graph Example

When you treat a directed graph as undirected, you lose vital information. For example, in a citation network, a paper being cited by a "landmark" paper is very different from that paper citing the landmark. Previous attempts to handle directionality often relied on local heuristics (like looking at immediate neighbors). The challenge the authors address is how to exploit the global structure of a directed graph to ensure that classification is consistent across the entire network.

A Novel Framework: The Directed Graph Laplacian

The core of the paper is a regularization framework. If we have a few labeled nodes (e.g., "this is a student home page") and many unlabeled ones, we want a function $f$ that assigns labels such that:

  1. It matches the known labels.
  2. It is "smooth" over the graph—meaning nodes connected by an edge should likely have the same label.

The "Aha!" Moment: The Stationary Distribution The authors define "smoothness" using the stationary distribution ($\pi$) of a random walk on the graph.

  • They use a "teleporting" random walk (similar to Google’s PageRank) to ensure the walk doesn't get stuck in "sinks" or dead ends.
  • They define a functional that sums the variation of labels across edges, weighted by the probability of a random walker being at that node.
  • This leads to a Directed Graph Laplacian. While standard Laplacians are for undirected graphs, this version uses the stationary distribution to "symmetrize" the directed information in a way that preserves the influence of edge direction.

The resulting optimization problem has an elegant, closed-form solution that can be computed in nearly linear time using sparse matrix techniques.

Experimental Validation on WebKB

The authors evaluated their framework on the WebKB dataset, a classic benchmark in web mining containing web pages from four computer science departments (Cornell, Texas, Washington, and Wisconsin). The task was to classify pages into categories like student, faculty, staff, department, course, project, and other. Crucially, they tested how well the algorithm performed using only the link structure, ignoring the text on the pages entirely to isolate the effectiveness of their graph method.

Test Error Results on WebKB

Key Results

  • Directionality Matters: The authors compared their "distribution regularization" against a version that ignored edge direction ("undirected regularization"). The directed approach significantly outperformed the undirected one, proving that the "flow" of links contains essential classification data.
  • Superiority over Naive Normalization: They also tested "degree regularization" (which just uses in-degree/out-degree). Their stationary distribution method was much more robust, especially when the number of labeled examples was very small (as few as 2 labels per class).
  • Efficiency: Because the algorithm boils down to solving a linear system with a diagonally dominant matrix, it scales well to large graphs, making it practical for web-scale data.

Key Insights and Future Directions

  • Global over Local: Node degree (how many links a node has) is a local property. The stationary distribution is a global property. By using the latter, the algorithm "understands" the importance of a node within the context of the whole network.
  • Generalization of PageRank: The framework can be seen as a generalization of PageRank. While PageRank ranks nodes by importance, this framework uses that same underlying "flow" logic to propagate categorical labels.
  • Unsupervised Utility: The authors show that if you have no labels, their method naturally turns into a spectral clustering algorithm for directed graphs (Directed Ncut), generalizing the famous Shi-Malik normalized cut.

Limitations

  • Assumed Connectivity: The method relies on the graph being "strongly connected" to have a unique stationary distribution. While the "teleportation" trick fixes this, the choice of the teleportation parameter ($\eta$) is a hyperparameter that needs tuning.
  • Link-Only Focus: In this paper, the authors purposefully ignored node features (like text) to prove their point about graph structure. In a real-world production system, one would want to combine this graph-based propagation with modern NLP features.
  • Discrete Analysis: The paper touches on a "p-Laplacian" for non-linear regularization but doesn't explore its experimental performance deeply, leaving a door open for further research into more complex, non-linear label propagation.

Summary updated

BibTeX
@inproceedings{zhou2005learning,
  author = {Dengyong Zhou and Jiayuan Huang and Bernhard Schölkopf},
  title = {{Learning from labeled and unlabeled data on a directed graph}},
  booktitle = {International Conference on Machine Learning},
  year = {2005},
  doi = {10.1145/1102351.1102482},
}
Figure