Don't Judge Code by Its Cover: Exploring Biases in LLM Judges for Code Evaluation
Not on the map. Why?
Abstract (arXiv)
With the growing use of large language models(LLMs) as evaluators, their application has expanded to code evaluation tasks, where they assess the correctness of generated code without relying on reference implementations. While this offers scalability and flexibility, it also raises a critical, unresolved question: Can LLM judges fairly and robustly evaluate semantically equivalent code with superficial variations? Functionally correct code often exhibits variations-such as differences in variable names, comments, or formatting-that should not influence its correctness. Yet, whether LLM judges can reliably handle these variations remains unclear. We present the first comprehensive study of this issue, defining six types of potential bias in code evaluation and revealing their systematic impact on LLM judges. Across five programming languages and multiple LLMs, we empirically demonstrate that all tested LLM judges are susceptible to both positive and negative biases, resulting in inflated or unfairly low scores. Moreover, we observe that LLM judges remain vulnerable to these biases even when prompted to generate test cases before scoring, highlighting the need for more robust code evaluation methods.
Key facts. Cited by 18 papers in the map (data through 14 Oct 2026). Builds on 28 of its 45 references that are in the map. First posted on arXiv 22 May 2025.
Builds on
28 of 45 references.
References · 28
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,626
- 2019BERTScore: Evaluating Text Generation with BERTcited by 5,512
- 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,824
- 2023G-Eval: NLG Evaluation using GPT-4 with Better Human Alignmentcited by 2,276
- 2024A Survey on LLM-as-a-Judgecited by 1,423
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,391
- 2020CodeBLEU: a Method for Automatic Evaluation of Code Synthesiscited by 479
- 2022CodeT: Code Generation with Generated Testscited by 384
- 2024MLLM-as-a-Judge: Assessing Multimodal LLM-as-a-Judge with Vision-Language Benchmarkcited by 372
- 2023JudgeLM: Fine-tuned Large Language Models are Scalable Judgescited by 367
- 2024JudgeBench: A Benchmark for Evaluating LLM-based Judgescited by 318
- 2024LLMs instead of Human Judges? A Large Scale Empirical Study across 20 NLP Evaluation Taskscited by 243
16 more
- 2021CodeNet: A Large-Scale AI for Code Dataset for Learning a Diversity of Coding Taskscited by 200
- 2019SPoC: Search-based Pseudocode to Codecited by 176
- 2023An Empirical Study of the Non-determinism of ChatGPT in Code Generationcited by 137
- 2023CodeBERTScore: Evaluating Code Generation with Pretrained Models of Codecited by 102
- 2025Can LLMs Replace Human Evaluators? An Empirical Study of LLM-as-a-Judge in Software Engineeringcited by 67
- 2022Out of the BLEU: how should we assess quality of the Code Generation models?cited by 65
- 2023ICE-Score: Instructing Large Language Models to Evaluate Codecited by 52
- 2019Does BLEU Score Work for Code Migration?cited by 49
- 2024CodeJudge-Eval: Can Large Language Models be Good Judges in Code Understanding?cited by 30
- 2024Are LLM-Judges Robust to Expressions of Uncertainty? Investigating the effect of Epistemic Markers on LLM-based Evaluationcited by 29
- 2024Large Language Models as Test Case Generators: Performance Evaluation and Enhancementcited by 28
- 2025Benchmarking Adversarial Robustness to Bias Elicitation in Large Language Models: Scalable Automated Assessment with LLM-as-a-Judgecited by 23
- 2024Benchmarking LLMs' Judgments with No Gold Standardcited by 19
- 2025LLMs can be easily Confused by Instructional Distractionscited by 13
- 2024CodeSift: An LLM-Based Reference-Less Framework for Automatic Code Validationcited by 4
- 2022A Systematic Literature Review on the Impact of Formatting Elements on Code Legibilitycited by 2
Built on by
Citing papers per year: 2025: 5; 2026: 13.
18 papers.
Sort:
By area:
- 2025CodeJudgeBench: Benchmarking LLM-as-a-Judge for Coding Taskscited by 33
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 15
- 2026Belief in Authority: Impact of Authority in Multi-Agent Evaluation Frameworkcited by 6
- 2026ISO-Bench: Can Coding Agents Optimize Real-World Inference Workloads?cited by 6
- 2025Uncovering Systematic Failures of LLMs in Verifying Code Against Natural Language Specificationscited by 5
- 2025On LLMs' Internal Representation of Code Correctnesscited by 5
- 2026Aletheia: What Makes RLVR For Code Verifiers Tick?cited by 5
- 2026Bias in the Loop: Auditing LLM-as-a-Judge for Software Engineeringcited by 4
- 2026LLM Judges Can Be Too Generous When There Is No Reference Answercited by 4
- 2026Measuring and Exploiting Contextual Bias in LLM-Assisted Security Code Reviewcited by 3
- 2026Scaffold, Not Vocabulary? A Controlled, Two-Tier, Pre-Registered Study of a Popperian Code-Generation Skillcited by 3
- 2026Probing Multimodal Large Language Models on Cognitive Biases in Chinese Short-Video Misinformationcited by 2
6 more
- 2025OptiHive: Ensemble Selection for LLM-Based Optimization via Statistical Modelingcited by 1
- 2026Judging What We Cannot Solve: A Consequence-Based Approach for Oracle-Free Evaluation of Research-Level Mathcited by 1
- 2026Themis: Training Robust Multilingual Code Reward Models for Flexible Multi-Criteria Scoringcited by 1
- 2026SkillEval: Decomposing Agent Skill Quality into Interpretable Signalscited by 1
- 2026CriterAlign: Criterion-Centric Rationale Alignment for Code Preference Judgingcited by 0
- 2026Style, Not Self: Surface Cues Explain Zero-Shot Code Attribution by Large Language Modelscited by 0
- 2026Style, Not Self: Surface Cues Explain Zero-Shot Code Attribution by Large Language Models24 Sep 2026
- 2026SkillEval: Decomposing Agent Skill Quality into Interpretable Signals7 Aug 2026
- 2026LLM Judges Can Be Too Generous When There Is No Reference Answer14 Jul 2026
- 2026Scaffold, Not Vocabulary? A Controlled, Two-Tier, Pre-Registered Study of a Popperian Code-Generation Skill4 Jun 2026
- 2026CriterAlign: Criterion-Centric Rationale Alignment for Code Preference Judging19 May 2026
- 2026Themis: Training Robust Multilingual Code Reward Models for Flexible Multi-Criteria Scoring1 May 2026
- 2026Bias in the Loop: Auditing LLM-as-a-Judge for Software Engineering18 Apr 2026
- 2026Measuring and Exploiting Contextual Bias in LLM-Assisted Security Code Review19 Mar 2026
- 2026ISO-Bench: Can Coding Agents Optimize Real-World Inference Workloads?23 Feb 2026
- 2026Judging What We Cannot Solve: A Consequence-Based Approach for Oracle-Free Evaluation of Research-Level Math6 Feb 2026
- 2026Aletheia: What Makes RLVR For Code Verifiers Tick?17 Jan 2026
- 2026Probing Multimodal Large Language Models on Cognitive Biases in Chinese Short-Video Misinformation10 Jan 2026
6 more
- 2026Belief in Authority: Impact of Authority in Multi-Agent Evaluation Framework8 Jan 2026
- 2025On LLMs' Internal Representation of Code Correctness8 Dec 2025
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligence23 Nov 2025
- 2025Uncovering Systematic Failures of LLMs in Verifying Code Against Natural Language Specifications17 Aug 2025
- 2025OptiHive: Ensemble Selection for LLM-Based Optimization via Statistical Modeling4 Aug 2025
- 2025CodeJudgeBench: Benchmarking LLM-as-a-Judge for Coding Tasks14 Jul 2025
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 15
- 2026Belief in Authority: Impact of Authority in Multi-Agent Evaluation Frameworkcited by 6
- 2026ISO-Bench: Can Coding Agents Optimize Real-World Inference Workloads?cited by 6
- 2026ISO-Bench: Can Coding Agents Optimize Real-World Inference Workloads?23 Feb 2026
- 2026Belief in Authority: Impact of Authority in Multi-Agent Evaluation Framework8 Jan 2026
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligence23 Nov 2025
- 2025CodeJudgeBench: Benchmarking LLM-as-a-Judge for Coding Taskscited by 33
- 2025Uncovering Systematic Failures of LLMs in Verifying Code Against Natural Language Specificationscited by 5
- 2025On LLMs' Internal Representation of Code Correctnesscited by 5
- 2026Aletheia: What Makes RLVR For Code Verifiers Tick?cited by 5
- 2026Bias in the Loop: Auditing LLM-as-a-Judge for Software Engineeringcited by 4
- 2026LLM Judges Can Be Too Generous When There Is No Reference Answercited by 4
- 2026Measuring and Exploiting Contextual Bias in LLM-Assisted Security Code Reviewcited by 3
- 2026Scaffold, Not Vocabulary? A Controlled, Two-Tier, Pre-Registered Study of a Popperian Code-Generation Skillcited by 3
- 2025OptiHive: Ensemble Selection for LLM-Based Optimization via Statistical Modelingcited by 1
- 2026SkillEval: Decomposing Agent Skill Quality into Interpretable Signalscited by 1
- 2026Style, Not Self: Surface Cues Explain Zero-Shot Code Attribution by Large Language Modelscited by 0
- 2026Style, Not Self: Surface Cues Explain Zero-Shot Code Attribution by Large Language Models24 Sep 2026
- 2026SkillEval: Decomposing Agent Skill Quality into Interpretable Signals7 Aug 2026
- 2026LLM Judges Can Be Too Generous When There Is No Reference Answer14 Jul 2026
- 2026Scaffold, Not Vocabulary? A Controlled, Two-Tier, Pre-Registered Study of a Popperian Code-Generation Skill4 Jun 2026
- 2026Bias in the Loop: Auditing LLM-as-a-Judge for Software Engineering18 Apr 2026
- 2026Measuring and Exploiting Contextual Bias in LLM-Assisted Security Code Review19 Mar 2026
- 2026Aletheia: What Makes RLVR For Code Verifiers Tick?17 Jan 2026
- 2025On LLMs' Internal Representation of Code Correctness8 Dec 2025
- 2025Uncovering Systematic Failures of LLMs in Verifying Code Against Natural Language Specifications17 Aug 2025
- 2025OptiHive: Ensemble Selection for LLM-Based Optimization via Statistical Modeling4 Aug 2025
- 2025CodeJudgeBench: Benchmarking LLM-as-a-Judge for Coding Tasks14 Jul 2025