[Paper Review] Large Language Model Evaluation Via Multi AI Agents: Preliminary results
This paper proposes a novel multi-agent AI framework to evaluate large language models (LLMs) in code generation, using eight specialized agents to retrieve code from different LLMs (e.g., GPT-3.5 Turbo, GPT-4 Turbo) based on shared high-level descriptions, with a verification agent assessing outputs via the HumanEval benchmark and pass@k metric. GPT-3.5 Turbo achieved the highest performance with 70% accuracy across 10 test cases, outperforming other models.
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.
Motivation & Objective
- To address the lack of multi-agent systems specifically designed for evaluating LLM performance in code generation.
- To provide a systematic, comparative assessment of diverse LLMs using a shared evaluation framework.
- To leverage automated benchmarks (HumanEval) and human expertise to ensure robust and practical evaluation.
- To establish a scalable and extensible evaluation platform that evolves with emerging LLMs and benchmarks.
- To guide stakeholders in selecting optimal LLMs for software engineering workflows through data-driven insights.
Proposed method
- Deploy eight specialized AI agents, each interfacing with a different LLM (e.g., GPT-3.5 Turbo, GPT-4, Google Bard) via their respective APIs to generate code from the same high-level description.
- Implement a dedicated verification agent that evaluates all generated code using the HumanEval benchmark and pass@k metric for syntactic correctness, functionality, and adherence to prompts.
- Use the pass@k metric to assess code generation quality by testing multiple completions and measuring the rate of passing functional tests.
- Integrate the HumanEval benchmark as the core evaluation standard to ensure objective, reproducible, and widely accepted performance measurement.
- Plan to extend the evaluation framework by incorporating the MBPP benchmark for broader and more diverse code generation tasks.
- Engage 20 practitioners from varied backgrounds to provide qualitative feedback, enhancing the model’s practical relevance and robustness.
Experimental results
Research questions
- RQ1How do different LLMs perform in generating functional code from high-level natural language descriptions?
- RQ2What is the relative effectiveness of GPT-3.5 Turbo, GPT-4 Turbo, and other LLMs in code generation tasks under standardized evaluation?
- RQ3Can a multi-agent AI framework with automated benchmarking (HumanEval) provide a reliable and scalable method for comparing LLM performance?
- RQ4How does the integration of human expert feedback improve the evaluation of LLM-generated code beyond automated metrics?
- RQ5To what extent can the MBPP benchmark enhance the granularity and diversity of LLM evaluation compared to HumanEval?
Key findings
- GPT-3.5 Turbo achieved the highest code generation accuracy, with 7 out of 10 test cases (70%) passing functional tests on the HumanEval benchmark.
- GPT-4 Turbo performed second best, successfully generating correct code in 6 out of 10 cases.
- GPT-3.5 and GPT-4 each passed 5 out of 10 tasks, indicating moderate but less consistent performance.
- Google Bard achieved correct results in 4 out of 10 cases, showing lower reliability in functional code generation.
- LLaMA and Hugging Face models each passed only 2 out of 10 tasks, indicating limited performance in this evaluation setup.
- The verification agent successfully applied the pass@k metric and HumanEval benchmark to objectively compare model outputs, validating the framework’s reliability.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.