CodeJudge-Eval: Can Large Language Models be Good Judges in Code Understanding?

Yuwei Zhao, Ziyang Luo, Yuchen Tian, Hongzhan Lin, Weixiang Yan +2 more
8/20/2024
cs.SEcs.CL

Official code: CodeLLM-Research/CodeJudge-Eval (12 stars, MIT, last commit 2024-12-03).

Abstract

Recent advancements in large language models (LLMs) have showcased impressive code generation capabilities, primarily evaluated through language-to-code benchmarks. However, these benchmarks may not fully capture a model's code understanding abilities. We introduce CodeJudge-Eval (CJ-Eval), a novel benchmark designed to assess LLMs' code understanding abilities from the perspective of code judging rather than code generation. CJ-Eval challenges models to determine the correctness of provided code solutions, encompassing various error types and compilation issues. By leveraging a diverse set of problems and a fine-grained judging system, CJ-Eval addresses the limitations of traditional benchmarks, including the potential memorization of solutions. Evaluation of 12 well-known LLMs on CJ-Eval reveals that even state-of-the-art models struggle, highlighting the benchmark's ability to probe deeper into models' code understanding abilities. Our codes and benchmark are available at \url{https://github.com/CodeLLM-Research/CodeJudge-Eval}.

View on arXivView PDF

Code Implementations(1)

MIT

[COLING25] CodeJudge Eval: Can Large Language Models be Good Judges in Code Understanding?

123Aug 18, 20241 years agoMIT

Similar Papers

Cite this paper

@article{zhao2024codejudgeeval,
  title  = {CodeJudge-Eval: Can Large Language Models be Good Judges in Code Understanding?},
  author = {Yuwei Zhao and Ziyang Luo and Yuchen Tian and Hongzhan Lin and Weixiang Yan and Annan Li and Jing Ma},
  year   = {2024},
  eprint = {2408.10718},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2408.10718v2}
}

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/2408.10718.svg)](https://codeofpaper.com/paper/2408.10718)

Discussion