arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.06658cs.SI
收藏

ComGPT:利用大语言模型检测局部社区结构

ComGPT: Detecting Local Community Structure with Large Language Models

Guangdong Provincial Key Laboratory of Novel Security Intelligence Technologies(广东省新型安全智能技术重点实验室)

Li Ni, Haowen Shen, Lin Mu, Yiwen Zhang, Wenjian Luo

AI总结:

ComGPT通过结合大语言模型与局部模块度算法,提升社区检测任务的性能,有效解决种子依赖和社区扩散问题。

摘要:

大语言模型(LLMs),如GPT-3.5-turbo,已展示了理解图结构的能力,并在各种图推理任务中取得了优异表现,例如节点分类。尽管在图推理任务中表现出色,但它们缺乏特定领域的知识,并且对社区相关的图信息理解较弱,这阻碍了它们在社区检测任务中的能力。此外,基于种子扩展的局部社区检测算法,即种子扩展算法,常常面临几个缺点,包括种子依赖问题、社区扩散和自由搭便车效应。为了利用LLMs克服上述缺点,我们探索了一种名为ComGPT的GPT引导种子扩展算法。ComGPT通过局部模块度从检测到的社区的邻居中迭代选择潜在节点,并随后利用LLMs从这些选定的潜在节点中选择加入检测到的社区的节点。为了提高LLMs对社区相关图信息的理解,我们提出了ComIncident,一种结合社区知识的图编码方法,专为社区检测任务设计。此外,我们设计了节点选择引导(NSG)提示,以增强LLMs对社区特征的理解。实验结果表明,ComGPT优于基线方法,从而验证了ComIncident和NSG提示的有效性。

英文摘要:

Large Language Models (LLMs), like GPT-3.5-turbo, have demonstrated the ability to understand graph structures and have achieved excellent performance in various graph reasoning tasks, such as node classification. Despite their strong abilities in graph reasoning tasks, they lack specific domain knowledge and have a weaker understanding of community-related graph information, which hinders their capabilities in the community detection task. Moreover, local community detection algorithms based on seed expansion, referred to as seed expansion algorithms, often face several shortcomings, including the seed-dependent problem, community diffusion, and free rider effect. To use LLMs to overcome the above shortcomings, we explore a GPT-guided seed expansion algorithm named ComGPT. ComGPT iteratively selects potential nodes by local modularity from the detected community's neighbors, and subsequently employs LLMs to choose the node from these selected potential nodes to join the detected community. To improve LLMs' understanding of community-related graph information, we propose ComIncident, a graph encoding method that incorporates community knowledge and is designed for the community detection task. Additionally, we design the Node Selection Guide (NSG) prompt to enhance LLMs' understanding of community characteristics. Experimental results demonstrate that ComGPT outperforms the baselines, thereby confirming the effectiveness of the ComIncident and the NSG prompt.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑