团队协作成就梦想:用于 GitHub README.MD 摘要生成的基于 LLM 的智能体
Teamwork makes the dream work: LLMs-Based Agents for GitHub README.MD Summarization
AI总结:
本文提出多智能体框架 Metagente,通过专门 LLM 智能体的评估、反馈、协作及教师智能体聚合来优化 README.MD 摘要,显著优于 GitSum、LLaMA-2 和 GPT-4o。
摘要:
近年来,大型语言模型(LLM)的快速普及已在多个领域实现了许多应用。由于接受了来自各种来源的海量数据训练,LLM 可被部署用于解决不同任务,包括软件工程(SE)中的任务。尽管它们已被广泛采用,但协同使用 LLM 的潜力尚未得到充分研究。本文提出 Metagente,作为一种增强多种 LLM 协同效应的新颖方法。Metagente 是一个基于一系列 LLM 的多智能体框架,通过专门智能体之间的评估、反馈与协作来实现系统的自我优化。该框架创造了一个环境,使多个智能体能够从不同视角迭代地完善和优化提示词。随后,这些探索的结果由一个教师智能体进行审查和汇总。为研究其性能,我们使用一项 SE 任务(即 README.MD 文件摘要生成)评估了 Metagente,并将其与三个成熟基线 GitSum、LLaMA-2 和 GPT-4o 进行比较。结果表明,我们提出的方法运行高效且有效,只需消耗少量数据进行微调,仍能获得较高准确率,从而显著优于这些基线。与最相关的基准 GitSum 相比,性能提升幅度为 27.63% 至 60.43%。更重要的是,与仅使用单个 LLM 相比,Metagente 将准确率提高到数倍。
英文摘要:
The proliferation of Large Language Models (LLMs) in recent years has realized many applications in various domains. Being trained with a huge of amount of data coming from various sources, LLMs can be deployed to solve different tasks, including those in Software Engineering (SE). Though they have been widely adopted, the potential of using LLMs cooperatively has not been thoroughly investigated. In this paper, we proposed Metagente as a novel approach to amplify the synergy of various LLMs. Metagente is a Multi-Agent framework based on a series of LLMs to self-optimize the system through evaluation, feedback, and cooperation among specialized agents. Such a framework creates an environment where multiple agents iteratively refine and optimize prompts from various perspectives. The results of these explorations are then reviewed and aggregated by a teacher agent. To study its performance, we evaluated Metagente with an SE task, i.e., summarization of README.MD files, and compared it with three well-established baselines, i.e., GitSum, LLaMA-2, and GPT-4o. The results show that our proposed approach works efficiently and effectively, consuming a small amount of data for fine-tuning but still getting a high accuracy, thus substantially outperforming the baselines. The performance gain compared to GitSum, the most relevant benchmark, ranges from 27.63% to 60.43%. More importantly, compared to using only one LLM, Metagente boots up the accuracy to multiple folds.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。