Efficient k-clique Listing with Set Intersection Speedup [Technical Report]

Zhirong Yuan, You Peng, Peng Cheng, Li Han, Xuemin Lin, Lei Chen, Wenjie ZhangarXiv 2022 · DOI

TL;DR

This paper introduces two novel algorithms, SDegree and BitCol, for efficiently listing k-cliques in large graphs. By focusing on accelerating set intersection operations using SIMD instructions and introducing effective preprocessing techniques, the authors achieve significant speedups over existing state-of-the-art methods, making k-clique listing more feasible for real-world applications.

What Problem Does This Paper Address?

Listing all k-cliques in a graph is a fundamental problem in graph mining with applications ranging from community detection in social networks to motif analysis in biological systems. A k-clique is a subgraph where every pair of nodes is connected by an edge, and there are exactly k nodes. The challenge lies in the fact that the number of k-cliques can grow exponentially with k and the graph size, making brute-force approaches computationally infeasible. Existing state-of-the-art algorithms like DDegree and DDegCol rely on vertex ordering heuristics to prune the search space. However, these methods often incur significant time and space overhead due to the construction and maintenance of induced subgraphs and face difficulties in leveraging data-level parallelism (like SIMD instructions). This paper aims to address these limitations by proposing faster algorithms that exploit parallelism and reduce overhead.

Methods

The authors propose two new algorithms, SDegree and BitCol, for k-clique listing. Both algorithms share a common framework that includes:

  • Preprocessing Techniques:
    • Pre-Core: This technique prunes nodes that cannot be part of any k-clique by iteratively removing nodes with degrees less than k-1. This is based on the observation that a k-clique is a special case of a (k-1)-core.
  • Pre-List: This technique further prunes the graph by identifying and directly reporting k-cliques within connected components that are themselves cliques.
  • Accelerated Set Intersections: The core innovation is the acceleration of set intersection operations, which are frequent in recursive k-clique listing.
  • SDegree: This algorithm uses a merge-join approach for set intersections and leverages degree ordering for vertex selection. It is designed to be compatible with SIMD (Single Instruction, Multiple Data) instructions, allowing for parallel processing of multiple data elements simultaneously.
  • BitCol: This algorithm builds upon SDegree by incorporating color ordering (based on greedy graph coloring) for more effective pruning. It further accelerates set intersections by using bitmaps to compress neighbor sets and performing bitwise operations, which are highly amenable to SIMD acceleration.

Both algorithms are designed to be parallelizable, with the authors specifically mentioning the use of SIMD instructions to exploit data-level parallelism.

Datasets

The authors evaluated their algorithms on 10 real-world datasets. These datasets are described in Table III and include:

  • BerkStan
  • Pokec
  • DBLP
  • CitPatents
  • Linkedin
  • Stanford
  • WebUK05
  • ClueWeb09
  • Wikipedia13
  • AllWebUK02

The paper notes that for datasets with very large maximum clique sizes (e.g., BerkStan), listing all k-cliques can still be computationally infeasible due to the sheer number of cliques.

Key Insights and Ideas

  • Set Intersection is the Bottleneck: The paper strongly emphasizes that set intersection operations are a critical bottleneck in k-clique listing algorithms. Accelerating these operations is key to improving overall performance.
  • SIMD for Set Intersections: The authors demonstrate that SIMD instructions, which allow for parallel operations on multiple data elements, can be effectively leveraged to speed up merge-based set intersection algorithms. This is a significant advantage over hash-based approaches, which are harder to parallelize with SIMD.
  • Preprocessing is Crucial: The proposed Pre-Core and Pre-List techniques are shown to be highly effective in reducing the graph size and pruning the search space, leading to substantial speedups.
  • Color Ordering Offers Stronger Pruning: While degree ordering is effective, color ordering, when combined with appropriate techniques, provides even more powerful pruning capabilities for k-clique listing.
  • Bitmaps for Compression: Using bitmaps to represent neighbor sets offers a compact and efficient way to perform set intersections, especially when combined with SIMD.

Key Results

  • Significant Speedups:
    • SDegree (degree ordering) outperforms DDegree by an average of 3.75x.
  • BitCol (color ordering) outperforms DDegCol by an average of 5.67x.
  • Comparable Time Complexity, Lower Space Complexity: Theoretically, the proposed algorithms have comparable time complexity to state-of-the-art methods but offer slightly lower space complexity.
  • Effective Preprocessing: The preprocessing techniques (Pre-Core and Pre-List) can achieve speedups of up to an order of magnitude on certain datasets like Linkedin.
  • Parallel Performance: Parallel versions of the algorithms (using 32 threads) show further acceleration, with BitCol32 demonstrating better scalability than BitCol.
  • EdgeParallel vs. NodeParallel: The EdgeParallel strategy shows higher parallelism than NodeParallel, and the proposed algorithms maintain their superiority under this strategy as well.

Limitations and Future Work

  • Large Maximum Clique Size: The paper acknowledges that when the maximum clique size (w) is large and k is close to w/2, the problem of listing k-cliques becomes extremely challenging, even for their optimized algorithms. The existing methods spend significant time enumerating cliques within these large maximal cliques.
  • Future Work Suggestion: The authors suggest exploring whether k-cliques can be enumerated separately within and outside the maximum (or near-maximum) cliques to potentially improve efficiency in such challenging scenarios.

Summary updated

BibTeX
@misc{yuan2022efficient,
  author = {Zhirong Yuan and You Peng and Peng Cheng and Li Han and Xuemin Lin and Lei Chen and Wenjie Zhang},
  title = {{Efficient k-clique Listing with Set Intersection Speedup [Technical Report]}},
  year = {2022},
  eprint = {2203.13512},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2203.13512},
}
Figure