Prompt-Guided Community Search Under Extreme Few-Shot Supervision
Wenxin Yang, Kaiyu Feng, Lanting Fang, Kangfei Zhao, Xia Wu
Abstract
Community search, which aims to identify cohesive subgraphs containing given query nodes, is a fundamental task in graph analysis. Existing learning-based methods depend heavily on abundant labeled communities, making them ineffective in realistic settings where labels are extreme scarce. Although several methods have been proposed to mitigate label scarcity, they still fail to perform robustly across both sparsely and densely labeled datasets due to three key limitations: (i) a query-nodecentric design that always treats the query node as the community center, causing errors when the query lies near the community boundary; (ii) lack of connectivity guarantee, as similarity-based expansions may yield disconnected results; and (iii) dependence on labeled data, where unsupervised models lack supervision while semi-supervised ones easily overfit when labels are rare. To address these issues, we propose Prompt-Guided Community Search (PGCS), a novel “pre-train, prompt, and search” framework. We design novel pretraining tasks that capture structural characteristics such as density and cohesiveness. We introduce a prompt function that measures the goodness of subgraph expansion, effectively bridging pretrained knowledge with community search. To overcome label scarcity, we propose a dual-prompt mix-training strategy, which utilize both ground truth communities and soft labels generated from unlabeled nodes. Finally, we develop an online search algorithm that expands from the query node into a coherent and connected community. Extensive experiments on nine real-world datasets show that PGCS consistently outperforms traditional and recent learning-based baselines in both accuracy and efficiency. On average, our proposed method outperforms SOTAs by up to 35.16% across all datasets.
Ask about this paper
Ask your agent about it.
Lune has read the top-tier papers around this one, so every answer names the papers it rests on.
Your agent calls
Lunesearch_papers
Free to start. No credit card required.
Terminal
Install the CLIlune papers get 304c5464-a9a9-45d9-9d60-4753afa067caRelated papers
- PLACE: Prompt Learning for Attributed Community Search in Large GraphsShuheng Fang, Kangfei Zhao, Rener Zhang, Yu Rong et al.KDD 2026 · 1 citation
- Community Search: A Meta-Learning ApproachShuheng Fang, Kangfei Zhao, Guanghua Li, Jeffrey Xu YuICDE 2023 · 19 citations
- Efficient Unsupervised Community Search with Pre-trained Graph TransformerJianwei Wang, Kai Wang, Xuemin Lin, Wenjie Zhang et al.VLDB 2024 · 30 citations
- Beyond Homophily: Community Search on Heterophilic GraphsQing Sima, Xiaoyang Wang, Wenjie ZhangICDE 2026
- DMCS : Density Modularity based Community SearchJunghoon Kim, Siqiang Luo, Gao Cong, Wenyuan YuSIGMOD 2022 · 26 citations
