Pre-train and Refine: Towards Higher Efficiency in K-Agnostic Community Detection without Quality Degradation
Meng Qin, Chaorui Zhang, Yu Gao, Weixi Zhang, Dit-Yan Yeung
Abstract
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 𝐾-agnostic CD, where the number of communities 𝐾 is unknown. We propose PRoCD (Pre-training & Refinement for Community Detection), a simple yet effective method that reformulates 𝐾-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 𝐾-agnostic CD without significant quality degradation. CCS CONCEPTS • Mathematics of computing → Graph algorithms; • Theory of computation → Inductive inference.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Cited by top-tier papers2
- ProCom: A Few-shot Targeted Community Detection AlgorithmXixi Wu, Kaiyu Xiong, Yun Xiong, Xiaoxin He et al.KDD 2024 · 6 citations
- Efficient Identity and Position Graph Embedding via Spectral-Based Random Feature AggregationMeng Qin, Jiahong Liu, Irwin KingKDD 2025 · 1 citation
Builds on8
- GCC: Graph Contrastive Coding for Graph Neural Network Pre-TrainingJiezhong Qiu, Qibin Chen, Yuxiao Dong, Jing Zhang et al.KDD 2020 · 755 citations
- Deep Graph Clustering via Dual Correlation ReductionYue Liu, Wenxuan Tu, Sihang Zhou, Xinwang Liu et al.AAAI 2022 · 300 citations
- GraphPrompt: Unifying Pre-Training and Downstream Tasks for Graph Neural NetworksZemin Liu, Xingtong Yu, Yuan Fang, Xinming ZhangWWW 2023 · 263 citations
- Learning to Pre-train Graph Neural NetworksYuanfu Lu, Xunqiang Jiang, Yuan Fang, Chuan ShiAAAI 2021 · 158 citations
- All in One: Multi-Task Prompting for Graph Neural NetworksXiangguo Sun, Hong Cheng, Jia Li, Bo Liu et al.KDD 2023 · 149 citations
Related papers
- Multi-Level Graph Representation Learning Through Predictive Community-based PartitioningBo-Young Lim, Jeongha Park, Kisung Lee, Hyuk-Yoon KwonSIGMOD 2025 · 2 citations
- Prompt-Guided Community Search Under Extreme Few-Shot SupervisionWenxin Yang, Kaiyu Feng, Lanting Fang, Kangfei Zhao et al.ICDE 2026
- Dual-Kernel Graph Community Contrastive LearningXiang Chen, Kun Yue, Wenjie Liu, Zhenyu Zhang et al.AAAI 2026
- CODE: Towards Partial Label Graph Learning via Coupled Dual SeparationYiyang Gu, Taian Guo, Hang Zhou, Zihao Chen et al.ACM MM 2025
- Community Search: A Meta-Learning ApproachShuheng Fang, Kangfei Zhao, Guanghua Li, Jeffrey Xu YuICDE 2023 · 19 citations
