Local Access to Random Walks

Amartya Shankha Biswas, Edward Pyne, Ronitt RubinfeldarXiv 2021

Abstract

Traditional methods for simulating random walks on graphs require time proportional to the number of steps taken, which is often infeasible for massive datasets or long trajectories. This paper introduces the "local access" paradigm for random walks, providing algorithms that allow a user to query the position of a walker at any time $t$ in sublinear time. We present a $\tilde{O}(\sqrt{n})$ algorithm for expander graphs and demonstrate that polylogarithmic efficiency is achievable for graphs with specific algebraic structures, such as hypercubes and cycles. Furthermore, we establish nearly matching lower bounds for random $d$-regular graphs, defining the fundamental limits of local access in general graph topologies.

Introduction

Random walks are a cornerstone of modern computer science, underpinning algorithms for PageRank, graph partitioning, and property testing. However, as graphs scale to billions of nodes, the traditional approach of step-by-step simulation becomes a bottleneck. If a researcher needs to know the position of a walker at time $t = 10^9$, a standard simulation requires $\Omega(t)$ operations.

The "local access" paradigm seeks to bypass this linear dependency. The goal is to provide an oracle that can answer queries for the walker's position at any arbitrary time $t$ such that all answers are consistent with a single, valid random walk. The primary challenge is consistency: if an algorithm reports the walker is at vertex $v$ at $t=100$ and later reports it is at $u$ at $t=50$, there must exist a valid path of length 50 between $u$ and $v$ that respects the graph's transition probabilities.

Algorithmic Frameworks

The authors propose three distinct methodologies for achieving local access, depending on the underlying structure of the graph.

1. The Collision Method for Expander Graphs

For undirected regular graphs with strong spectral expansion (where $\lambda$ is the second largest eigenvalue), the paper introduces a method based on the "Birthday Paradox" logic. The algorithm behaves differently based on the temporal distance between queries:

  • Distal Queries: If a query time $t$ is far from any previously queried times (exceeding the mixing time), the algorithm returns a nearly uniform random vertex.
  • Proximal Queries: If $t$ is very close to a known position, the algorithm performs a short local simulation.
  • Interpolation: For intermediate distances, the algorithm samples $\tilde{O}(\sqrt{n})$ random walks starting from both known endpoints. By the birthday paradox, these walks are likely to "collide" at a midpoint in a graph of size $n$. These collisions allow the algorithm to stitch together a consistent path without exploring the entire interval.

2. Algebraic Sampling for Structured Graphs

In graphs with commutative group structures, such as Abelian Cayley graphs (e.g., hypercubes or $n$-cycles), the specific order of steps does not affect the final destination—only the total count of each type of step matters. The authors exploit this commutativity to achieve polylogarithmic query times. By using Multinomial and Multivariate Hypergeometric distributions, they can sample the aggregate counts of steps in various directions and determine the walker's position at any $t$ without simulating the path.

3. Lower Bound Analysis

To determine if the $\sqrt{n}$ runtime for expanders is optimal, the authors analyze random $d$-regular graphs using the "configuration model." They prove that any algorithm making fewer than $\Omega(\sqrt{n}/\log n)$ probes is likely to encounter only tree-like structures. Without detecting cycles, an algorithm cannot accurately sample the distribution of paths between two points, making perfect consistency impossible. This establishes that $\sqrt{n}$ is essentially the best possible performance for general $d$-regular expanders.

Key Results and Insights

  • Expander Efficiency: The algorithm for expanders achieves a per-query runtime of $\tilde{O}\left(\frac{1}{1-\lambda}\sqrt{n}\right)$. For a typical random $d$-regular graph, this simplifies to roughly $\tilde{O}(\sqrt{n})$.
  • The Power of Structure: A significant finding is that algebraic structure is more beneficial for local access than expansion speed. While expanders mix quickly, they require $\sqrt{n}$ time for local access. Conversely, "slow-mixing" graphs like cycles allow for polylogarithmic access due to their Abelian properties.
  • Lower Bounds: The paper establishes a gap between adaptive and non-adaptive queries. For non-adaptive sequences (where queries are fixed in advance), the lower bound is $\Omega(n^{1/4})$, whereas adaptive sequences face the $\Omega(\sqrt{n})$ limit.

Conclusion and Future Directions

This work provides the first theoretical foundation for local access to random walks, moving beyond simple step-by-step simulation. However, several open questions remain. The current algorithms are optimized for regular graphs, where every node has the same degree. Extending these techniques to heterogeneous graphs, such as those following power-law distributions common in social networks, remains a significant challenge. Additionally, closing the gap between the $n^{1/4}$ non-adaptive lower bound and the $\sqrt{n}$ upper bound offers a clear path for future theoretical refinement.

Summary updated

BibTeX
@misc{biswas2021local,
  author = {Amartya Shankha Biswas and Edward Pyne and Ronitt Rubinfeld},
  title = {{Local Access to Random Walks}},
  year = {2021},
  eprint = {2102.07740},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2102.07740},
}
Figure