Efficient and Local Parallel Random Walks

Michael Kapralov, Silvio Lattanzi, Navid Nouri, Jakab Tardos

Abstract

Random walks are fundamental primitives for graph algorithms like community detection and node embedding. However, existing parallel methods in the Massively Parallel Computation (MPC) model often suffer from excessive memory and compute overhead by simulating walks globally from every node. This paper presents a novel, memory-efficient algorithm that computes independent random walks locally from specific seed nodes. By combining a "stitching" technique with an "Adaptive Budgeting" strategy, the proposed method achieves significant speedups and scalability for local graph clustering tasks.

Introduction

As graph datasets scale to billions of edges, researchers increasingly rely on the Massively Parallel Computation (MPC) model (e.g., MapReduce, Spark) for processing. Random walks are the engine behind many graph-based machine learning tasks. While recent parallel algorithms have improved performance by "stitching" short walk segments, they remain fundamentally non-local. These methods typically require computing walks from all nodes proportional to their degree, which is highly inefficient when only a local community around specific "seed" nodes is of interest. This work addresses the challenge of computing random walks efficiently in parallel while restricting computation to a specific subset of starting nodes.

Methodology

The proposed approach builds upon the stitching technique. Instead of a sequential step-by-step simulation of a walk of length $\ell$, which would require $\ell$ communication rounds, the algorithm generates short segments of length 1 and pairs them iteratively to form segments of length 2, 4, and so on. This reduces the round complexity to $O(\log \ell)$.

Illustration of the stitching process across three rounds.

The primary innovation is Adaptive Budgeting, which solves the challenge of pre-computing segments for nodes whose visit frequency is unknown. The algorithm operates in iterative cycles:

  1. Pilot Runs: Initially, a small uniform budget of walk segments is assigned to all nodes. A few walks are simulated from the seed node to observe their trajectory.
  2. Adaptive Scaling: In subsequent cycles, the budget is increased by a scaling factor $\lambda$ specifically for nodes that were frequently visited in previous runs.
Adaptive budgeting of walk segments over multiple iterations.

This bootstrapping mechanism allows the algorithm to dynamically concentrate resources on the local exploration space, drastically reducing total memory requirements from $O(m \cdot B^*)$ to a bound scaling with the actual local area explored.

Experimental Evaluation

The algorithm was evaluated on several real-world undirected graphs from the SNAP repository, including com-DBLP, com-LiveJournal, and com-Orkut (up to 117M edges).

Key Results

  • Theoretical Efficiency: The algorithm simulates $B^*$ independent walks of length $\ell$ in $O(\log \ell \log_\lambda B^*)$ rounds with optimized space complexity.
  • Empirical Scalability: On the com-Orkut graph, the algorithm generated approximately 200,000 rooted walks in 64 minutes using a 30-machine cluster.
  • Performance vs. Baselines: Unlike "Uniform Stitching" baselines that often fail due to memory exhaustion on large graphs, the adaptive approach maintained consistent, low runtimes by avoiding global computation.

Conclusion

This work introduces the first parallel local clustering algorithm where communication rounds depend logarithmically on walk length. By decoupling walk generation from global graph distribution, the algorithm enables efficient local analysis of massive networks. Future work includes refining budgeting estimators to reduce walk failure rates and extending the primitive to other walk-based tasks like Node2Vec.

Summary updated

BibTeX
@inproceedings{kapralov2021efficient,
  author = {Michael Kapralov and Silvio Lattanzi and Navid Nouri and Jakab Tardos},
  title = {{Efficient and Local Parallel Random Walks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=yKoZfSVFtAx},
}
Figure