Skip to main content
QUICK REVIEW

[논문 리뷰] A Survey on Evaluating Large Language Models in Code Generation Tasks

Liguo Chen, Qi Guo|arXiv (Cornell University)|2024. 08. 29.
Natural Language Processing TechniquesComputer Science인용 수 9
한 줄 요약

벤치마크, 평가 체계, 향후 과제를 포함하여 코드 생성을 위한 LLM 평가 방법과 지표를 종합적으로 검토한 리뷰.

ABSTRACT

This paper provides a comprehensive review of the current methods and metrics used to evaluate the performance of Large Language Models (LLMs) in code generation tasks. With the rapid growth in demand for automated software development, LLMs have demonstrated significant potential in the field of code generation. The paper begins by reviewing the historical development of LLMs and their applications in code generation. Next, it details various methods and metrics for assessing the code generation capabilities of LLMs, including code correctness, efficiency, readability, and evaluation methods based on expert review and user experience. The paper also evaluates the widely used benchmark datasets, identifying their limitations and proposing directions for future improvements. Specifically, the paper analyzes the performance of code generation models across different tasks by combining multiple evaluation metrics, such as code compilation/interpretation success rates, unit test pass rates, and performance and efficiency metrics, to comprehensively assess the practical application of LLMs in code generation. Finally, the paper discusses the challenges faced in evaluating LLMs in code generation, particularly how to ensure the comprehensiveness and accuracy of evaluation methods and how to adapt to the evolving practices of software development. These analyses and discussions provide valuable insights for further optimizing and improving the application of LLMs in code generation tasks.

연구 동기 및 목표

  • 정확성, 효율성, 가독성 관점에서 코드 생성을 위한 LLM 평가 방법을 분석한다.
  • 코드 생성 작업에 사용되는 벤치마크 데이터셋과 그 한계를 요약한다.
  • 전문가 리뷰 및 사용자 경험을 포함한 평가 방법론을 분석한다.
  • 확장 가능하고 다국어 대응하며 안전하고 견고한 평가의 도전 과제와 향후 방향을 제시한다.

제안 방법

  • 평가 지표를 유사도 기반, 실행 기반, 피드백 기반 범주로 분류한다.
  • CodeBLEU 및 데이터 흐름/AST 기반 평가와 같은 코드 특화 지표를 검토한다.
  • HumanEval, MBPP, CodeXGLUE, CoderUJB와 같은 벤치마크 세트를 요약하고 그 한계를 논의한다.
  • 확장성, 다국어 일반화, 보안, 강건성, 실용성 측면의 도전과제를 논의한다.
Fig.​​ 3 : Pass@1 Performance of LLMs on HumanEval Over Time.
Fig.​​ 3 : Pass@1 Performance of LLMs on HumanEval Over Time.

실험 결과

연구 질문

  • RQ1코드 생성을 평가하는 데 사용되는 평가 지표는 무엇이며 그 한계는 무엇인가?
  • RQ2코드 생성 평가에 사용되는 벤치마크는 무엇이며 실제 코딩 작업을 얼마나 잘 반영하는가?
  • RQ3코드 생성을 평가하는 LLMs에 어떤 도전 과제가 존재하며 향후 어떤 방향이 제안되는가?
  • RQ4다양한 평가 접근 방식(유사도, 실행, 피드백)이 코드 생성 품질 평가에서 서로 어떻게 보완하는가?

주요 결과

  • CodeBLEU는 구문적·의미적 코드 측면을 포함함으로써 BLEU보다 향상된다.
  • 컴파일/해석 성공률과 단위 테스트 통과율이 핵심 실행 기반 지표이다.
  • 피드백 기반 평가는 편견 없는 동료 심사와 실제 애플리케이션 테스트를 포함하여 객체성을 강화한다.
  • HumanEval과 MBPP와 같은 벤치마크는 파이썬 중심으로 실제 소프트웨어 작업을 충분히 반영하지 못할 수 있다.
  • 벤치마크의 변형들(예: Java용 CoderUJB)은 작업 특성에 따른 LLM의 강점과 한계를 보여준다.
Fig.​​ 4 : Pass@1 Performance of LLMs on MBPP Over Time.
Fig.​​ 4 : Pass@1 Performance of LLMs on MBPP Over Time.

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.