DMCS : Density Modularity based Community Search

Junghoon Kim, Siqiang Luo, Gao Cong, Wenyuan Yu · DOI

TL;DR

This paper introduces "Density Modularity," a novel metric for community search that balances internal density with external sparsity, addressing limitations of existing methods like the "free-rider effect." They propose two efficient algorithms, DMCS and FPA, which achieve significantly higher accuracy and competitive efficiency on real-world and synthetic networks.

What Problem Does This Paper Address?

Community search aims to find a connected subgraph (a community) within a larger network that contains a given set of "query nodes." While existing methods often focus solely on the internal cohesiveness of a community (e.g., how many connections nodes have within the group), this paper argues that a truly high-quality community also needs to be well-separated from the rest of the network. This separation is captured by the concept of "modularity."

The core problem is that traditional modularity measures, widely used in community detection (finding all communities without specific query nodes), don't directly translate well to community search. Specifically, they can suffer from:

  • Free-rider effect: The algorithm might include nodes that aren't truly part of the desired community but happen to increase the overall modularity score, making the identified community larger and less focused than it should be.
  • Resolution limit problem: Modularity can struggle to identify smaller, dense communities within larger structures, potentially merging them into a single, less informative group.

The authors highlight that despite modularity's popularity in detection, its application to community search has been surprisingly overlooked, presenting unique challenges.

Methods

The paper's main contribution is the Density Modularity metric. It combines the strengths of two existing measures:

  • Graph Modularity: Measures the ratio of internal edges to expected random edges, focusing on relative cohesiveness.
  • Graph Density: Measures the ratio of internal edges to the number of nodes, focusing on absolute cohesiveness.

By integrating these, Density Modularity aims to capture both how tightly knit a community is internally and how distinct it is from the external network. This new metric is designed to mitigate the free-rider and resolution limit problems.

Based on this new metric, the authors define the Density Modularity Community Search (DMCS) problem: find a connected subgraph containing query nodes that maximizes Density Modularity. They prove DMCS is NP-hard.

To address this, they propose two algorithms:

  1. Non-articulation Cancellation Algorithm (NCA): A top-down, greedy approach that iteratively removes "non-articulation nodes" (nodes whose removal doesn't disconnect the graph) that maximize the "density modularity gain" (a measure of how much removing a node improves the density modularity).
  2. Fast Peeling Algorithm (FPA): A more efficient heuristic that uses shortest path distances to identify candidate removable nodes (those farthest from the query nodes) and a "density ratio" (a stable, lightweight version of density modularity) to select the best node to remove. FPA is designed to be more scalable and efficient, achieving log-linear time complexity.

Datasets

The authors evaluated their algorithms on:

  • 7 Real-world Datasets: Dolphin, Karate, Polblogs, Mexican, DBLP, Youtube, and Livejournal. These datasets are described as having ground-truth community information, with some also featuring overlapping communities.
  • Synthetic Datasets: The LFR benchmark dataset was used to systematically evaluate performance under varying network parameters (number of nodes, average/maximum degree, mixing parameter).

Key Insights and Ideas

  • Modularity's Untapped Potential in Search: The paper convincingly argues that modularity, a staple in community detection, has been underutilized in community search, and its direct application presents unique challenges.
  • Density Modularity as a Solution: The proposed Density Modularity metric effectively addresses the free-rider effect and resolution limit problem by balancing internal density with external separation, leading to more focused and accurate communities.
  • Parameter-Free Advantage: Unlike k-core or k-truss methods, Density Modularity is parameter-free, simplifying its application and avoiding sensitivity to parameter choices.
  • Efficiency Through Heuristics: The development of FPA, leveraging shortest path distances and a stable density ratio, demonstrates a path to efficient solutions for an NP-hard problem, crucial for large-scale networks.
  • Real-world Relevance: The experimental results on diverse real-world networks validate the practical utility of their approach.

Key Results

  • Accuracy: The proposed FPA algorithm achieved up to 8.5 times higher accuracy (in terms of NMI) compared to baseline algorithms on synthetic networks. On real-world datasets, FPA consistently outperformed other methods, especially in scenarios with overlapping communities or when baseline methods struggled with parameter tuning.
  • Efficiency: FPA demonstrated significant efficiency gains, running up to 300 times faster than a non-pruning version on the DBLP dataset. While NCA showed scalability issues, FPA achieved competitive running times, often comparable to or slightly slower than simpler baseline methods but with vastly superior accuracy.
  • Mitigation of Problems: The paper provides theoretical proofs and experimental evidence showing that Density Modularity significantly alleviates the free-rider effect and resolution limit problem compared to classic modularity.
  • DMCS is NP-hard: The problem of finding a community with maximum Density Modularity is proven to be NP-hard, justifying the need for efficient heuristic algorithms.

Limitations and Future Work

  • Free-rider Effect Not Completely Eliminated: The authors acknowledge that while Density Modularity significantly mitigates the free-rider effect, it's not entirely eliminated in all edge cases.
  • NCA Scalability: The NCA algorithm, while conceptually sound, exhibits scalability issues due to the computational cost of finding non-articulation nodes iteratively.
  • Future Work: The authors suggest that their Density Modularity metric could be further utilized for community detection problems, as it inherently addresses issues like the resolution limit. They also hint at further algorithmic optimizations.

Summary updated

BibTeX
@inproceedings{kim2022dmcs,
  author = {Junghoon Kim and Siqiang Luo and Gao Cong and Wenyuan Yu},
  title = {{DMCS : Density Modularity based Community Search}},
  booktitle = {SIGMOD},
  year = {2022},
  doi = {10.1145/3514221.3526137},
}
Figure