Balanced Allocation with Random Walk Based Sampling

Dengwang Tang, Vijay G. SubramanianarXiv 2018

Introduction

The "balls-in-bins" problem is a fundamental abstraction in computer science, modeling how tasks are distributed across processors or how data is stored across servers. In the classic scenario where $n$ balls are placed into $n$ bins independently and uniformly at random, the maximum load—the number of balls in the most crowded bin—is approximately $\log n / \log \log n$ with high probability.

A landmark improvement, known as the power-of-d choices, demonstrates that by sampling $d \ge 2$ bins and placing the ball in the least loaded one, the maximum load drops exponentially to $O(\log \log n / \log d)$. However, this efficiency relies on the assumption of perfect independence between samples. In large-scale distributed architectures, generating $d$ independent uniform samples for every allocation can be computationally expensive or architecturally difficult. This paper investigates whether this performance can be maintained using correlated samples generated by random walks on a graph.

Methodology: Random Walk Based Sampling

The authors propose replacing independent sampling with $d$ non-backtracking random walkers moving on a $k$-regular graph $G$. A non-backtracking walk prevents the walker from immediately returning to its previous node, facilitating faster exploration of the state space. Three specific schemes are analyzed:

  1. Conditional Resets: Walkers move independently. If their paths intersect or a time threshold of $\lfloor c \log n \rfloor$ is reached, they are reset to new independent uniform positions.
  2. Periodic Resets: Walkers are reset to uniform random positions strictly every $\lfloor c \log n \rfloor$ steps, regardless of path intersections.
  3. No Resets: Walkers continue their non-backtracking walks indefinitely without any resets.

The mathematical analysis utilizes martingale concentration bounds (specifically a corollary of Bernstein’s Inequality) to manage the dependencies inherent in random walks. By adapting the iterative bounding technique originally developed by Azar et al., the authors prove that these correlated choices can effectively mimic the behavior of independent sampling.

The Importance of Graph Topology

The success of these schemes depends heavily on the structural properties of the underlying graph $G$.

The Role of Girth

The most critical requirement identified is high girth—the length of the shortest cycle in the graph. High girth ensures that the local neighborhood of any node resembles a tree, minimizing the likelihood that a walker becomes "trapped" in a small cluster of bins, which would lead to local imbalances. The authors demonstrate that the girth requirement is not merely a technicality: Theorem 5 proves that if a graph has a cycle of length $g$, the maximum load can be as high as $\Omega(\log n / g)$. To maintain optimal $O(\log \log n)$ performance, the girth must be at least $\Theta(\log n / \log \log n)$.

Expansion and Mixing

For the "No Resets" scheme, the graph must also be an expander graph. Expansion ensures that the random walk "mixes" rapidly, meaning the probability distribution of the walker’s position converges to a uniform distribution within $O(\log n)$ steps. This rapid mixing is what allows the correlated samples to function as a reliable pseudo-random source for load balancing.

Key Results

The primary contribution of this work is the proof that all three proposed schemes achieve a maximum load of $\frac{\log \log n}{\log d} + O(1)$ with high probability. This matches the "gold standard" performance of the standard power-of-d choices model using independent sampling.

The findings suggest that random walks are a viable method for derandomizing load balancing. Because a random walk requires fewer "new" random bits per step than independent uniform sampling, these schemes offer a more resource-efficient approach for distributed systems. These results are shown to hold for various high-girth expanders, including random $k$-regular graphs and Lubotzky-Phillips-Sarnak (LPS) graphs.

Conclusion and Future Directions

This research bridges the gap between randomized load balancing and graph theory, showing that structural properties like girth and expansion can compensate for a lack of perfect independence. While the $O(\log \log n)$ bound is tight for small $d$, future work remains to explore the behavior when $d = \Theta(\log n)$, where independent sampling is known to yield $O(1)$ load. Additionally, extending this analysis to dynamic queuing systems—where tasks arrive and depart over time—would provide further insights into the practical utility of random-walk-based allocation in real-world environments.

Summary updated

BibTeX
@misc{tang2018balanced,
  author = {Dengwang Tang and Vijay G. Subramanian},
  title = {{Balanced Allocation with Random Walk Based Sampling}},
  year = {2018},
  eprint = {1810.02722},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1810.02722},
}
Figure