Lune

ICDE2026Top-tier venue

Prompt-Guided Community Search Under Extreme Few-Shot Supervision

Wenxin Yang, Kaiyu Feng, Lanting Fang, Kangfei Zhao, Xia Wu

2026Year

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.

Questions to start from

Your agent calls

Lunesearch_papers

Ask in Lune

Free to start. No credit card required.

lune papers get 304c5464-a9a9-45d9-9d60-4753afa067ca

Related papers

Dusk over the sea between two cliffs drawn in fine vertical lines