LUCID: LLM-Guided Unsupervised Community Detection for Graphs

Aoting Zeng, Kai Wang, Jianwei Wang, Yuxiang Sun, Yizhang He, Wenjie Zhang· August 10, 2026 View original

Key takeaways

  • LUCID offers an interpretable, training-free, and unsupervised approach to community detection.
  • LLMs induce formal rules to guide the four-stage community detection pipeline.
  • The method achieves state-of-the-art performance on real-world graph datasets.
  • It overcomes limitations of classic and deep-learning methods regarding complexity and labeled data.

Who benefits

Social MediaCybersecurityHealthcareMarket ResearchUrban Planning

Summary

LUCID is an LLM-guided, interpretable, training-free, and unsupervised method for community detection in graphs, inspired by phase-transition kinetics. It leverages an LLM to induce formal rules across a four-stage pipeline—initialization, merging, refinement, and selection—achieving state-of-the-art performance on real-world datasets.

Community detection, the task of identifying cohesive groups within complex graph structures, is fundamental to graph analytics. Traditional objective-driven methods often struggle with intricate graph patterns, while deep learning approaches, though powerful, typically sacrifice interpretability and require labeled data for training. This research introduces LUCID (LLM-guided, Unsupervised Community Detection), a novel method that harnesses the reasoning capabilities and world knowledge of large language models (LLMs) to provide an interpretable and label-free solution. LUCID operates through a four-stage pipeline, drawing inspiration from natural phase-transition kinetics: initialization, merging, refinement, and selection. Within each stage, the LLM is used to generate formal, explicit, and interpretable logical rules. Specifically, it initializes local communities based on k-ego contexts, iteratively merges them using LLM-induced rules, refines boundaries with coarse-to-fine rules, and finally selects high-quality communities based on topological compactness and clarity. Extensive experiments on real-world datasets demonstrate that LUCID achieves state-of-the-art performance, outperforming both unsupervised and semi-supervised baselines.

Why it matters

This breakthrough offers a powerful, interpretable, and unsupervised way to uncover hidden structures in complex networks, which is critical for understanding social dynamics, biological systems, and organizational structures without needing labeled data.

How to implement this in your domain

  1. 1Evaluate LUCID for community detection tasks where interpretability and unsupervised learning are critical.
  2. 2Explore leveraging LLMs to induce formal rules for graph analysis and other structured data problems.
  3. 3Apply the four-stage pipeline (initialization, merging, refinement, selection) to design custom graph algorithms.
  4. 4Benchmark LUCID against existing community detection methods, especially for complex, unlabeled datasets.

Original post by Aoting Zeng, Kai Wang, Jianwei Wang, Yuxiang Sun, Yizhang He, Wenjie Zhang

"arXiv:2608.06402v1 Announce Type: new Abstract: Community detection is a fundamental task in graph analytics that aims to identify cohesive groups of entities with similar behaviors or interests. Classic objective-driven methods struggle with complex graph structures, while deep-…"

View on X

Originally posted by Aoting Zeng, Kai Wang, Jianwei Wang, Yuxiang Sun, Yizhang He, Wenjie Zhang on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses