A Faster Branching Algorithm for the Maximum k-Defective Clique Problem

Chunyu Luo, Yi Zhou, Zhengren Wang, Mingyu Xiao

TL;DR

Researchers have developed a new branching algorithm, DnBk, that significantly speeds up finding the largest "nearly complete" subgraphs (k-defective cliques) in massive networks. By cleverly decomposing the problem to leverage highly optimized maximum clique solvers and introducing a novel "conflict-based" pruning rule, the algorithm achieves a better theoretical runtime bound and outperforms existing state-of-the-art tools on real-world social and biological datasets.

What Problem Does This Paper Address?

In graph theory, a clique is a subset of vertices where every single pair is connected by an edge. While mathematically elegant, perfect cliques are often too restrictive for real-world data. Social networks have missing friendships, and biological protein-interaction maps are notoriously noisy.

To handle this, researchers use the $k$-defective clique model, which allows a subgraph to miss up to $k$ edges. However, finding the maximum $k$-defective clique is an NP-hard problem, meaning it becomes exponentially harder as the graph grows. Previous algorithms struggled with large-scale graphs or higher values of $k$ because their search space (the "branches" they had to explore) was simply too vast.

Methods

The authors introduce an algorithm called DnBk (Decompose-and-Branch for $k$-defective cliques) based on three core innovations:

  1. Structural Decomposition: They observed that any $k$-defective clique can be partitioned into two parts: a small "defective set" (where vertices are missing at least one edge) and a "perfect clique." Instead of building the whole thing from scratch, the algorithm enumerates the small defective sets and then calls a highly efficient, standard Maximum Clique algorithm as a subroutine to fill in the rest.
  2. Degeneracy Ordering: To avoid redundant work, they process vertices using a "degeneracy ordering." This technique effectively breaks a massive graph into smaller, more manageable sub-problems based on the graph's local density rather than its total size.
  3. Conflict-Based Pruning (PackColorConf): This is the "secret sauce" for efficiency. In a branch-and-bound algorithm, you want to stop searching a path as soon as you know it won't lead to a better solution than the one you already found. The authors defined "conflict vertices"—pairs of vertices that mathematically cannot coexist in a $k$-defective clique of a certain size. They integrated these conflicts into a new upper-bounding rule that prunes unpromising branches much earlier than previous methods.

Datasets

The algorithm was evaluated against three major benchmark suites containing hundreds of real-world graphs:

  • NDR (Network Data Repository): 139 graphs from various domains (social, biological, etc.), with up to 58 million vertices.
  • DIMACS10 & SNAP: 37 graphs often used in algorithm competitions, including large web crawls.
  • Socfb (Facebook): 114 graphs extracted from Facebook social networks, with up to 118 million vertices.

Key Insights and Ideas

  • Don't Reinvent the Wheel: By treating the Maximum Clique problem as a "black box" subroutine, the authors could take advantage of decades of optimization in that specific sub-field rather than building a $k$-defective solver from the ground up.
  • Complexity is Local: The paper proves a new theoretical complexity bound of $O^*(\gamma_c^{d(G)})$, where $d(G)$ is the graph's degeneracy. In plain English: the time it takes to solve the problem depends on how "tangled" the densest part of the graph is, not how many total vertices the graph has. This explains why it works so well on massive but sparse real-world networks.
  • Negative Information is Power: Most previous bounds focused on how many vertices could fit in a clique. By focusing on which vertices conflict (cannot be together), the authors created a much tighter filter for the search process.

Key Results

  • Speedup: DnBk consistently outperformed the previous leaders (kDC and KDClub). For example, on the NDR dataset with $k=20$, DnBk solved significantly more instances within a 3-hour cutoff than its competitors.
  • Pruning Efficiency: The new conflict-based bound was shown to be theoretically "tighter" than existing packing and coloring bounds. In practice, this meant the algorithm had to explore far fewer "nodes" in its search tree—sometimes orders of magnitude fewer than previous methods.
  • Scalability: The algorithm handled $k$ values up to 20 with relative ease, whereas previous state-of-the-art methods often timed out once $k$ exceeded 5 or 10 on dense instances.

Limitations and Future Work

  • Overhead on "Easy" Graphs: The authors noted that for very simple graphs where $k=1$, the extra computational effort to calculate the complex conflict-based bounds might actually make the algorithm slightly slower than simpler methods, though it remains dominant on hard instances.
  • Generalization: The concept of "conflict relationships" is common in many graph problems (like the $k$-plex or $s$-bundle problems). The authors suggest that their bounding technique could be generalized to improve solvers for these other clique-relaxation models.
  • Parallelization: The current algorithm is sequential. Given the branching nature of the approach, there is significant potential for future work in parallelizing the search across multiple CPU cores.

Summary updated

Abstract

A k-defective clique of an undirected graph G is a subset of its vertices that induces a nearly complete graph with a maximum of k missing edges. The maximum k-defective clique problem, which asks for the largest k-defective clique from the given graph, is important in many applications, such as social and biological network analysis. In the paper, we propose a new branching algorithm that takes advantage of the structural properties of the k-defective clique and uses the efficient maximum clique algorithm as a subroutine. As a result, the algorithm has a better asymptotic running time than the existing ones. We also investigate upper-bounding techniques and propose a new upper bound utilizing the conflict relationship between vertex pairs. Because the conflict relationship is common in many graph problems, we believe that this technique can be potentially generalized. Finally, experiments show that our algorithm outperforms state-of-the-art solvers on a wide range of open benchmarks. Our source code, as well as the experiment data, is open source and available unmapped: uri https://github.com/cy-Luo000/Maximum-k-Defective-Clique.git.
BibTeX
@inproceedings{luo2024faster,
  author = {Chunyu Luo and Yi Zhou and Zhengren Wang and Mingyu Xiao},
  title = {{A Faster Branching Algorithm for the Maximum k-Defective Clique Problem}},
  booktitle = {ECAI},
  year = {2024},
  url = {https://openreview.net/forum?id=3ct6yBE9fr},
}
Figure