Total Variation Based Community Detection Using a Nonlinear Optimization Approach

Andrea Cristofari, Francesco Rinaldi, Francesco TudiscoSIAM J. Appl. Math 2019 · DOI

Abstract

Identifying the most significant community within a network—the leading module problem—is a fundamental task in network science. While maximizing modularity is the standard approach, the problem is NP-complete due to its discrete nature. This paper introduces a novel continuous optimization framework based on modularity total variation ($TV_Q$). We prove that the box-constrained global maximum of $TV_Q$ is exactly equivalent to the maximum of the original discrete modularity function. To solve this, we propose FAST-ATVO, a first-order optimization method utilizing a tailored active-set strategy. Experimental results on large-scale networks demonstrate that our approach significantly outperforms both traditional spectral methods and recent nonlinear alternatives in both modularity quality and computational efficiency.

Introduction

In the study of complex networks, a "community" is defined as a subset of nodes with dense internal connections and sparse external connections. Quantifying this structure typically relies on modularity, a metric that compares the actual edge density of a group against a null model of random connectivity.

Finding the optimal community that maximizes this metric is known as the leading module problem. Because nodes are either in or out of a community, this is a combinatorial optimization problem. Its NP-complete status has historically forced researchers to choose between fast but imprecise linear relaxations (such as spectral methods) or computationally intensive heuristics. This paper bridges this gap by providing an exact continuous relaxation that allows for the application of high-performance continuous optimization techniques.

The Modularity Total Variation ($TV_Q$) Framework

The core theoretical contribution of this work is the mathematical translation of a discrete problem into a continuous one without loss of accuracy. The authors introduce the concept of modularity total variation ($TV_Q$) and provide a rigorous proof that maximizing this function within a specific "box constraint" (upper and lower bounds) yields the same global maximum as the original discrete modularity function.

This "exact relaxation" is a significant departure from standard spectral relaxations, which only approximate the modularity landscape. By proving that the optimal solution to the continuous problem must lie on the boundaries of the box constraints, the authors justify the use of specialized algorithms that focus on these boundaries.

The FAST-ATVO Algorithm

To solve the $TV_Q$ maximization problem, the authors developed FAST-ATVO (Fast Active-set Total Variation Optimization). The algorithm is built on three pillars:

  1. Active-Set Strategy: Recognizing that the solution resides on the boundary, the algorithm identifies a "working set" of variables to lock at their limits, focusing computational effort only on the "free" variables. This drastically reduces the dimensionality of the problem at each step.
  2. Smooth Approximation and Stabilization: The $TV_Q$ function is non-differentiable. The authors employ a smooth approximation and a non-monotone stabilization technique, which allows the algorithm to converge without needing to calculate the expensive objective function at every single iteration.
  3. Partition & Swap (PS) Wrapper: To address the issue of local optima—a common pitfall in modularity maximization—the algorithm is wrapped in a stochastic strategy that periodically perturbs the current solution, allowing the solver to explore different regions of the network landscape.

Experimental Evaluation

The performance of FAST-ATVO was evaluated against 16 real-world and synthetic datasets, including collaboration networks (ca-AstroPh), internet snapshots (as-735), and social networks (loc-Brightkite), with sizes ranging up to 65,000 nodes.

Performance Highlights

  • Quality Gains: FAST-ATVO consistently found communities with higher modularity scores than traditional methods. Compared to standard linear spectral methods, it achieved improvements of up to 140% (notably on the ca-HepTh dataset).
  • Superiority over Nonlinear Competitors: When compared to the state-of-the-art Generalized RatioDCA (a previous nonlinear approach), FAST-ATVO improved modularity scores by as much as 97%.
  • Efficiency: Despite the complexity of the optimization, FAST-ATVO proved to be faster and more robust than RatioDCA, showing lower median CPU times and significantly less variance in execution speed across different runs.

Conclusion and Future Work

By proving the equivalence between discrete modularity and continuous total variation, this research provides a powerful new lens through which to view community detection. The FAST-ATVO algorithm demonstrates that continuous optimization can be both more accurate and more efficient than traditional discrete or linear-relaxed heuristics.

Future research will explore extending this $TV_Q$ framework to more complex network types, such as dense weighted graphs, multilayer networks, and alternative community models like the Stochastic Block Model. This work opens the door for the "heavy artillery" of continuous calculus to be applied to a wide array of previously intractable combinatorial problems in network science.

Summary updated

BibTeX
@article{cristofari2019total,
  author = {Andrea Cristofari and Francesco Rinaldi and Francesco Tudisco},
  title = {{Total Variation Based Community Detection Using a Nonlinear Optimization Approach}},
  journal = {SIAM J. Appl. Math.},
  year = {2019},
  doi = {10.1137/19m1270446},
}
Figure