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

Naman Jain, King Han, Alex Gu, Wen-Ding Li, Fanjia Yan +5 more
3/12/2024
cs.SEcs.CLcs.LG

No official code found. Best implementation: LiveCodeBench/LiveCodeBench (907 stars, MIT, last commit 2025-07-16). 1 more below.

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

View on arXivView PDF

Code Implementations(2)

MIT

Official repository for the paper "LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Code"

907195PythonMar 12, 20241 years agoMIT
code-executioncode-generationcode-llmscode-repairgpt-4+1 more
MIT

Official repository for the paper "LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Code"

00Shell, PythonOct 26, 20241 years agoMIT

Similar Papers

Cite this paper

@article{jain2024livecodebench,
  title  = {LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Code},
  author = {Naman Jain and King Han and Alex Gu and Wen-Ding Li and Fanjia Yan and Tianjun Zhang and Sida Wang and Armando Solar-Lezama and Koushik Sen and Ion Stoica},
  year   = {2024},
  eprint = {2403.07974},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2403.07974v2},
  journal = {ICLR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2403.07974.svg)](https://codeofpaper.com/paper/2403.07974)

Discussion