NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Parallel Index-Based Structural Graph Clustering and Its Approximation

Tom Tseng, Laxman Dhulipala, Julian Shun

TL;DR

Researchers from MIT CSAIL have developed a highly efficient parallel algorithm for structural graph clustering (SCAN) that uses a precomputed index to make parameter tuning nearly instantaneous. By combining work-efficient parallel primitives with Locality-Sensitive Hashing (LSH), they achieved up to a 151x speedup in index construction and significantly outperformed existing state-of-the-art parallel clustering tools.

What Problem Does This Paper Address?

Graph clustering—grouping "similar" nodes in a network—is essential for everything from social network analysis to biological research. One of the most popular methods is SCAN (Structural Clustering Algorithm for Networks), which identifies clusters based on how many neighbors two nodes share. Unlike many algorithms, SCAN is unique because it also identifies "hubs" (nodes connecting different clusters) and "outliers" (isolated nodes).

However, SCAN faces two major hurdles:

  1. Computational Cost: Calculating similarity for every pair of adjacent nodes is slow on massive graphs.
  2. The "Goldilocks" Problem: SCAN requires two parameters ($\mu$ and $\epsilon$) to define what a "cluster" is. Users often have to run the algorithm dozens of times with different settings to find a result that makes sense.

While previous researchers created the GS*-Index to allow for fast queries across different parameters, it was a sequential algorithm. Existing parallel versions of SCAN didn't use indices, meaning they had to re-run heavy computations every time a user changed a parameter.

Methods

The authors introduce a parallel, index-based SCAN algorithm that bridges the gap between fast parameter tuning and high-performance parallel execution.

1. Parallel Index Construction

The algorithm builds two main data structures:

  • Neighbor Order ($NO$): An adjacency list where each node's neighbors are sorted by their similarity to that node.
  • Core Order ($CO$): A list of potential "core" nodes (the seeds of clusters) sorted by their "core threshold."

To make this fast, the team used integer sorting and parallel triangle counting (to find shared neighbors). They also employed doubling search, a technique that allows the algorithm to find relevant sections of the index with optimal "work" (total operations) and "span" (the longest chain of sequential dependencies).

2. Approximation via LSH

To further accelerate the process, they integrated Locality-Sensitive Hashing (LSH). Instead of exactly counting shared neighbors for every edge—which is the most expensive part of the process—they use SimHash (for cosine similarity) or MinHash (for Jaccard similarity) to create small "sketches" of each node's neighborhood. Comparing these sketches is much faster than comparing full neighbor lists.

3. Optimized Implementation

The code was built using the Graph Based Benchmark Suite (GBBS), utilizing multicore shared-memory features like concurrent hash tables and union-find for connectivity queries.

Datasets

The researchers evaluated their work on several large-scale real-world graphs:

  • Social Networks: Orkut (3M nodes, 117M edges) and Friendster (65M nodes, 1.8B edges).
  • Web Data: WebBase (118M nodes, 854M edges).
  • Biological Data: Human brain connections and gene relationship graphs (Blood vessel, Cochlea).
  • Weighted Graphs: The biological datasets were used specifically to test weighted cosine similarity.

Key Insights and Ideas

  • Indices are the Secret Sauce: By precomputing the $NO$ and $CO$ structures, the cost of a clustering query depends on the size of the output clusters, not the size of the entire graph. This makes interactive data exploration possible.
  • Theoretical Efficiency Matters: The authors proved that their parallel version matches the work bounds of the best sequential algorithms while achieving logarithmic span. This means the algorithm scales beautifully as you add more CPU cores.
  • LSH is "Good Enough": A major "aha moment" was proving that while LSH is an approximation, it provides strong theoretical guarantees. If the number of samples is high enough, edges are almost certainly classified correctly as being inside or outside a cluster threshold. In practice, even a small number of samples yielded high-quality clusters.

Key Results

  • Massive Speedups: On a 48-core machine, the parallel index construction was 50–151x faster than the sequential GS*-Index.
  • Query Performance: Once the index was built, extracting a clustering for specific parameters was 5–32x faster than GS-Index and consistently beat ppSCAN*, the previous state-of-the-art parallel implementation.
  • Scaling: The algorithm showed excellent self-relative speedup (23–70x) when moving from 1 thread to 48 threads (96 with hyper-threading).
  • LSH Efficiency: Using LSH significantly reduced index construction time without sacrificing much clustering quality (measured by modularity and Adjusted Rand Index).

Limitations and Future Work

  • Memory Constraints: One version of the algorithm uses matrix multiplication for similarity. While theoretically fast, it requires too much memory for the largest graphs (like Friendster), forcing the use of the merge-based approach instead.
  • LSH Sample Size: While the paper provides accuracy bounds for LSH, these bounds suggest a high number of samples are needed for "perfect" accuracy, though the experiments show much fewer are needed for "good" results.
  • Dynamic Graphs: The current index is static. The authors noted that a promising future direction is developing parallel algorithms to update the index as edges are added or removed from a graph in real-time.

Summary updated

BibTeX
@inproceedings{tseng2021parallel,
  author = {Tom Tseng and Laxman Dhulipala and Julian Shun},
  title = {{Parallel Index-Based Structural Graph Clustering and Its Approximation}},
  booktitle = {SIGMOD},
  year = {2021},
  doi = {10.1145/3448016.3457278},
}

Loading related content...

Figure