LiveCodeBench:面向代码的大语言模型的整体性且无污染评估
LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Code
AI总结:
本文提出 LiveCodeBench,一个从 LeetCode、AtCoder 和 CodeForces 持续收集新题的无污染代码评估基准,覆盖代码生成、自修复、代码执行和测试输出预测等能力,并基于 52 个大语言模型的评估揭示了现有基准的过拟合问题。
摘要:
应用于代码相关任务的大语言模型(LLMs)已成为一个突出的领域,吸引了学术界和工业界的广泛关注。然而,随着新型和改进型大语言模型的不断开发,现有的评估基准(如 HumanEval、MBPP)已不足以评估其能力。在本工作中,我们提出了 LiveCodeBench,一个面向代码的大语言模型的综合性且无污染评估基准,该基准持续地从三个竞赛平台(即 LeetCode、AtCoder 和 CodeForces)的比赛中收集新问题。值得注意的是,我们的基准还关注更广泛的代码相关能力,例如自修复、代码执行和测试输出预测,而不仅仅是代码生成。目前,LiveCodeBench 收录了 400 道高质量编程题,这些题目发布于 2023 年 5 月至 2024 年 5 月之间。我们已在 LiveCodeBench 上评估了 18 个基础大语言模型和 34 个指令微调大语言模型。我们给出了关于污染、整体性能比较、现有基准中潜在过拟合以及单个模型比较的实证发现。我们将发布所有提示和模型补全结果,供社区进一步分析,并提供一个用于添加新场景和模型的通用工具包。
英文摘要:
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
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。