CRQBench:代码推理问题基准
CRQBench: A Benchmark of Code Reasoning Questions
AI总结:
针对现有代码推理能力评估基准不符合实际、混淆推理能力与工程任务表现的问题,研究推出含100道C++代码推理题的CRQBench基准,采用大模型加人工校验的构建方式,评估显示GPT-4在该基准上的正确率为65%。
摘要:
大语言模型在编码任务上展现出了卓越的能力,但精准评估其代码推理能力仍颇具挑战。现有基准存在不足,它们不符合实际场景,且将语义推理能力与软件工程任务表现混为一谈。我们推出CRQBench,这一基准包含100道源自上下文相关代码审查评论的C++代码推理问答题目。为构建CRQBench,我们借助大语言模型助手并结合人工检查,减少了人工工作量。我们在CRQBench上对GPT-4开展了评估,发现其在100道题中有65道能基于给定上下文生成正确回答。
英文摘要:
Large Language Models have demonstrated exceptional proficiency on coding tasks, but it is challenging to precisely evaluate their code reasoning ability. Existing benchmarks are insufficient as they are unrealistic and conflate semantic reasoning ability with performance on software engineering tasks. We introduce CRQBench, a benchmark of 100 C++ code reasoning questions and answers derived from contextualized code review comments. To curate CRQBench, we use an LLM assistant alongside human inspection, reducing manual effort. We conduct an evaluation of GPT-4 on CRQBench and find that it produces correct responses grounded in the given context for 65 of the 100 questions.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。