[논문 리뷰] Large Language Model Evaluation Via Multi AI Agents: Preliminary results
이 논문은 코드 생성 분야에서 대규모 언어 모델(Large Language Models, LLMs)의 성능을 평가하기 위해 다중 에이전트 AI 프레임워크를 제안한다. 이 프레임워크는 공통의 고수준 기술서를 바탕으로 다양한 LLMs(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을 선택할 수 있도록 안내하기 위해.
제안 방법
- 각기 다른 LLM(GPT-3.5 Turbo, GPT-4, Google Bard 등)과 API를 통해 연결된 여덟 개의 전문화된 AI 에이전트를 구현하여 동일한 고수준 기술서에서 코드를 생성한다.
- 모든 생성된 코드를 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 생성 코드 평가에 어떤 영향을 미치는가?
- RQ5HumanEval에 비해 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 벤치마크를 성공적으로 적용하여 모델 출력 결과를 객관적으로 비교함으로써 프레임워크의 신뢰성을 검증했다.
이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.