Abstract
This paper introduces a unified mathematical framework for identifying dense subgraphs by employing the "generalized mean" of node degrees. By adjusting a single parameter $p$, the proposed framework bridges the gap between traditional objectives like the densest subgraph problem (maximum average degree) and the maxcore problem (maximum minimum degree). We introduce GenPeel, a novel "foresighted" peeling algorithm that outperforms standard methods in both theoretical guarantees and empirical performance across diverse real-world networks.
Introduction
In graph mining, defining "density" is a non-trivial task. Two common yet distinct objectives are the Densest Subgraph Problem, which seeks a node set with the maximum average degree, and the Maxcore Problem, which seeks a subgraph where the minimum degree of any node is maximized. While both are widely used, they represent opposite ends of a structural spectrum.
Existing greedy peeling algorithms—which iteratively remove the lowest-degree node—perform well for these extremes but often fail when optimizing for higher-order density measures, such as the average squared degree. This paper addresses these limitations by providing a principled way to interpolate between these definitions and introducing an algorithm capable of navigating this broader density landscape.
The Generalized Mean Framework
The authors propose the Generalized Mean Densest Subgraph Problem, defining the density of a subgraph $S$ using the $p$-mean of its degree sequence:
$$M_p(S) = \left( \frac{1}{|S|} \sum_{v \in S} d_v(S)^p \right)^{1/p}$$
By varying the parameter $p$, the objective function shifts its focus:
- $p = 1$: Recovers the standard densest subgraph problem (average degree).
- $p \to -\infty$: Recovers the maxcore problem (minimum degree).
- $p > 1$: Emphasizes high-degree "hub" nodes.
For $p \ge 1$, the authors prove that the problem can be solved exactly in polynomial time using repeated submodular minimization. However, because exact solvers are computationally expensive for massive graphs, a more scalable approach is required.
The GenPeel Algorithm
To handle large-scale data, the authors developed GenPeel, a greedy peeling algorithm with "foresight." Unlike standard myopic algorithms that simply remove the node with the lowest current degree, GenPeel removes the node that causes the least total "damage" to the $p$-mean objective. This involves evaluating a node's two-hop neighborhood to understand how its removal impacts the degrees of its neighbors.
GenPeel provides a theoretical approximation guarantee of $1/(p+1)^{1/p}$ for $p \ge 1$. This ratio is always at least $1/2$ and converges toward 1 as $p$ increases, indicating high accuracy for higher-order density measures.
Experimental Results
The authors evaluated GenPeel on a diverse set of networks, including social (Facebook100), communication (Enron), and infrastructure (road networks) graphs.
Performance and Scalability
Empirically, GenPeel often exceeds its theoretical bounds. On benchmark datasets like Polbooks and Jazz, the algorithm achieves near-optimal results. A significant finding is that GenPeel with $p > 1$ (e.g., $p=1.25$) frequently identifies subgraphs with a higher average degree than the standard peeling algorithm specifically designed for $p=1$. By strategically removing nodes, GenPeel avoids prematurely dismantling dense cores.
Despite its more complex removal criteria, GenPeel scales nearly linearly, processing graphs with millions of edges in minutes on standard hardware.
Conclusion
The generalized mean framework provides a powerful tool for exploring the structural hierarchy of graphs. While the $p \ge 1$ regime is well-handled by GenPeel, the $p < 1$ regime—which favors smaller, high-edge-density clusters—remains computationally challenging and represents a key area for future research. Additionally, optimizing the two-hop neighborhood updates could further enhance the scalability of the GenPeel approach.
Summary updated