Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

LLMs Between the Nodes: Community Discovery Beyond Vectors

About

Community detection in social network graphs plays a vital role in uncovering group dynamics, influence pathways, and the spread of information. Traditional methods focus primarily on graph structural properties, but recent advancements in Large Language Models (LLMs) open up new avenues for integrating semantic and contextual information into this task. In this paper, we present a detailed investigation into how various LLM-based approaches perform in identifying communities within social graphs. We introduce a two-step framework called CommLLM, which leverages the GPT-4o model along with prompt-based reasoning to fuse language model outputs with graph structure. Evaluations are conducted on six real-world social network datasets, measuring performance using key metrics such as Normalized Mutual Information (NMI), Adjusted Rand Index (ARI), Variation of Information (VOI), and cluster purity. Our findings reveal that LLMs, particularly when guided by graph-aware strategies, can be successfully applied to community detection tasks in small to medium-sized graphs. We observe that the integration of instruction-tuned models and carefully engineered prompts significantly improves the accuracy and coherence of detected communities. These insights not only highlight the potential of LLMs in graph-based research but also underscore the importance of tailoring model interactions to the specific structure of graph data.

Ekta Gujral, Apurva Sinha• 2025

Related benchmarks

TaskDatasetResultRank
Graph ClusteringDublin
NMI38.8
15
Graph ClusteringBD-30K
NMI88.3
15
Graph ClusteringEC-30K
NMI86.2
15
Graph ClusteringWikipedia
NMI0.264
15
Graph ClusteringarXiv
NMI30.3
15
Graph ClusteringBD-100K
NMI79.3
10
Graph ClusteringDR 100K
NMI75.8
10
Graph ClusteringMS 100K
NMI79.2
10
Graph ClusteringSO
NMI32.2
10
Graph ClusteringFlickr
NMI33.3
10
Showing 10 of 11 rows

Other info

Follow for update