Estimating and sampling graphs with multidimensional random walks

Bruno F. Ribeiro, Donald F. Towsley

TL;DR

This paper introduces "Frontier Sampling" (FS), a novel multidimensional random walk technique for efficiently and accurately estimating characteristics of large, complex networks. FS significantly outperforms existing methods like single random walks and multiple independent random walks, especially in graphs with disconnected or loosely connected components, by reducing estimation errors.

What Problem Does This Paper Address?

Studying large, complex networks (like social networks, the internet, or biological networks) often involves characterizing their properties, such as degree distributions or clustering coefficients. However, directly querying every node or edge in these massive graphs is computationally infeasible. Existing sampling methods, like random vertex sampling and random walks, have drawbacks. Random vertex sampling can be resource-intensive, while standard random walks can suffer from large estimation errors, particularly in graphs with disconnected components, where a "trapped" walker might explore a small subgraph disproportionately. This paper aims to develop a more robust and accurate sampling method that mitigates these issues.

Methods

The core contribution is Frontier Sampling (FS), a new sampling method that uses m dependent random walkers. Unlike multiple independent random walkers, FS walkers are coordinated. The algorithm starts with m walkers at randomly chosen vertices. At each step, one of the walkers is selected with probability proportional to its degree, and then it moves to a neighbor chosen uniformly at random. This process is shown to be equivalent to a single random walker on the m-th Cartesian power of the graph. This "multidimensional" approach allows FS to maintain desirable properties of regular random walks (like sampling edges uniformly) while exhibiting significantly lower estimation errors in challenging graph structures. The paper also analytically derives estimators for various graph characteristics (edge label density, assortative mixing coefficient, vertex label density, and global clustering coefficient) based on the sampled edges.

Datasets

The authors evaluated their method on several real-world network datasets:

  • Flickr: A social network of users and their photo sharing activities.
  • LiveJournal: A popular social networking and blogging platform.
  • YouTube: A video-sharing social network.
  • Internet RLT: A router-level Internet graph collected from traceroute measurements.

These datasets vary in size and structure, including some with disconnected components, which are crucial for testing the robustness of the proposed method.

Key Insights and Ideas

  • "Trapping" is a major issue: Standard random walks can get stuck in local graph structures, leading to biased estimates, especially in disconnected graphs.
  • Multidimensionality helps: Using multiple dependent walkers (Frontier Sampling) allows for a more global exploration of the graph compared to independent walkers.
  • FS is more robust to graph structure: FS significantly reduces estimation errors in graphs with disconnected or loosely connected components, a common problem in real-world networks.
  • FS is more efficient than random vertex sampling for tails: For estimating the tail of the degree distribution (high-degree nodes), FS is shown to be more suitable than random vertex sampling.
  • FS converges faster: Frontier Sampling converges to its steady-state distribution more quickly than multiple independent random walkers.

Key Results

  • Reduced Estimation Errors: In simulations on real-world graphs, Frontier Sampling consistently achieved lower Mean Squared Errors (MSEs) for estimating graph characteristics (like degree distributions and assortative mixing) compared to single and multiple independent random walkers, especially in graphs with disconnected components. For instance, on the Flickr graph, FS's NMSE for degree distribution estimates was significantly lower than both SingleRW and MultipleRW.
  • Accuracy comparable to Random Edge Sampling: For estimating the tail of the degree distribution, FS's accuracy was comparable to random edge sampling, which is often considered a gold standard but is frequently impractical.
  • Robustness to Sparse User IDs: FS demonstrated better performance than random vertex sampling in scenarios with sparse user IDs (low "hit ratio"), indicating its resilience to inefficient sampling strategies.
  • Faster Convergence: FS showed faster convergence to steady-state sampling probabilities compared to independent random walkers.

Limitations and Future Work

  • Assumptions: The proposed estimators assume that the graph can be crawled and vertex degrees can be queried. This is not always possible for all types of networks (e.g., the Internet topology).
  • Distributed FS: While the paper proposes a distributed version of FS, further work is needed to explore its full potential and address communication costs.
  • Dynamic Networks: The authors suggest that the principles behind FS could be extended to estimate characteristics of dynamic networks and to design new MCMC-based approximation algorithms.
  • Improving SingleRW/MultipleRW: The paper notes that modifying SingleRW and MultipleRW to explicitly handle disconnected components is an open problem.

Summary updated

BibTeX
@inproceedings{ribeiro2010estimating,
  author = {Bruno F. Ribeiro and Donald F. Towsley},
  title = {{Estimating and sampling graphs with multidimensional random walks}},
  booktitle = {Internet Measurement Conference},
  year = {2010},
  url = {https://openreview.net/forum?id=DDJ1MqCIhc},
}
Figure