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

CS-Agent:基于双智能体协作的大语言模型社区搜索

CS-Agent: LLM-based Community Search via Dual-agent Collaboration

Jiahao Hua, Long Yuan, Qingshuai Feng, Qiang Fan, Shan Huang

AI总结:

本文提出CS-Agent,一种基于双智能体协作的大语言模型框架,通过求解器与验证器的迭代反馈及决策器选择,无需微调即可提升社区搜索的质量与稳定性,并首次将LLMs应用于该任务。

摘要:

大语言模型(LLMs)在自然语言处理任务中展现出卓越的能力,但其在图结构分析中的应用,特别是在社区搜索方面,仍未得到充分探索。社区搜索是图分析中的一项基本任务,旨在识别具有密集互连的节点组,这对于理解图的宏观结构至关重要。在本文中,我们提出了GraphCS,一个全面的基准测试,旨在评估LLMs在社区搜索任务中的性能。我们的实验表明,虽然LLMs展现出初步潜力,但它们经常无法返回有意义的结果,并存在输出偏差。为了解决这些局限性,我们引入了CS-Agent,一个双智能体协作框架,以增强基于LLM的社区搜索。CS-Agent利用两个分别充当求解器(Solver)和验证器(Validator)的LLMs的互补优势。通过迭代反馈和细化,CS-Agent无需微调或额外训练即可动态改进初始结果。在多轮对话后,决策器(Decider)模块选择最优社区。大量实验表明,与基线方法相比,CS-Agent显著提高了识别社区的质量和稳定性。据我们所知,这是首个将LLMs应用于社区搜索的工作,弥合了LLMs与图分析之间的差距,同时为现实世界应用提供了稳健且自适应的解决方案。

英文摘要:

Large Language Models (LLMs) have demonstrated remarkable capabilities in natural language processing tasks, yet their application to graph structure analysis, particularly in community search, remains underexplored. Community search, a fundamental task in graph analysis, aims to identify groups of nodes with dense interconnections, which is crucial for understanding the macroscopic structure of graphs. In this paper, we propose GraphCS, a comprehensive benchmark designed to evaluate the performance of LLMs in community search tasks. Our experiments reveal that while LLMs exhibit preliminary potential, they frequently fail to return meaningful results and suffer from output bias. To address these limitations, we introduce CS-Agent, a dual-agent collaborative framework to enhance LLM-based community search. CS-Agent leverages the complementary strengths of two LLMs acting as Solver and Validator. Through iterative feedback and refinement, CS-Agent dynamically refines initial results without fine-tuning or additional training. After the multi-round dialogue, Decider module selects the optimal community. Extensive experiments demonstrate that CS-Agent significantly improves the quality and stability of identified communities compared to baseline methods. To our knowledge, this is the first work to apply LLMs to community search, bridging the gap between LLMs and graph analysis while providing a robust and adaptive solution for real-world applications.

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

↑