A study on modularity density maximization: Column generation acceleration and computational complexity analysis

Issey Sukeda, Atsushi Miyauchi, Akiko Takeda

TL;DR

This paper provides a significant boost to community detection by accelerating the maximization of modularity density, a metric that avoids the common "resolution limit" of standard modularity. By reframing the core optimization sub-problem as a dense subgraph discovery task and introducing a novel linear programming reformulation, the authors achieved order-of-magnitude speedups and provided the first formal NP-hardness proofs for this problem space.

What Problem Does This Paper Address?

Community detection—identifying groups of nodes that are more densely connected to each other than to the rest of the network—is a cornerstone of network science. For years, the "Modularity" metric ($Q$) was the gold standard. However, modularity suffers from a resolution limit: in large networks, it tends to merge small, distinct communities into larger ones simply because they are small relative to the whole graph.

Modularity Density ($D$) was introduced to fix this, but it comes with a cost: it is much harder to maximize mathematically. Previous attempts at exact solutions used "Column Generation" (an optimization technique that builds a solution by iteratively adding the most promising variables), but these methods struggled to scale. Furthermore, despite its widespread use, no one had formally proven just how computationally hard (NP-hard) maximizing modularity density actually is.

Methods

The authors focus on accelerating the Column Generation framework. In this framework, the problem is split into a "Master Problem" (finding the best partition using a subset of possible clusters) and an "Auxiliary Problem" (AP) (finding new, better clusters to add to the subset).

  1. The Dense Subgraph Connection: The authors’ key insight is that the AP—traditionally seen as a generic optimization step—is actually a variant of the dense subgraph discovery problem.
  2. Greedy Peeling: Leveraging this connection, they adapted "greedy peeling," a classic heuristic that iteratively removes the "weakest" node from a graph to find a dense core. This allows them to find many high-quality candidate clusters (columns) very quickly.
  3. 0–1 Linear Programming Reformulation: To solve the AP exactly when heuristics fail, the authors ditched the standard, slow quadratic formulations. Instead, they reformulated the AP into a sequence of $n$ (where $n$ is the number of nodes) 0–1 Linear Programming problems. While solving $n$ problems sounds slower than solving one, linear problems are significantly easier for modern solvers (like Gurobi) to handle than quadratic ones.
  4. Complexity Analysis: The authors used a polynomial-time reduction from the "Maximum Cut" problem to prove that a variant of modularity density maximization (requiring at least two clusters) is NP-hard.

Datasets

The researchers evaluated their algorithm on eight well-known real-world network benchmarks:

  • Social Networks: Strike (24 nodes), Karate (34 nodes), Dolphins (62 nodes), Jazz (198 nodes).
  • Information/Co-appearance Networks: Les Misérables (77 nodes), Polbooks (105 nodes), Adjnoun (112 nodes), Football (115 nodes).

These datasets are standard in the community detection literature, allowing for direct comparison with previous state-of-the-art methods.

Key Insights and Ideas

  • Linearity Trumps Simplicity: The move from one complex quadratic problem to a sequence of linear problems is a classic "work smarter, not harder" optimization move. It exploits the maturity of linear programming solvers.
  • Heuristic Diversity: By using a convex combination of different "node contribution" measures in their greedy peeling, the authors ensure they generate a diverse set of candidate clusters, which helps the Master Problem converge much faster.
  • Bridging Theory and Practice: The paper provides the first formal verification of NP-hardness for this specific metric, justifying the need for the sophisticated heuristics and exact methods they developed.

Key Results

  • Massive Speedups: The proposed algorithm solved the Football and Adjnoun instances to optimality in roughly 1.5 hours. Previous state-of-the-art methods failed to solve these within a 24-hour time limit.
  • New Optimal Values: The authors discovered and proved new optimal modularity density values for several benchmarks (e.g., improving the Football score from 44.340 to 44.3879).
  • Scalability: While previous exact methods hit a wall at around 100 nodes, this approach successfully pushed the boundary, though the Jazz network (198 nodes) still proved too large to solve to absolute optimality within 24 hours.

Limitations and Future Work

  • The "Jazz" Wall: Despite the speedups, the algorithm still struggles with networks approaching 200 nodes. The authors note that further scalability is needed for truly large-scale real-world graphs.
  • The Complexity Gap: While they proved NP-hardness for a variant of the problem (at least two clusters), the NP-hardness of the original modularity density maximization problem remains an open theoretical question.
  • Generalization: The authors suggest that their "dense subgraph" perspective on column generation could be applied to other set-partitioning problems in combinatorial optimization.

Summary updated

BibTeX
@article{sukeda2023study,
  author = {Issey Sukeda and Atsushi Miyauchi and Akiko Takeda},
  title = {{A study on modularity density maximization: Column generation acceleration and computational complexity analysis}},
  journal = {Eur. J. Oper. Res.},
  year = {2023},
  doi = {10.1016/j.ejor.2023.01.061},
}
Figure