An Exact Algorithm for the Maximum Weight Clique Problem in Large Graphs

Hua Jiang, Chu-Min Li, Felip ManyàAAAI 2017

Abstract

Finding the Maximum Weight Clique (MWC) is a fundamental NP-hard problem with applications ranging from social network analysis to biological modeling. While heuristic methods have traditionally been preferred for massive graphs due to the perceived computational cost of exact solvers, this paper introduces WLMC (Weighted Large Maximum Clique), an exact branch-and-bound algorithm that challenges this convention. By combining efficient graph-reduction preprocessing with a novel incremental vertex-weight splitting technique, WLMC consistently outperforms state-of-the-art heuristic and exact algorithms on graphs with millions of vertices, proving that exactness can enhance rather than hinder performance.

Introduction

A clique is a subset of vertices in a graph where every vertex is connected to every other vertex. In the Maximum Weight Clique (MWC) problem, each vertex is assigned a numerical weight, and the objective is to identify the clique with the highest total weight. As real-world datasets—such as social networks and web link graphs—grow to include millions of nodes, the MWC problem becomes increasingly difficult to solve exactly. Prevailing research often relies on heuristic "local search" algorithms that provide fast but unproven solutions. WLMC aims to bridge this gap by providing a guaranteed optimal solution with competitive or superior speed.

Methodology

WLMC operates within a Branch-and-Bound (BnB) framework, utilizing two primary innovations to prune the search space effectively:

  1. Efficient Preprocessing (Initialize): The algorithm begins by ordering vertices by degree and calculating weight bounds. Vertices that cannot mathematically contribute to a clique heavier than the current best-known solution are discarded immediately, significantly reducing the graph's size before the main search phase.
  2. Incremental Vertex-Weight Splitting (UP&Split): This technique provides tighter upper bounds on potential clique weights. While standard algorithms use independent sets to estimate bounds, WLMC identifies "conflicting" independent sets. By splitting the weights of vertices across these sets, the algorithm can more aggressively prune branches of the search tree that do not contain optimal solutions.
Performance comparison of WLMC against its variants without preprocessing (prep1) and weight splitting (UP&Split), demonstrating the critical impact of these innovations on execution time.

As shown in the ablation study above, the inclusion of both preprocessing and weight-splitting is vital. For instance, on the soc-flickr-und graph, the full WLMC algorithm is approximately 13 to 18 times faster than versions lacking these features.

Experimental Evaluation

The authors evaluated WLMC against leading competitors, including Cliquer, MWCLQ, LSCC+BMS, and FastWClq, across three major benchmarks:

  • Real-World Graphs: 187 instances from the Network Data Repository, including massive social networks like Friendster.
  • DIMACS Benchmarks: Standard synthetic graphs designed to test clique-finding limits.
  • Winner Determination Problem (WDP): 500 instances from combinatorial auction benchmarks.

Key Results and Discussion

WLMC demonstrated remarkable universality and speed. It successfully solved all 187 real-world graph instances, many of which caused previous exact solvers like MWCLQ to fail.

Comprehensive comparison of WLMC with state-of-the-art heuristic solvers (LSCC+BMS and FastWClq). WLMC frequently finds proven optimal solutions faster than heuristics find sub-optimal ones.

Data from the comparative trials (above) reveals that WLMC often finds the proven optimal solution faster than heuristic algorithms find a sub-optimal "best guess." In the soc-dogster instance, WLMC outperformed leading heuristics by a factor of 41 to 72. This efficiency stems from the algorithm's ability to exploit the low density and "small-world" properties of real-world networks. The exact nature of the algorithm allows it to mathematically prove a path is a dead end, enabling it to skip vast portions of the search space that heuristics might otherwise explore aimlessly.

Conclusion

The success of WLMC refutes the long-held hypothesis that exact MWC algorithms are unsuitable for large-scale graphs. By integrating advanced logical reasoning—specifically weight splitting inspired by MaxSAT—into a branch-and-bound framework, the authors have provided a tool that is both faster and more reliable than existing heuristic methods. Future work may involve further refining these logical reasoning techniques or parallelizing the algorithm to address even larger, web-scale datasets.

Summary updated

BibTeX
@inproceedings{jiang2017exact,
  author = {Hua Jiang and Chu-Min Li and Felip Manyà},
  title = {{An Exact Algorithm for the Maximum Weight Clique Problem in Large Graphs}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2017},
  doi = {10.1609/aaai.v31i1.10648},
}
Figure