2025-02-25 · 进阶 · 机器学习 · 计算机视觉 · 数据科学

CodeCriticBench: A Holistic Code Critique Benchmark for Large Language Models

提出了一种全面的代码批判基准CodeCriticBench,用于评估大型语言模型(LLMs)在代码生成和代码问答任务上的批判能力。

更新于 2025-04-21。作者:Alexander Zhang、Marcus Dong、Jiaheng Liu、Wei Zhang、Yejie Wang、Jian Yang、Ge Zhang、Tianyu Liu、Zhongyuan Peng、Yingshui Tan、Yuanxing Zhang、Zhexu Wang、Weixun Wang、Yancheng He、Ken Deng、Wangchunshu Zhou、Wenhao Huang、Zhaoxiang Zhang。

中文摘要

大型语言模型(LLMs)的批判能力对于推理能力至关重要,这可以提供必要的建议(例如,详细分析和建设性反馈)。因此,如何评估LLMs的批判能力引起了广泛关注,并提出了几个批判基准。然而,现有的批判基准通常存在以下局限性:(1)主要关注通用领域中的多样化推理任务,对代码任务的评估不足(例如,仅涵盖代码生成任务),其中查询的难度相对较低(例如,CriticBench的代码查询来自Humaneval和MBPP)。(2)缺乏从不同维度的全面评估。为了解决这些局限性,我们引入了一个针对LLMs的全面代码批判基准,称为CodeCriticBench。具体来说,我们的CodeCriticBench包括两个主流代码任务(即代码生成和代码问答)以及不同难度的任务。此外,评估协议包括针对不同特性的基本批判评估和高级批判评估,其中为高级设置精心设计了细粒度的评估清单。最后,我们进行了现有LLMs的广泛实验结果,这显示了CodeCriticBench的有效性。

英文摘要

The critique capacity of Large Language Models (LLMs) is essential for reasoning abilities, which can provide necessary suggestions (e.g., detailed analysis and constructive feedback). Therefore, how to evaluate the critique capacity of LLMs has drawn great attention and several critique benchmarks have been proposed. However, existing critique benchmarks usually have the following limitations: (1). Focusing on diverse reasoning tasks in general domains and insufficient evaluation on code tasks (e.g., only covering code generation task), where the difficulty of queries is relatively easy (e.g., the code queries of CriticBench are from Humaneval and MBPP). (2). Lacking comprehensive evaluation from different dimensions. To address these limitations, we introduce a holistic code critique benchmark for LLMs called CodeCriticBench. Specifically, our CodeCriticBench includes two mainstream code tasks (i.e., code generation and code QA) with different difficulties. Besides, the evaluation protocols include basic critique evaluation and advanced critique evaluation for different characteristics, where fine-grained evaluation checklists are well-designed for advanced settings. Finally, we conduct extensive experimental results of existing LLMs, which show the effectiveness of CodeCriticBench.

解读

一句话总结

提出了一种全面的代码批判基准CodeCriticBench,用于评估大型语言模型(LLMs)在代码生成和代码问答任务上的批判能力。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源

机器可读索引:llms.txt