# Pre-train and Refine: Towards Higher Efficiency in K-Agnostic Community Detection without Quality Degradation

arXiv: https://arxiv.org/abs/2405.20277 · HTML: https://mlsanity.com/paper/2405.20277/

## Key facts

- Cited by 5 papers in the map (data through 14 Oct 2026).
- First posted on arXiv 30 May 2024.

## Built on by (most cited first, 5 of 5)

- [Towards Faster Graph Partitioning via Pre-training and Inductive Inference](https://mlsanity.com/paper/2409.00670/) (2024)
- [Efficient Identity and Position Graph Embedding via Spectral-Based Random Feature Aggregation](https://mlsanity.com/paper/2505.20992/) (2025)
- [Interpretable Unsupervised Community Detection with LLM-Symbolized Structured Processes](https://mlsanity.com/paper/2608.06402/) (2026)
- [ComNetX: Local Hierarchical Adaptation for Dynamic Community Detection](https://mlsanity.com/paper/2608.16906/) (2026)
- [Graph Data Augmentation via Contrastive Generator Inversion (textttDCBA)](https://mlsanity.com/paper/2610.05653/) (2026)

## Abstract (arXiv)

Community detection (CD) is a classic graph inference task that partitions nodes of a graph into densely connected groups. While many CD methods have been proposed with either impressive quality or efficiency, balancing the two aspects remains a challenge. This study explores the potential of deep graph learning to achieve a better trade-off between the quality and efficiency of K-agnostic CD, where the number of communities K is unknown. We propose PRoCD (Pre-training & Refinement fOr Community Detection), a simple yet effective method that reformulates K-agnostic CD as the binary node pair classification. PRoCD follows a pre-training & refinement paradigm inspired by recent advances in pre-training techniques. We first conduct the offline pre-training of PRoCD on small synthetic graphs covering various topology properties. Based on the inductive inference across graphs, we then generalize the pre-trained model (with frozen parameters) to large real graphs and use the derived CD results as the initialization of an existing efficient CD method (e.g., InfoMap) to further refine the quality of CD results. In addition to benefiting from the transfer ability regarding quality, the online generalization and refinement can also help achieve high inference efficiency, since there is no time-consuming model optimization. Experiments on public datasets with various scales demonstrate that PRoCD can ensure higher efficiency in K-agnostic CD without significant quality degradation.
