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

Directed Probabilistic Watershed

Enrique Fita Sanmartin, Sebastian Damrich, Fred A. Hamprecht

Introduction: The Challenge of Directed Data

In many real-world scenarios, data is best represented as a network where relationships have a specific direction—such as citation networks, recommendation systems, or $k$-Nearest Neighbor graphs. However, most graph-based semi-supervised learning (SSL) algorithms are designed for undirected graphs, where the connection between any two nodes is symmetric.

When you force a directed graph into an undirected framework, you lose valuable structural information. To address this gap, researchers have generalized the "Probabilistic Watershed" (ProbWS) algorithm. While the original ProbWS works by sampling spanning forests on undirected graphs to determine node labels, it cannot handle the "one-way streets" of directed data. The challenge lies in applying similar probabilistic logic to directed structures without losing the mathematical elegance of the original method.

A simple directed graph with two labeled seed nodes (blue and red) and an unlabeled query node, q.

Methods: The Directed Probabilistic Watershed (DProbWS)

To solve this, the authors introduce the Directed Probabilistic Watershed (DProbWS). This approach provides a robust framework for semi-supervised learning where edge directionality strictly matters, offering a principled way to classify nodes by considering all possible directed paths to labeled "seeds."

The algorithm operates through several key mechanisms:

  • Directed In-Forests: Instead of standard spanning forests, the algorithm considers "incoming directed spanning forests" (in-trees) rooted at labeled seed nodes. In these structures, every node has exactly one directed path leading to a seed.
  • Gibbs Distribution: The model defines a probability distribution over all possible directed forests. Forests with lower total edge costs are assigned higher probabilities, controlled by an inverse temperature parameter, $\mu$.
  • Matrix Tree Theorem for Directed Graphs: Counting every single forest is computationally impossible as the number grows exponentially. To bypass this, the authors use the directed version of the Matrix Tree Theorem. This allows them to compute the probability of a node belonging to a specific seed's tree using the out-Laplacian matrix of the graph.
  • Equivalence to Random Walkers: A major theoretical contribution of the paper is proving that DProbWS is mathematically equivalent to a Directed Random Walker. The probability of a node being assigned a label is identical to the probability that a random walker starting at that node hits that specific seed first.
The DProbWS algorithm computes node probabilities by sampling a Gibbs distribution over all possible directed in-forests rooted at the seeds.

Key Insights

Traditional "Minimum Spanning Forest" methods are often brittle because they suffer from a "Winner-Takes-All" problem, considering only the single best path. By contrast, DProbWS considers all paths, providing an uncertainty measure that makes the classification significantly more robust.

Interestingly, the authors show that as the "temperature" of their distribution drops to zero, the algorithm naturally converges to the Minimum Cost Spanning Forest. This effectively bridges the gap between probabilistic models and classic combinatorial optimization.

Furthermore, in directed graphs, some nodes might not have any valid path to a seed, creating a "zero-knowledge" problem. The authors address this by incorporating a "teleporting" random walker (similar to the mechanics of PageRank), ensuring every node can eventually be classified.

Datasets and Results

The authors evaluated DProbWS on several standard benchmarks converted into directed graphs (typically via $k$-Nearest Neighbors with $k=5$), including handwritten digit recognition (Digits), text classification (20Newsgroups), communication networks (Email-EU), and citation networks (Cora & CiteseerX).

Across all five datasets, DProbWS and its teleporting variant (DProbWStrw) consistently performed on par with or outperformed existing state-of-the-art directed graph SSL methods like Absorbing Random Walks (ARW), Game Theoretic Grouping (GTG), and LLUD. On the Digits dataset, the method achieved near-perfect accuracy even with a small fraction of labeled data. On more complex citation networks like Cora, the DProbWS approach showed a clear advantage as the fraction of labeled seeds increased.

Limitations and Future Work

The primary limitation identified in the study is the lack of a proven distance metric for directed graphs that mirrors "effective resistance" in undirected graphs. In the undirected ProbWS, the probability is proportional to a specific geometric gap; the authors conjecture a similar relationship exists for directed graphs but have not yet proven the exact form of that distance function. Future work will likely focus on identifying this "directed distance" and exploring how DProbWS can be integrated into deep learning pipelines for end-to-end training on directed graph data.

Summary updated

BibTeX
@inproceedings{sanmartin2021directed,
  author = {Enrique Fita Sanmartin and Sebastian Damrich and Fred A. Hamprecht},
  title = {{Directed Probabilistic Watershed}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
}
Figure