Parallel Local Graph Clustering

Julian Shun, Farbod Roosta-Khorasani, Kimon Fountoulakis, Michael W. Mahoney

TL;DR

This paper tackles the challenge of efficiently finding clusters in massive graphs by parallelizing existing "local" graph clustering algorithms. They achieve significant speedups on modern multi-core machines, making the exploration of local graph structures much faster and more practical for large-scale datasets.

What Problem Does This Paper Address?

Graph clustering is crucial for many applications, from social network analysis to community detection. However, as graphs grow to enormous sizes (billions of nodes and edges), traditional clustering methods become computationally prohibitive. While "local" algorithms offer a solution by focusing on finding clusters with work proportional to the cluster size rather than the entire graph, these algorithms are typically sequential. This paper addresses the need to parallelize these efficient local algorithms to handle the scale of modern graphs and enable faster, interactive exploration of graph structures.

Methods

The authors parallelize several existing local graph clustering algorithms: Nibble, PR-Nibble, Deterministic Heat Kernel PageRank (HK-PR), and Randomized Heat Kernel PageRank (rand-HK-PR). Their approach leverages the Ligra graph processing framework, which is well-suited for local algorithms as it only processes active vertices and their edges. Key techniques include:

  • Data-parallel primitives: Utilizing Ligra's VERTEXMAP and EDGEMAP functions to apply operations across subsets of vertices and edges in parallel.
  • Sparse sets: Employing hash tables to efficiently represent and update vertex data, ensuring work remains proportional to the active part of the graph.
  • Parallel sweep cut: Developing a work-efficient parallel version of the sweep cut procedure, a common rounding mechanism used to extract partitions from algorithm outputs.
  • Optimized update rules: For PR-Nibble, they implement an optimized update rule that improves performance without sacrificing cluster quality.
  • Work-efficient parallelization: Designing algorithms to maintain local running times, meaning their work complexity scales with the size of the cluster and not the entire graph, crucial for efficiency.

Datasets

The authors evaluate their algorithms on a variety of large-scale, unweighted, undirected real-world and synthetic graphs. These include:

  • Real-world graphs: soc-LJ, cit-Patents, com-LJ, com-Orkut, com-friendster, Twitter, and Yahoo.
  • Synthetic graphs: randLocal and 3D-grid.

The paper provides a table (Table 2) detailing the number of vertices and edges for each graph.

Key Insights and Ideas

  • Parallelism unlocks interactive exploration: By parallelizing local clustering, the paper makes it feasible for data analysts to interactively explore graph structures and properties on massive datasets, which was previously too slow.
  • Ligra's suitability for local algorithms: The Ligra framework's ability to perform work proportional to active vertices and edges is highlighted as a key enabler for efficient parallel local graph clustering.
  • Sweep cut is a bottleneck: The sweep cut procedure, while essential, can be a significant portion of the overall runtime. Parallelizing it effectively is crucial for overall performance.
  • Trade-offs in parameter tuning: The study on parameter settings (Figures 8) reveals that increasing computational effort (e.g., more iterations, smaller epsilon) generally leads to better conductance but higher running times, emphasizing the need for efficient algorithms to explore these trade-offs.
  • Concurrent hash tables offer an advantage: For some algorithms (Nibble, HK-PR), the parallel implementation with concurrent hash tables even outperforms the sequential version on a single thread, suggesting the efficiency of these data structures.

Key Results

  • Significant speedups: The parallel algorithms achieve substantial speedups, with self-relative speedups ranging from 9-35x on 40 cores for Nibble, PR-Nibble, and HK-PR. The rand-HK-PR algorithm shows even better speedups (over 40x) due to its embarrassingly parallel nature.
  • Efficient sweep cut: The parallel sweep cut achieves speedups of 23-28x on 40 cores, significantly improving the performance of the overall clustering pipeline.
  • Work-efficient parallelization: The parallel algorithms match the asymptotic work complexity of their sequential counterparts, ensuring they remain "local" in terms of computational effort.
  • Practical performance: Experiments on large-scale graphs demonstrate good parallel scalability and practical performance, enabling the generation of network community profile plots for graphs with billions of edges.
  • PR-Nibble optimization: The optimized update rule for PR-Nibble consistently improves running time by a factor of 1.4-6.4x.

Limitations and Future Work

  • Memory contention: The paper notes that memory contention can limit perfect parallel speedup, especially when running in parallel.
  • Small frontiers: For graphs that are not well-connected, the frontiers (active sets of vertices) can be too small to benefit significantly from parallelism, leading to less impressive speedups.
  • Asynchronous PR-Nibble: The authors mention that developing an asynchronous version of PR-Nibble that preserves mass and works well in practice is a direction for future work.
  • Traversing graphs from disk: For scenarios where graphs don't fit in memory, developing efficient methods for traversing graphs locally from disk is an area of interest.
  • Parallelizing flow-based algorithms: The authors are also interested in parallelizing local flow-based algorithms to further improve cluster quality.

Summary updated

BibTeX
@article{shun2016parallel,
  author = {Julian Shun and Farbod Roosta-Khorasani and Kimon Fountoulakis and Michael W. Mahoney},
  title = {{Parallel Local Graph Clustering}},
  journal = {Proc. VLDB Endow.},
  year = {2016},
  doi = {10.14778/2994509.2994522},
}
Figure