Faster Algorithms for Generalized Mean Densest Subgraph Problem

Chenglin Fan, Ping Li, Hanyu PengarXiv 2023 · DOI

Abstract

Finding dense subgraphs is a fundamental task in network analysis, used to identify communities, functional units, and anomalies. While the classic densest subgraph problem (DSP) focuses on maximizing average degree, the generalized $p$-mean density objective provides a tunable parameter $p$ to capture different structural properties. However, existing algorithms for $p > 1$ are computationally expensive, scaling poorly with graph size. This paper introduces GENPEEL++, a batch-peeling algorithm that improves the time complexity from $O(mn)$ to $O(m \log n)$. Our approach achieves up to a 40x speedup on large-scale real-world datasets while maintaining high approximation accuracy. Additionally, we provide the first theoretical approximation guarantees for the simple peeling algorithm in the $0 < p < 1$ regime.

Introduction

In graph theory, the search for the "densest" component typically involves finding a subgraph $S$ that maximizes the ratio of edges to nodes. While the standard average degree objective ($p=1$) is solvable in polynomial time, it often fails to distinguish between different types of dense structures. The $p$-mean densest subgraph problem generalizes this by defining density based on the $p$-th power of node degrees.

By varying $p$, researchers can "zoom" into different graph structures:

  • $p > 1$: Favors subgraphs with high-degree "core" nodes, making it ideal for identifying tightly knit clusters.
  • $p = 1$: Corresponds to the standard average degree.
  • $0 < p < 1$: Favors larger, more expansive subgraphs with relatively uniform degree distributions.

Despite its utility, the state-of-the-art algorithm for $p > 1$, known as GENPEEL, is limited by an $O(mn)$ time complexity, where $m$ is the number of edges and $n$ is the number of nodes. This makes it impractical for modern web-scale networks. This paper addresses this scalability gap.

Methodology

GENPEEL++: Batch Peeling for Efficiency

The primary bottleneck in the original GENPEEL algorithm is its iterative "peeling" process, which removes nodes one by one. After each removal, the algorithm must update the "loss" (the impact on the density objective) for all neighboring nodes.

GENPEEL++ optimizes this by introducing a batch-removal strategy. Instead of a single node, the algorithm removes a constant fraction $c$ of nodes (e.g., the bottom 50% based on current loss) in every iteration. This modification reduces the total number of iterations from $O(n)$ to $O(\log n)$. By sorting nodes and removing them in bulk, the algorithm achieves a total time complexity of $O(m \log n)$, a significant improvement for sparse real-world graphs.

Theoretical Analysis of SIMPEEL

Beyond the $p > 1$ case, the authors investigate the performance of the standard simple peeling algorithm (SIMPEEL) for the $0 < p < 1$ regime. While SIMPEEL was known to be effective empirically, its theoretical performance in this specific range was an open question. This work provides the first proof that SIMPEEL achieves a $2^{1/p}$-approximation for $0 < p < 1$, establishing a solid theoretical foundation for its use in finding expansive communities.

Experimental Evaluation

Setup

The authors evaluated GENPEEL++ against the original GENPEEL and other baselines using a diverse suite of real-world graphs from the SNAP repository and the SuiteSparse Matrix collection. The datasets included social networks (Facebook100, YouTube), web graphs (web-Google), road networks, and citation networks.

Performance and Speedup

The experimental results highlight the dramatic efficiency gains of the batch-peeling approach:

  • Speed: GENPEEL++ achieved a 40x speedup on the webBS dataset and an 8x speedup on the webG dataset compared to the original GENPEEL.
  • Scalability: On the Facebook100 dataset—comprising 100 distinct university network snapshots—the algorithm processed the graphs in approximately 1.5 seconds in the worst-case scenario.
  • Accuracy: Despite the aggressive removal of nodes in batches, the approximation quality remained high. The density values obtained by GENPEEL++ were nearly identical to those of the slower, node-by-node GENPEEL and remained very close to the theoretical optimal solutions.

The Impact of $p$

Experiments confirmed that the parameter $p$ effectively tunes the granularity of the search. As $p$ increases, the algorithm identifies smaller, more intense cores. Furthermore, the theoretical approximation ratio of GENPEEL++ actually improves as $p$ increases, converging toward 1 as $p \to \infty$.

Conclusion and Future Work

GENPEEL++ bridges the gap between the theoretical flexibility of $p$-mean density and the practical requirements of large-scale network analysis. By moving to a batch-peeling framework, we reduce the computational overhead of finding generalized dense subgraphs by orders of magnitude without sacrificing significant accuracy.

However, some challenges remain. While GENPEEL++ is faster, its theoretical approximation guarantee—$(2(p+1))^{1/p}$—is slightly wider than the $(p+1)^{1/p}$ guarantee of the original GENPEEL. Additionally, while the $p \geq 1$ case is polynomial-time solvable, the exact complexity of finding the optimal solution for $0 < p < 1$ remains an open problem. Future research will explore extending these batch-peeling techniques to directed and weighted graphs to further broaden their applicability.

Summary updated

BibTeX
@misc{fan2023faster,
  author = {Chenglin Fan and Ping Li and Hanyu Peng},
  title = {{Faster Algorithms for Generalized Mean Densest Subgraph Problem}},
  year = {2023},
  eprint = {2310.11377},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.11377},
}
Figure