arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.18032cs.AIcs.CLcs.MA
收藏

GraphTeam:通过多智能体协作促进基于大语言模型的图分析

GraphTeam: Facilitating Large Language Model-based Graph Analysis via Multi-Agent Collaboration

Beijing University of Posts and Telecommunications(北京邮电大学);The Chinese University of Hong Kong(香港中文大学);Tsinghua University(清华大学)

Xin Li, Qizhi Chu, Yubin Chen, Yang Liu, Yaoqi Liu, Zekai Yu, Weize Chen, Chen Qian, Chuan Shi, Cheng Yang

AI总结:

针对现有LLM图分析方法可迁移性差或性能次优的问题,提出多智能体协作系统GraphTeam,通过输入输出标准化、外部知识检索和问题解决三个模块的五个智能体协同工作,在六个基准上准确率平均提升25.85%。

摘要:

图被广泛用于对现实世界场景中的关系数据进行建模,例如社交网络和城市计算。现有的基于LLM的图分析方法要么将图神经网络(GNNs)集成用于特定的机器学习任务,限制了其可迁移性,要么仅依赖LLMs的内部推理能力,导致性能次优。为了解决这些局限性,我们利用基于LLM的智能体的最新进展,这些智能体已经展现出利用外部知识或工具解决问题的能力。通过模拟类比和协作等人类问题解决策略,我们提出了一个基于LLMs的多智能体系统GraphTeam,用于图分析。GraphTeam由来自三个模块的五个基于LLM的智能体组成,具有不同专长的智能体可以相互协作以解决复杂问题。具体而言,(1)输入-输出标准化模块:问题智能体从原始问题中提取并精炼四个关键参数,以促进问题理解,答案智能体组织结果以满足输出要求;(2)外部知识检索模块:我们首先构建一个包含相关文档和经验信息的知识库,然后搜索智能体为每个问题检索最相关的条目。(3)问题解决模块:给定来自搜索智能体的检索信息,编码智能体通过编程使用既定算法生成解决方案,如果编码智能体不起作用,推理智能体将直接计算结果而无需编程。在六个图分析基准上的广泛实验表明,GraphTeam实现了最先进的性能,在准确率方面比最佳基线平均提高了25.85%。代码和数据可在https://github.com/BUPT-GAMMA/GraphTeam获取。

英文摘要:

Graphs are widely used for modeling relational data in real-world scenarios, such as social networks and urban computing. Existing LLM-based graph analysis approaches either integrate graph neural networks (GNNs) for specific machine learning tasks, limiting their transferability, or rely solely on LLMs' internal reasoning ability, resulting in suboptimal performance. To address these limitations, we take advantage of recent advances in LLM-based agents, which have shown capabilities of utilizing external knowledge or tools for problem solving. By simulating human problem-solving strategies such as analogy and collaboration, we propose a multi-agent system based on LLMs named GraphTeam, for graph analysis. GraphTeam consists of five LLM-based agents from three modules, and the agents with different specialities can collaborate with each other to address complex problems. Specifically, (1) input-output normalization module: the question agent extracts and refines four key arguments from the original question, facilitating the problem understanding, and the answer agent organizes the results to meet the output requirement; (2) external knowledge retrieval module: we first build a knowledge base consisting of relevant documentation and experience information, and then the search agent retrieves the most relevant entries for each question. (3) problem-solving module: given the retrieved information from search agent, the coding agent uses established algorithms via programming to generate solutions, and in case the coding agent does not work, the reasoning agent will directly compute the results without programming. Extensive experiments on six graph analysis benchmarks demonstrate that GraphTeam achieves state-of-the-art performance with an average 25.85% improvement over the best baseline in terms of accuracy. The code and data are available at https://github.com/BUPT-GAMMA/GraphTeam.

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

↑