LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Code

Naman Jain, King Han, Alex Gu, Wen-Ding Li, Fanjia Yan, Tianjun Zhang, Sida Wang, Armando Solar-Lezama, Koushik Sen, Ion Stoica

arXiv:2403.07974 · 2026-07-27 공개 · arXiv · PDF

code-generation instruction-tuning llm-benchmarks livecodebench llm-performance code-evaluation self-repair code-execution

Abstract

Large Language Models (LLMs) applied to code-related applications have emerged as a prominent field, attracting significant interest from both academia and industry. However, as new and improved LLMs are developed, existing evaluation benchmarks (e.g., HumanEval, MBPP) are no longer sufficient for assessing their capabilities. In this work, we propose LiveCodeBench, a comprehensive and contamination-free evaluation of LLMs for code, which continuously collects new problems over time from contests across three competition platforms, namely LeetCode, AtCoder, and CodeForces. Notably, our benchmark also focuses on a broader range of code related capabilities, such as self-repair, code execution, and test output prediction, beyond just code generation. Currently, LiveCodeBench hosts four hundred high-quality coding problems that were published between May 2023 and May 2024. We have evaluated 18 base LLMs and 34 instruction-tuned LLMs on LiveCodeBench. We present empirical findings on contamination, holistic performance comparisons, potential overfitting in existing benchmarks as well as individual model comparisons. We will release all prompts and model completions for further community analysis, along with a general toolkit for adding new scenarios and model

한국어 요약

한 줄 요약

LiveCodeBench는 코드 생성 외에도 디버깅, 실행, 테스트 예측을 포함한 코드 관련 능력을 종합적으로 평가하는, 오염 없는 대규모 언어 모델 평가 벤치마크이다.

핵심 기여도

핵심 아이디어

기존 코드 평가 벤치마크(HumanEval, MBPP)는 오염 위험과 단일한 코드 생성 평가에 제한되어 있다. LiveCodeBench는 이 문제를 해결하기 위해 **Live 방식의 문제 업데이트**를 도입하여 모델이 훈련 데이터에 포함되지 않은 문제를 평가하도록 설계했다. 또한, 코드 생성 외에도 **Self-Repair**, **Code Execution**, **Test Output Prediction**이라는 3가지 추가 시나리오를 통해 LLM의 종합적인 코드 능력을 평가한다. 특히, Self-Repair 시나리오에서는 테스트 실패 정보를 바탕으로 코드를 수정하는 능력을 평가하며, Code Execution 시나리오에서는 주어진 입력에 대해 코드 실행 결과를 예측하는 능력을 평가한다. 이러한 다각적 평가 구조는 기존 벤치마크가 간과한 코드 능력을 포괄적으로 측정할 수 있도록 한다.

기술적 접근법

주요 결과

의의 및 한계

LiveCodeBench는 코드 평가 벤치마크의 오염 문제를 해결하고, 코드 생성 외에도 디버깅, 실행, 테스트 예측 등 다양한 능력을 평가함으로써 LLM의 종합적인 코드 이해 능력을 측정할 수 있는 새로운 기준을 제시한다. 또한, 문제를 Live 방식으로 업데이트함으로써 벤치마크의 지속 가능성과 신뢰도를 높였다. 그러나, 현재까지 평가된 모델 수(29개)는 제한적이며, 향후 더 많은 모델과 시나리오가 추가되어야 보다 포괄적인 평가가 가능할 것이다. 또한, 일부 시나리오(예: Code Execution)는 실행 환경에 따라 결과가 달라질 수 있어, 표준화된 실행 환경이 필요하다는 한계가 있다.

실용적 활용

LiveCodeBench는 코드 관련 LLM의 개발 및 평가에 있어 학술적 연구뿐 아니라, 산업 현장에서 모델의 실질적인 코드 이해 및 생성 능력을 검증하는 데 유용하게 활용될 수 있다. 특히, 모델 오염 방지와 다면적 평가를 요구하는 소프트웨어 개발, 자동화 테스트, 코드 리뷰 등 분야에서 실용적 가치가 높다.