From random walks to distances on unweighted graphs

Tatsunori B. Hashimoto, Yi Sun, Tommi S. Jaakkola

In the world of network analysis, determining the "closeness" of two nodes is a fundamental task. Whether recommending a friend on social media or identifying missing citations in a research paper, a reliable way to measure vertex similarity is essential. Traditionally, researchers have relied on Expected Hitting Time (EHT)—the average number of steps a random walker takes to travel from point A to point B.

However, as graphs scale, EHT begins to fail. A landmark 2014 study demonstrated that in large graphs, EHT "degenerates," essentially reflecting the popularity (degree) of the target node rather than the actual distance to it. In their paper, "From random walks to distances on unweighted graphs," Hashimoto, Sun, and Jaakkola provide a rigorous mathematical solution. By applying stochastic calculus to graph theory, they demonstrate that the Laplace Transformed Hitting Time (LTHT) is a robust, consistent metric for recovering latent distances.

TL;DR

This paper proves that traditional random-walk metrics like expected hitting time fail in large graphs by converging to simple node popularity. The authors propose the Laplace Transformed Hitting Time (LTHT), a metric that successfully recovers underlying distances, preserves cluster structures, and remains robust against random noise.

The Problem: The Popularity Trap

Most graph algorithms assume nodes exist in a "latent space"—a hidden map where proximity correlates with connection probability. We want graph metrics to recover this hidden geometry.

The issue is that Expected Hitting Time, the most popular global metric, is fundamentally flawed in the "large graph limit." As the number of nodes $n$ approaches infinity, a random walker "mixes" with the entire graph before hitting its target. Consequently, the hitting time becomes a function of the node's stationary distribution (general visit frequency) rather than the starting distance.

Conversely, Shortest Path distance is overly fragile. A single "shortcut" edge—a random connection outside the underlying geometry—can catastrophically collapse the perceived distance between distant clusters.

The Solution: Laplace Transformed Hitting Time (LTHT)

The authors bridge the gap between discrete graphs and continuous space using stochastic calculus. They model the graph as a "spatial graph" where edges are proximity-based and prove that a random walk on this graph converges to an Itô process as the graph density increases.

Instead of the average hitting time, they analyze the Laplace Transform of the hitting time: $\mathbb{E}[e^{-\beta T}]$. By introducing the parameter $\beta$, they effectively "discount" long, wandering paths. This forces the metric to prioritize direct paths, preventing the "mixing" problem that plagues EHT.

Key Insights: Interpolating Between Global and Local

LTHT acts as a "slider" between two extremes. When $\beta$ is small, it behaves like EHT. When $\beta$ is large, it behaves like the Shortest Path. The authors identify a "sweet spot" where the metric is both consistent and robust.

Comparison of graph metrics: Stationary distribution (A), Expected hitting time (B), LTHT with low beta (C), LTHT with high beta (D), and Shortest path (E).
  • Density Sensitivity: Unlike shortest paths, LTHT is "bias-aware." In 1D cases, it penalizes paths crossing low-density regions, making it superior at respecting cluster boundaries.
  • The RA Index Connection: In high-noise regimes, two-step LTHT becomes equivalent to the Resource Allocation (RA) index, providing a theoretical bridge between local heuristics and global walk-based metrics.

Key Results

  • Link Prediction Superiority: On citation networks, LTHT consistently outperformed shortest paths, EHT, and common neighbor counts in identifying deleted edges.
  • Robustness to Noise: The authors proved that LTHT can handle significant "non-geometric" noise (random edges) without losing ranking accuracy, whereas shortest paths fail immediately.
  • Consistency: The paper proves that with proper scaling, the log-LTHT converges to the true latent distance between nodes.

Limitations and Future Work

While powerful, LTHT relies on the "spatial graph" model, which may not apply to purely logical graphs. Additionally, performance depends on tuning the $\beta$ parameter. Finally, while LTHT can be computed via matrix inversion, scaling this to billions of nodes remains a computational challenge.

By moving from simple averages to Laplace transforms, Hashimoto and colleagues have transformed the random walk into a precision tool for graph geometry.

Summary updated

BibTeX
@inproceedings{hashimoto2015from,
  author = {Tatsunori B. Hashimoto and Yi Sun and Tommi S. Jaakkola},
  title = {{From random walks to distances on unweighted graphs}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2015},
  url = {https://openreview.net/forum?id=HkNDPPZuWB},
}
Figure