NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Better Fewer but Better: Community Search with Outliers

Francesco Bonchi, Lorenzo Severini, Mauro Sozio · DOI

Introduction

In graph mining, community search is the essential task of identifying a cohesive subgraph that contains a specific set of query vertices. This has wide-ranging applications, from identifying functional modules in biological networks to uncovering tight-knit groups in social networks. However, traditional community search algorithms suffer from a significant "Achilles' heel": they are inherently rigid, requiring all query nodes to be present in the final output.

In real-world scenarios, data is often noisy. A user might provide a list of nodes where most belong to a tight cluster, but one or two are distant outliers. Forcing the inclusion of these outliers often leads to the "free rider" effect, where the algorithm produces a massive, sparse, and largely meaningless subgraph to satisfy the connectivity requirements. This paper introduces the Community Search with Outliers (CSO) framework, which allows for dropping up to $k$ query nodes to find significantly more cohesive communities.

The CSO Framework

The authors define three optimization problems based on fundamental measures of graph cohesiveness:

  1. CSO-MINDIAM-MINDEG: Minimizes the diameter (the longest shortest path) of the subgraph while maintaining a minimum degree constraint.
  2. CSO-MAXMINDEG-DIAM: Maximizes the minimum degree (ensuring high internal connectivity) while keeping the diameter under a specified threshold.
  3. CSO-MAXMINDEG-DIST: Maximizes the minimum degree while ensuring no node in the community exceeds a certain distance from the query nodes.

Algorithmic Contributions

The paper provides a rigorous theoretical and practical treatment of these problems:

  • Hardness and Approximation: The authors prove that minimizing diameter with outliers is NP-hard. To address this, they propose a 2-approximation algorithm that iteratively prunes nodes violating degree constraints or those furthest from the query set.
  • Exact Solutions: Interestingly, when the constraint is shifted from total diameter to distance from query nodes, the problem becomes solvable in polynomial time.
  • Scalability: By implementing advanced pruning techniques and parallelization, the proposed algorithms can process graphs with millions of nodes and edges (like the ljournal dataset) in under 30 seconds.

Experimental Evaluation

The framework was tested on four large-scale networks: Amazon, DBLP, YouTube, and ljournal. To evaluate outlier detection, synthetic query sets were created by injecting random nodes into ground-truth communities.

Precision and Cohesiveness

The results demonstrate that allowing for outliers ($k > 0$) dramatically improves the quality of the discovered communities. The algorithms show remarkable robustness in identifying which nodes were the "injected" outliers.

Precision of outlier detection as the number of allowed outliers (k) increases.

As shown in the precision analysis, the CSO-MAXMINDEG-DIAM and CSO-MAXMINDEG-DIST variants maintain high precision in outlier identification, significantly outperforming the baseline Minimum Inefficiency Subgraph (MIS) method.

F1-score comparison between CSO variants and the MIS baseline across different values of k.

Furthermore, the F1-score metrics highlight the superior balance of precision and recall achieved by the CSO framework. While traditional methods struggle with noise, the CSO algorithms leverage the flexibility of $k$ to isolate the true community core, resulting in higher density and smaller diameters.

Conclusion

The "Better Fewer but Better" approach represents a paradigm shift in community search. By acknowledging that not all query nodes are equally relevant, the CSO framework provides a robust, scalable, and theoretically grounded method for finding meaningful structures in messy, real-world data. Future work may focus on automatically determining the optimal value of $k$ to further simplify the user experience.

Summary updated

BibTeX
@inproceedings{bonchi2020better,
  author = {Francesco Bonchi and Lorenzo Severini and Mauro Sozio},
  title = {{Better Fewer but Better: Community Search with Outliers}},
  booktitle = {WI/IAT},
  year = {2020},
  doi = {10.1109/wiiat50758.2020.00019},
}
Figure