CODE-DITING: A Reasoning-Based Metric for Functional Alignment in Code Evaluation
On the map: LLM reasoning → Reasoning for agents, planning and code
Abstract (arXiv)
Trustworthy evaluation methods for code snippets play a crucial role in neural code generation. Traditional methods, which either rely on reference solutions or require executable test cases, have inherent limitation in flexibility and scalability. The recent LLM-as-Judge methodology offers a promising alternative by directly evaluating functional consistency between the problem description and the generated code. To systematically understand the landscape of these LLM-as-Judge methods, we conduct a comprehensive empirical study across three diverse datasets. Our investigation reveals the pros and cons of two categories of LLM-as-Judge methods: the methods based on general foundation models can achieve good performance but require complex prompts and lack explainability, while the methods based on reasoning foundation models provide better explainability with simpler prompts but demand substantial computational resources due to their large parameter sizes. To address these limitations, we propose CODE-DITING, a novel code evaluation method that balances accuracy, efficiency and explainability. We develop a data distillation framework that effectively transfers reasoning capabilities from DeepSeek-R1671B to our CODE-DITING 1.5B and 7B models, significantly enhancing evaluation explainability and reducing the computational cost. With the majority vote strategy in the inference process, CODE-DITING 1.5B outperforms all models with the same magnitude of parameters and achieves performance which would normally exhibit in a model with 5 times of parameter scale. CODE-DITING 7B surpasses GPT-4o and DeepSeek-V3 671B, even though it only uses 1% of the parameter volume of these large models. Further experiments show that CODEDITING is robust to preference leakage and can serve as a promising alternative for code evaluation.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 35 of its 46 references that are in the map. First posted on arXiv 26 May 2025.
Builds on
35 of 46 references.
Closest ancestors · 3
Same direction, newest first
- 2025KodCode: A Diverse, Challenging, and Verifiable Synthetic Dataset for Coding4 Mar
- 2024Qwen2.5-Coder Technical Report18 Sep
- 2023Chain-of-Thought in Neural Code Generation: From and For Lightweight Language Models9 Dec
Other references · 32
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,146
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
- 2015Delving Deep into Rectifiers: Surpassing Human-Level Performance on ImageNet Classificationcited by 3,590
- 2024A Survey on LLM-as-a-Judgecited by 1,384
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,332
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,154
- 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructionscited by 527
- 2024From Generation to Judgment: Opportunities and Challenges of LLM-as-a-judgecited by 480
- 2020CodeBLEU: a Method for Automatic Evaluation of Code Synthesiscited by 468
20 more
- 2024LLMs-as-Judges: A Comprehensive Survey on LLM-based Evaluation Methodscited by 451
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
- 2024PiSSA: Principal Singular Values and Singular Vectors Adaptation of Large Language Modelscited by 261
- 2024LLM-Based Multi-Agent Systems for Software Engineering: Literature Review, Vision and the Road Aheadcited by 155
- 2024OpenCoder: The Open Cookbook for Top-Tier Code Large Language Modelscited by 127
- 2025Preference Leakage: A Contamination Problem in LLM-as-a-judgecited by 119
- 2023CodeBERTScore: Evaluating Code Generation with Pretrained Models of Codecited by 101
- 2023CodeScore: Evaluating Code Generation by Learning Code Executioncited by 66
- 2023ICE-Score: Instructing Large Language Models to Evaluate Codecited by 50
- 2024CodeJudge: Evaluating Code Generation with Large Language Modelscited by 41
- 2024Benchmarks and Metrics for Evaluations of Code Generation: A Critical Reviewcited by 19
- 2024Exploring the Capabilities of LLMs for Code Change Related Taskscited by 18
- 2024Efficient and Green Large Language Models for Software Engineering: Literature Review, Vision, and the Road Aheadcited by 17
- 2025An Empirical Study of Retrieval-Augmented Code Generation: Challenges and Opportunitiescited by 17
- 2025From Code to Courtroom: LLMs as the New Software Judgescited by 16
- 2022Who Evaluates the Evaluators? On Automatic Metrics for Assessing AI-based Offensive Code Generatorscited by 10
- 2023Assessing and Improving Syntactic Adversarial Robustness of Pre-trained Models for Code Translationcited by 6
- 2024On the Limitations of Embedding Based Methods for Measuring Functional Correctness for Code Generationcited by 6
- 2024Fight Fire with Fire: How Much Can We Trust ChatGPT on Source Code-Related Tasks?cited by 6
- 2024CodeScore-R: An Automated Robustness Metric for Assessing the FunctionalCorrectness of Code Synthesiscited by 2
Built on by
Citing papers per year: 2025: 1.
1 paper.
- 2025CodeJudgeBench: Benchmarking LLM-as-a-Judge for Coding Taskscited by 32
- 2025CodeJudgeBench: Benchmarking LLM-as-a-Judge for Coding Tasks14 Jul 2025
Similar, not cited
Close in wording, no citation either way
- 2025LeetCodeDataset: A Temporal Dataset for Robust Evaluation and Efficient Training of Code LLMs
- 2025An Empirical Study of Reasoning Steps in Thinking Code LLMs
- 2025Evaluating the Generalization Capabilities of Large Language Models on Code Reasoning
- 2026Inferring Code Correctness from Specification
- 2026Are you Synthesizing or Recalling? Evaluating LLMs on Algorithmic Code Retrieval
- 2024SemCoder: Training Code Language Models with Comprehensive Semantics Reasoning
- 2025Pragmatic Reasoning improves LLM Code Generation
- 2024CodeMind: Evaluating Large Language Models for Code Reasoning