Conference paper · 2024 · Open access
CodeJudge: Evaluating Code Generation with Large Language Models
Conference on Empirical Methods in Natural Language Processing (EMNLP), 20032–20051 · Published 1 January 2024 · DOI 10.18653/v1/2024.emnlp-main.1118
In brief
“CodeJudge: Evaluating Code Generation with Large Language Models” is a 2024 conference paper by Weixi Tong and Tianyi Zhang, published in Conference on Empirical Methods in Natural Language Processing (EMNLP). OpenAlex counts 166 citations as of 20 November 2026, which puts it in the top 1% of works published in 2024 by citations. It is open access under a CC BY licence: the full text is free to read at Conference on Empirical Methods in Natural Language Processing (EMNLP).
- Citations
- 166
- Most cited in
- 2026 (96)
- Field-weighted impact
- 25.38
- References
- 30
- Authors
- 2
Abstract
Large Language Models (LLMs) have shown promising performance in code generation.However, how to reliably evaluate code generated by LLMs remains an unresolved problem.This paper presents CODEJUDGE , a code evaluation framework that leverages LLMs to evaluate the semantic correctness of generated code without the need for test cases.We investigate different ways to guide the LLM in performing "slow thinking" to arrive at an in-depth and reliable evaluation.We experimented with four LLMs as evaluators on four code generation datasets and five programming languages.The results show that CODEJUDGE significantly outperformed existing methods in most settings.Furthermore, compared with a SOTA GPT-3.5-basedcode evaluation method, CODE-JUDGE achieved better results even when using a much smaller model, Llama-3-8B-Instruct.Our code and datasets are available on GitHub https://github.com/VichyTong/CodeJudge.
Cite this paper
Formatted from the catalogue record. Check names, capitals and page numbers against the paper before you submit.
APA 7
Tong, W., & Zhang, T. (2024). CodeJudge: Evaluating Code Generation with Large Language Models. Conference on Empirical Methods in Natural Language Processing (EMNLP), 20032–20051. https://doi.org/10.18653/v1/2024.emnlp-main.1118
MLA 9
Tong, Weixi, and Tianyi Zhang. “CodeJudge: Evaluating Code Generation with Large Language Models.” Conference on Empirical Methods in Natural Language Processing (EMNLP), 2024, pp. 20032–20051. https://doi.org/10.18653/v1/2024.emnlp-main.1118.
Chicago
Tong, Weixi and Tianyi Zhang. 2024. “CodeJudge: Evaluating Code Generation with Large Language Models.” Conference on Empirical Methods in Natural Language Processing (EMNLP): 20032–20051. https://doi.org/10.18653/v1/2024.emnlp-main.1118.
Harvard
Tong, W. and Zhang, T. (2024) ‘CodeJudge: Evaluating Code Generation with Large Language Models’, Conference on Empirical Methods in Natural Language Processing (EMNLP), pp. 20032–20051. doi:10.18653/v1/2024.emnlp-main.1118.
IEEE
W. Tong and T. Zhang, “CodeJudge: Evaluating Code Generation with Large Language Models,” Conference on Empirical Methods in Natural Language Processing (EMNLP), pp. 20032–20051, 2024, doi: 10.18653/v1/2024.emnlp-main.1118.
BibTeX
@inproceedings{tong2024codejudge,
title = {{CodeJudge: Evaluating Code Generation with Large Language Models}},
author = {Tong, Weixi and Zhang, Tianyi},
booktitle = {Conference on Empirical Methods in Natural Language Processing (EMNLP)},
year = {2024},
pages = {20032--20051},
doi = {10.18653/v1/2024.emnlp-main.1118},
url = {https://doi.org/10.18653/v1/2024.emnlp-main.1118}
}
Download for a reference manager: BibTeX (.bib) · RIS for Zotero, Mendeley and EndNote (.ris)
Topic and keywords
Physical Sciences › Computer Science › Information Systems › Software Engineering Research
- code generation evaluation
- large language models
- semantic correctness
- self-assessment
- slow thinking
- LLM-as-a-judge
- programming languages
Work with this paper
Most-cited papers in Computer Science
- ImageNet classification with deep convolutional neural networksAlex Krizhevsky, Ilya Sutskever, Geoffrey E. Hinton · Communications of the ACM · 2017 · 114,726 citations
- Long Short-Term MemorySepp Hochreiter, Jürgen Schmidhuber · Neural Computation · 1997 · 109,097 citations
- A Mathematical Theory of CommunicationClaude E. Shannon · Bell System Technical Journal · 1948 · 91,736 citations
- Deep learningYann LeCun, Yoshua Bengio, Geoffrey E. Hinton · Nature · 2015 · 90,226 citations
- Faster R-CNN: Towards Real-Time Object Detection with Region Proposal NetworksShaoqing Ren, Kaiming He, Ross Girshick and 1 more · IEEE Transactions on Pattern Analysis and Machine Intelligence · 2016 · 74,143 citations
Questions about this paper
How do I cite this paper in APA style?
Tong, W., & Zhang, T. (2024). CodeJudge: Evaluating Code Generation with Large Language Models. Conference on Empirical Methods in Natural Language Processing (EMNLP), 20032–20051. https://doi.org/10.18653/v1/2024.emnlp-main.1118
How many times has this paper been cited?
166 times, according to OpenAlex on 20 November 2026. Google Scholar and Scopus count different sets of sources, so their numbers differ.
Is this paper free to read?
Yes. It is open access at Conference on Empirical Methods in Natural Language Processing (EMNLP): sign in and open the PDF from this page.
Who wrote this paper?
Weixi Tong, Tianyi Zhang.
What is the DOI of this paper?
10.18653/v1/2024.emnlp-main.1118, permanently at https://doi.org/10.18653/v1/2024.emnlp-main.1118. Sign in and open it from this page.
Bibliographic data from OpenAlex (CC0), last checked 20 November 2026. ResearchGuru does not host this paper; once you are signed in, the links open it at the publisher or the repository that does.