arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2502.16614cs.CL
收藏

CodeCriticBench:面向大型语言模型的整体代码批评基准

CodeCriticBench: A Holistic Code Critique Benchmark for Large Language Models

NJU(南京大学);M-A-P;Alibaba(阿里巴巴);BUAA(北京航空航天大学);CASIA(中国科学院自动化研究所);BUPT(北京邮电大学);Kuaishou(快手);OPPO
Alexander Zhang, Marcus Dong, Jiaheng Liu, Wei Zhang, Yejie Wang, Jian Yang, Ge Zhang, Tianyu Liu, Zhongyuan Peng, Yingshui Tan, Yuanxing Zhang, Zhexu Wang, Wei… 展开作者

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

AI总结:

针对现有批评基准在代码任务覆盖不足和评估维度单一的问题,提出CodeCriticBench基准,涵盖代码生成与代码问答任务,并设计基础与高级评估协议,实验验证其有效性。

摘要:

大型语言模型(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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑