Parallel Clique Counting and Peeling Algorithms

Jessica Shi, Laxman Dhulipala, Julian Shun

TL;DR

This paper introduces ARB-COUNT, a new parallel algorithm for counting $k$-cliques that is both work-efficient and achieves polylogarithmic span (parallel time). By leveraging low out-degree orientations and optimized parallel ranking, the authors scaled $k$-clique counting to the largest publicly available graph—Hyperlink2012—processing over 200 billion edges for the first time.

What Problem Does This Paper Address?

Finding $k$-cliques (complete subgraphs of size $k$) is a cornerstone of network analysis, used in everything from community detection to learning network embeddings. However, as $k$ increases, the number of potential cliques explodes combinatorially.

While sequential algorithms like Chiba and Nishizeki’s have existed for decades, they don't scale to today's massive web-scale graphs. Existing parallel implementations, such as KCLIST, often lack strong theoretical bounds on parallel time (span) and suffer from high memory overhead, limiting their ability to handle graphs with billions of edges. The challenge is to design an algorithm that is "work-efficient" (matches the best sequential complexity) while being fast in parallel and memory-lean.

Methods

The authors propose a suite of algorithms centered around the concept of low out-degree orientation.

  1. ARB-COUNT: This is the core counting algorithm. It first directs the edges of an undirected graph to ensure every vertex has a small out-degree (bounded by the graph's arboricity $\alpha$). It then uses a recursive parallel procedure to explore potential cliques. Because the out-degree is small, the search space at each step is significantly pruned.
  2. Parallel Ranking: To orient the graph efficiently, the authors parallelized two existing techniques (Barenboim-Elkin and Goodrich-Pszona). These algorithms "peel" the graph in rounds to create a vertex ordering that minimizes out-degree.
  3. Colorful Sparsification: For cases where exact counts are too expensive, they provide a sampling method that produces unbiased estimates of clique counts with much lower computational cost.
  4. $k$-Clique Peeling (ARB-PEEL): They extend their techniques to find "densest subgraphs" based on $k$-cliques, providing both an exact (but P-complete) peeling algorithm and a faster polylogarithmic-span approximation.

Datasets

The researchers evaluated their work on a variety of real-world datasets from the SNAP collection and massive web crawls:

  • Social/Citation Networks: com-dblp, com-orkut, com-friendster, com-lj.
  • Web Graphs: ClueWeb (74B edges), Hyperlink2014 (124B edges), and Hyperlink2012 (225B edges).
  • Benchmarks: They compared against state-of-the-art tools including KCLIST, PIVOTER, WCO, and BINARYJOIN.

Key Insights and Ideas

  • Theoretical Efficiency Meets Practice: The algorithm achieves a work complexity of $O(m\alpha^{k-2})$ and a span of $O(k \log n + \log^2 n)$. This means it is as efficient as the best sequential algorithm but can utilize hundreds of cores effectively.
  • Memory is the Bottleneck: A major "aha" moment is the space complexity. ARB-COUNT requires $O(m + P\alpha)$ space, whereas KCLIST requires $O(m + P\alpha^2)$. On massive graphs, this reduction in memory per processor is what allows the algorithm to scale where others crash.
  • Orientation Matters: The choice of vertex ordering (degree-based vs. core-based) significantly impacts performance. For small $k$, simple degree ordering is fastest due to low overhead; for large $k$, more complex orientations like Goodrich-Pszona pay off by reducing the total work.
  • P-Completeness: The authors prove that finding the exact $k$-clique peeling hierarchy is P-complete for $k > 2$. This explains why a perfectly parallelizable (low-span) exact solution is likely impossible, justifying the need for their high-quality approximation algorithms.

Key Results

  • Scalability: ARB-COUNT successfully computed 4-clique counts on the 225-billion-edge Hyperlink2012 graph. No prior implementation had reported results on a graph of this magnitude.
  • Speedup: On a 30-core machine, the algorithms achieved up to 38.99x self-relative speedup.
  • Competitive Edge: ARB-COUNT outperformed KCLIST by up to 9.88x and other competitors (like PIVOTER or WCO) by several orders of magnitude on large graphs.
  • Approximation Quality: Their sampling algorithm was 5.32–6573x faster than exact counting while maintaining a low error rate of approximately 5%.

Limitations and Future Work

While the counting algorithm is highly parallelizable, the exact $k$-clique densest subgraph (peeling) algorithm is constrained by its inherent sequential nature (P-completeness). Although the authors provide a parallel approximation, finding the exact densest subgraph on massive scales remains a challenge.

The authors suggest that a promising direction for future research is extending these work-efficient parallel techniques to more general subgraph problems, such as $(r, s)$-nucleus decomposition, which generalizes both $k$-core and $k$-clique densest subgraph problems.

Summary updated

BibTeX
@inproceedings{shi2021parallel,
  author = {Jessica Shi and Laxman Dhulipala and Julian Shun},
  title = {{Parallel Clique Counting and Peeling Algorithms}},
  booktitle = {ACDA},
  year = {2021},
  doi = {10.1137/1.9781611976830.13},
}
Figure