Enumerating Top-k Quasi-Cliques

Seyed-Vahid Sanei-Mehri, Apurba Das, Srikanta Tirthapura

TL;DR

This paper tackles the challenging problem of finding the k largest "quasi-cliques" (dense but not perfectly connected subgraphs) in large networks. They introduce KERNELQC, a novel heuristic algorithm that significantly outperforms existing methods in speed and scalability, achieving up to a 1000x speedup while maintaining high accuracy.

What Problem Does This Paper Address?

Identifying dense substructures within large networks is crucial for understanding complex systems, from biological interactions to social networks. While "cliques" (perfectly connected subgraphs) are well-studied, real-world data often has missing edges, making "quasi-cliques" a more practical model. A quasi-clique is a subgraph where each vertex has a minimum degree relative to the subgraph's size. The challenge lies in efficiently finding not just any quasi-cliques, but the k largest ones that are also "maximal" (not contained within a larger quasi-clique). This problem is computationally demanding, and existing methods struggle with scalability and speed, especially for large graphs.

Methods

The authors propose a novel heuristic algorithm called KERNELQC. The core idea is to leverage the observation that larger quasi-cliques often contain smaller, even denser subgraphs called "kernels" (which are quasi-cliques with a higher density threshold, γ' > γ). KERNELQC works in two main stages:

  1. Kernel Detection: It first identifies these dense "kernels" by efficiently enumerating maximal quasi-cliques with a higher density threshold (γ').
  2. Kernel Expansion: These kernels are then "expanded" by searching for quasi-cliques with the original, lower density threshold (γ) that contain these kernels.

This approach is more efficient because finding denser subgraphs (kernels) is computationally cheaper, and these kernels provide a good starting point for finding the desired quasi-cliques. They also introduce a modified version of the QUICK algorithm (QUICKM) that omits the maximality check during kernel extraction for further speedup, relying on a post-processing step to ensure maximality and select the top-k results.

Datasets

The authors evaluated their KERNELQC algorithm on several real-world networks:

  • Advogato
  • Route-views
  • Bible
  • Slash
  • Live-mocha
  • Youtube
  • Hyves

These datasets vary in size and density, allowing for a comprehensive evaluation of the algorithm's performance across different graph characteristics.

Key Insights and Ideas

  • Maximality is Hard: The paper proves that determining if a given quasi-clique is maximal is an NP-hard problem, which is a significant difference from the case of cliques. This highlights the inherent difficulty of exact quasi-clique enumeration.
  • Kernels as Building Blocks: The key insight is that large quasi-cliques often contain smaller, denser "kernels." This observation forms the basis of KERNELQC, allowing for a more efficient search strategy.
  • Density-Complexity Trade-off: The authors demonstrate that as the density threshold (γ) increases, the computational cost of enumerating quasi-cliques decreases exponentially. This property is exploited by KERNELQC's kernel detection phase.
  • Heuristics for Scalability: Recognizing the NP-hard nature of the problem, KERNELQC employs a heuristic approach to achieve significant speedups and scalability, making it practical for large-scale graph analysis.

Key Results

  • Massive Speedup: KERNELQC achieves dramatic speedups, often exceeding three orders of magnitude (up to 1000x) compared to the state-of-the-art BASELINE algorithm (which uses the QUICK algorithm). For instance, on the Advogato graph, KERNELQC was 984x faster for finding top-100 0.7-quasi-cliques.
  • Scalability: The algorithm scales to much larger graphs than previous methods. For graphs with millions of vertices and edges (e.g., Youtube, Hyves), KERNELQC could find top-k quasi-cliques in minutes or hours, while BASELINE did not finish within 72 hours.
  • High Accuracy: Despite being a heuristic, KERNELQC demonstrates high accuracy. The error percentage (compared to the exact BASELINE algorithm) was often zero and generally less than 0.9% across various graphs and parameter settings. In some cases, the results exactly matched the exact algorithm.

Limitations and Future Work

  • Heuristic Nature: KERNELQC is a heuristic algorithm, meaning it does not guarantee finding the absolute top-k maximal quasi-cliques in all cases, although experimental results show it is highly accurate.
  • Parameter Tuning: The performance and accuracy of KERNELQC depend on user-defined parameters like γ' (kernel density threshold) and k' (number of kernels to consider). The paper provides insights into their impact but choosing optimal values might require domain knowledge or further experimentation.
  • Future Work: The authors suggest exploring whether the kernel detection and expansion idea can be applied to other types of dense subgraph structures (like quasi-bicliques) and investigating parallelization strategies for their algorithms.

Summary updated

Abstract

Quasi-cliques are dense incomplete subgraphs of a graph that generalize the notion of cliques. Enumerating quasi-cliques from a graph is a robust way to detect densely connected subgraphs, with applications to bio-informatics and social network analysis. However, enumerating quasi-cliques from a graph is a challenging problem, even harder than the problem of enumerating cliques. We consider enumerating top-k degree-based quasi-cliques: (1) We show that even the task of detecting if a given degree-based quasi-clique is maximal (i.e. not contained within another quasi-clique) is NP-hard (2) We present a novel heuristic algorithm KERNELQC to enumerate the k largest quasi-cliques in a graph. Our method is based on identifying kernels of extremely dense subgraphs within a graph, following by growing subgraphs around these kernels, to arrive at quasi-cliques that satisfy required thresholds on degree (3) Experimental results show that our algorithm is accurate, often more than three orders of magnitude faster than the prior state-of-the-art methods, and scales to larger graphs than current methods.
BibTeX
@inproceedings{saneimehri2018enumerating,
  author = {Seyed-Vahid Sanei-Mehri and Apurba Das and Srikanta Tirthapura},
  title = {{Enumerating Top-k Quasi-Cliques}},
  booktitle = {BigData},
  year = {2018},
  url = {https://openreview.net/forum?id=6iRpMlbCuUO},
}
Figure