[论文解读] Large Language Model Evaluation Via Multi AI Agents: Preliminary results
本文提出了一种新颖的多智能体AI框架,用于评估大型语言模型(LLMs)在代码生成任务中的表现,通过八个专业智能体从不同LLM(如GPT-3.5 Turbo、GPT-4 Turbo)检索代码,基于共享的高层次描述进行生成,验证智能体则通过HumanEval基准和pass@k指标评估输出结果。GPT-3.5 Turbo在10个测试用例中取得了70%的准确率,表现最佳,优于其他模型。
As Large Language Models (LLMs) have become integral to both research and daily operations, rigorous evaluation is crucial. This assessment is important not only for individual tasks but also for understanding their societal impact and potential risks. Despite extensive efforts to examine LLMs from various perspectives, there is a noticeable lack of multi-agent AI models specifically designed to evaluate the performance of different LLMs. To address this gap, we introduce a novel multi-agent AI model that aims to assess and compare the performance of various LLMs. Our model consists of eight distinct AI agents, each responsible for retrieving code based on a common description from different advanced language models, including GPT-3.5, GPT-3.5 Turbo, GPT-4, GPT-4 Turbo, Google Bard, LLAMA, and Hugging Face. Our developed model utilizes the API of each language model to retrieve code for a given high-level description. Additionally, we developed a verification agent, tasked with the critical role of evaluating the code generated by its counterparts. We integrate the HumanEval benchmark into our verification agent to assess the generated code's performance, providing insights into their respective capabilities and efficiencies. Our initial results indicate that the GPT-3.5 Turbo model's performance is comparatively better than the other models. This preliminary analysis serves as a benchmark, comparing their performances side by side. Our future goal is to enhance the evaluation process by incorporating the Massively Multitask Benchmark for Python (MBPP) benchmark, which is expected to further refine our assessment. Additionally, we plan to share our developed model with twenty practitioners from various backgrounds to test our model and collect their feedback for further improvement.
研究动机与目标
- 解决目前缺乏专门针对代码生成任务中LLM性能评估的多智能体系统的问题。
- 通过统一的评估框架,对多种LLM进行系统性、对比性评估。
- 结合自动化基准(HumanEval)与人工专家经验,确保评估结果的稳健性与实用性。
- 建立一个可扩展且可扩展的评估平台,能够随新兴LLM和基准的出现而持续演进。
- 通过数据驱动的洞察,为利益相关者在软件工程工作流中选择最优LLM提供指导。
提出的方法
- 部署八个专业智能体,每个智能体通过其对应API与不同LLM(如GPT-3.5 Turbo、GPT-4、Google Bard)交互,基于相同的高层次描述生成代码。
- 实施一个专用的验证智能体,使用HumanEval基准和pass@k指标对所有生成的代码进行评估,检查其语法正确性、功能正确性以及对提示的遵循程度。
- 使用pass@k指标通过测试多个完成结果,衡量通过功能测试的比例,以评估代码生成质量。
- 将HumanEval基准作为核心评估标准,确保性能测量的客观性、可复现性以及广泛认可度。
- 计划通过引入MBPP基准扩展评估框架,以支持更广泛且多样的代码生成任务。
- 邀请20位来自不同背景的实践者提供定性反馈,提升模型在实际应用中的相关性与鲁棒性。
实验结果
研究问题
- RQ1不同LLM在从高层次自然语言描述生成功能性代码方面表现如何?
- RQ2在标准化评估条件下,GPT-3.5 Turbo、GPT-4 Turbo及其他LLM在代码生成任务中的相对有效性如何?
- RQ3具备自动化基准(HumanEval)的多智能体AI框架能否提供一种可靠且可扩展的LLM性能比较方法?
- RQ4人工专家反馈的整合如何在自动化指标之外提升LLM生成代码的评估质量?
- RQ5与HumanEval相比,MBPP基准在多大程度上能提升LLM评估的粒度与多样性?
主要发现
- GPT-3.5 Turbo在HumanEval基准上取得了最高的代码生成准确率,10个测试用例中有7个(70%)通过了功能测试。
- GPT-4 Turbo表现次之,在10个用例中成功生成正确代码的有6个。
- GPT-3.5和GPT-4各自在10项任务中通过了5项,表明其性能中等但不够稳定。
- Google Bard在10个用例中仅正确生成4个结果,显示出在功能性代码生成中可靠性较低。
- LLaMA和Hugging Face模型各自仅在10项任务中通过了2项,表明在此评估设置下性能有限。
- 验证智能体成功应用了pass@k指标和HumanEval基准,客观比较了模型输出,验证了该框架的可靠性。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。