Scalable Algorithm for Dynamic Quasi-clique Detection

Jingbang Chen, Weinuo Li, Yingli Zhou, Hao Wu, Can Wang, Yixiang Fang, Chenhao MaarXiv 2026

TL;DR

Real-world networks are constantly changing, making the discovery of dense subgraphs (quasi-cliques) computationally grueling if done from scratch after every update. This paper introduces DMI, the first efficient framework for tracking the largest quasi-clique dynamically using smart MinHash techniques, achieving up to a 10,000× speedup over static baselines without sacrificing solution quality.

What Problem Does This Paper Address?

Finding dense subgraphs is a cornerstone task in graph mining, crucial for community detection, fraud discovery, and bioinformatics. While a perfect "clique" requires every node to connect to every other node, real-world data is noisy and incomplete. This makes the more relaxed $\alpha$-quasi-clique—where a certain percentage of edges can be missing—much more practical.

Figure 1: Illustrating clique and quasi-clique.

However, real networks are inherently dynamic: edges appear and disappear constantly as people make friends, transactions occur, or proteins interact. Re-running state-of-the-art static algorithms after every single edge change is impossibly slow. The authors tackle the Dynamic Maximum Quasi-Clique Problem (DMQCP): how to continuously maintain and update the largest quasi-clique in a graph under a continuous stream of edge insertions and deletions.

Methods

The authors propose DMI (Dynamic MinHash-based Index). Instead of computing exact neighborhood similarities from scratch, DMI uses locality-sensitive hashing—specifically $l$-buffered $k$-MinHash and Bottom-$k$ MinHash—to approximate Jaccard similarities and containment scores efficiently in a dynamic setting.

Crucially, instead of tracking just a single "best" quasi-clique, DMI maintains a candidate list ($L$) of near-optimal quasi-cliques. When an edge is added or removed, DMI incrementally updates the hash signatures and vertex degrees, checking if new candidates should enter the list or if existing ones have degraded. To prevent the candidate list from becoming structurally biased over time, DMI incorporates a batch reconstruction strategy that periodically rebuilds the list from scratch after a set number of operations.

As a secondary contribution, they also introduce NSF (Neighbor-Search-based Framework), a baseline variant that tracks quasi-cliques across all neighborhoods directly using localized neighbor searches, though it lacks the advanced indexing and memory efficiency of DMI.

Datasets

The authors evaluated their approach using nine well-known real-world datasets from SNAP and KONECT, spanning social networks, citation graphs, and web crawls:

  • Ego-facebook (FB)
  • Ca-HepPh (HP)
  • Ca-CondMat (CM)
  • Email-Enron (ER)
  • Web-Stanford (SF)
  • Web-BerkStan (BS)
  • Web-Google (GG)
  • Soc-Pokec (PK)
  • dblp_coauthor (DB)

Since these datasets are originally static, the authors simulated dynamic environments by generating random edge insertions/deletions (rand_), incremental-only (inc_), decremental-only (del_), and temporal window-based (temp_/tinc_) operation streams.

Key Insights and Ideas

  • The Power of a Portfolio: Tracking a list of top candidates rather than a single maximum quasi-clique is the secret to surviving dynamic updates. If the absolute best clique degrades due to an edge deletion, a runner-up in the candidate list is already primed to take its place.
  • Hashing Beats Searching: Approximating neighborhood containment scores via dynamic MinHash variants turns a costly global graph search into a fast, localized signature update.
  • Amortizing the Cost: Periodic batch reconstruction strikes a perfect balance between real-time responsiveness and long-term structural accuracy, preventing the algorithm from getting stuck in local minima.

Key Results

  • Massive Speedups: DMI (both the -bf and -bt variants) outperforms static baselines (like FastNBSim and NuQClq) by two to four orders of magnitude (up to 10,000× faster). DMI consistently processes updates in under 10 seconds, whereas exact local search methods can take over $10^5$ seconds per operation.
Figure 2: The average runtime of each update for different algorithms on datasets generated from uniformly randomly edge insertions and deletions.
  • High Quality Maintained: Despite relying on approximations, DMI maintains excellent solution quality, consistently finding quasi-cliques with high edge density ($\delta(S) \ge 0.91$) comparable to exhaustive static methods.

Limitations and Future Work

While DMI scales remarkably well, its performance relies on tuning hyperparameters like the batch size and candidate list size ($B$). The authors note a clear time-quality trade-off: very frequent rebuilding slows down runtime, while rare rebuilding can slightly degrade solution quality over long horizons.

Future work includes extending this dynamic framework to other relaxed dense subgraph structures, such as $k$-plexes or $\delta$-cliques, and adapting the algorithm for fully distributed or streaming architectures.

Summary updated

BibTeX
@misc{chen2026scalable,
  author = {Jingbang Chen and Weinuo Li and Yingli Zhou and Hao Wu and Can Wang and Yixiang Fang and Chenhao Ma},
  title = {{Scalable Algorithm for Dynamic Quasi-clique Detection}},
  year = {2026},
  eprint = {2605.26235},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.26235},
}
Figure