Skip to main content
QUICK REVIEW

[論文レビュー] Large Language Model Evaluation Via Multi AI Agents: Preliminary results

Zeeshan Rasheed, Muhammad Waseem|arXiv (Cornell University)|Apr 1, 2024
Natural Language Processing TechniquesComputer Science被引用数 3
ひとこと要約

本稿では、コード生成における大規模言語モデル(LLM)の評価を目的とした、新規のマルチエージェントAIフレームワークを提案する。8体の専門的エージェントが、共有された高レベルの記述に基づき、GPT-3.5 Turbo や GPT-4 Turbo などの異なるLLMからコードを取得する。検証エージェントはHumanEvalベンチマークと pass@k メトリクスを用いて出力を評価する。GPT-3.5 Turboは10のテストケースにおいて70%の正確性を達成し、他のモデルを上回った。

ABSTRACT

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を選定できるように支援すること。

提案手法

  • 8体の専門的AIエージェントを展開し、それぞれがGPT-3.5 Turbo や GPT-4、Google Bard などの異なるLLMのAPIを介して、同一の高レベル記述からコードを生成する。
  • 生成されたすべてのコードを検証エージェントが、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は2番目に優れた性能を示し、10ケース中6つが正しく生成された。
  • GPT-3.5とGPT-4はそれぞれ10タスク中5つを合格させ、中程度ではあるが一貫性に欠ける性能を示した。
  • Google Bardは10ケース中4つで正解を達成し、機能的コード生成において低い信頼性を示した。
  • LLaMAおよびHugging Faceモデルはそれぞれ10タスク中2つしか合格せず、この評価設定では限界のあるパフォーマンスを示した。
  • 検証エージェントは pass@k メトリクスと HumanEvalベンチマークを効果的に適用し、モデル出力の客観的比較を実現し、フレームワークの信頼性を検証した。

この論文を読む

Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。

Nubintでこの論文を読む

このレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。