mlsanityData to 14 Oct 2026

Don't Judge Code by Its Cover: Exploring Biases in LLM Judges for Code Evaluation

arXiv 2505.16222 ↗First posted 22 May 2025cs.CL cs.SEcited by 18

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

  1. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,626
  2. 2019BERTScore: Evaluating Text Generation with BERTcited by 5,512
  3. 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,824
  4. 2023G-Eval: NLG Evaluation using GPT-4 with Better Human Alignmentcited by 2,276
  5. 2024A Survey on LLM-as-a-Judgecited by 1,423
  6. 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,391
  7. 2020CodeBLEU: a Method for Automatic Evaluation of Code Synthesiscited by 479
  8. 2022CodeT: Code Generation with Generated Testscited by 384
  9. 2024MLLM-as-a-Judge: Assessing Multimodal LLM-as-a-Judge with Vision-Language Benchmarkcited by 372
  10. 2023JudgeLM: Fine-tuned Large Language Models are Scalable Judgescited by 367
  11. 2024JudgeBench: A Benchmark for Evaluating LLM-based Judgescited by 318
  12. 2024LLMs instead of Human Judges? A Large Scale Empirical Study across 20 NLP Evaluation Taskscited by 243
16 more
  1. 2021CodeNet: A Large-Scale AI for Code Dataset for Learning a Diversity of Coding Taskscited by 200
  2. 2019SPoC: Search-based Pseudocode to Codecited by 176
  3. 2023An Empirical Study of the Non-determinism of ChatGPT in Code Generationcited by 137
  4. 2023CodeBERTScore: Evaluating Code Generation with Pretrained Models of Codecited by 102
  5. 2025Can LLMs Replace Human Evaluators? An Empirical Study of LLM-as-a-Judge in Software Engineeringcited by 67
  6. 2022Out of the BLEU: how should we assess quality of the Code Generation models?cited by 65
  7. 2023ICE-Score: Instructing Large Language Models to Evaluate Codecited by 52
  8. 2019Does BLEU Score Work for Code Migration?cited by 49
  9. 2024CodeJudge-Eval: Can Large Language Models be Good Judges in Code Understanding?cited by 30
  10. 2024Are LLM-Judges Robust to Expressions of Uncertainty? Investigating the effect of Epistemic Markers on LLM-based Evaluationcited by 29
  11. 2024Large Language Models as Test Case Generators: Performance Evaluation and Enhancementcited by 28
  12. 2025Benchmarking Adversarial Robustness to Bias Elicitation in Large Language Models: Scalable Automated Assessment with LLM-as-a-Judgecited by 23
  13. 2024Benchmarking LLMs' Judgments with No Gold Standardcited by 19
  14. 2025LLMs can be easily Confused by Instructional Distractionscited by 13
  15. 2024CodeSift: An LLM-Based Reference-Less Framework for Automatic Code Validationcited by 4
  16. 2022A Systematic Literature Review on the Impact of Formatting Elements on Code Legibilitycited by 2

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 5; 2026: 13.

18 papers.

Sort:

By area:

  1. 2025CodeJudgeBench: Benchmarking LLM-as-a-Judge for Coding Taskscited by 33
  2. 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 15
  3. 2026Belief in Authority: Impact of Authority in Multi-Agent Evaluation Frameworkcited by 6
  4. 2026ISO-Bench: Can Coding Agents Optimize Real-World Inference Workloads?cited by 6
  5. 2025Uncovering Systematic Failures of LLMs in Verifying Code Against Natural Language Specificationscited by 5
  6. 2025On LLMs' Internal Representation of Code Correctnesscited by 5
  7. 2026Aletheia: What Makes RLVR For Code Verifiers Tick?cited by 5
  8. 2026Bias in the Loop: Auditing LLM-as-a-Judge for Software Engineeringcited by 4
  9. 2026LLM Judges Can Be Too Generous When There Is No Reference Answercited by 4
  10. 2026Measuring and Exploiting Contextual Bias in LLM-Assisted Security Code Reviewcited by 3
  11. 2026Scaffold, Not Vocabulary? A Controlled, Two-Tier, Pre-Registered Study of a Popperian Code-Generation Skillcited by 3
  12. 2026Probing Multimodal Large Language Models on Cognitive Biases in Chinese Short-Video Misinformationcited by 2
6 more
  1. 2025OptiHive: Ensemble Selection for LLM-Based Optimization via Statistical Modelingcited by 1
  2. 2026Judging What We Cannot Solve: A Consequence-Based Approach for Oracle-Free Evaluation of Research-Level Mathcited by 1
  3. 2026Themis: Training Robust Multilingual Code Reward Models for Flexible Multi-Criteria Scoringcited by 1
  4. 2026SkillEval: Decomposing Agent Skill Quality into Interpretable Signalscited by 1
  5. 2026CriterAlign: Criterion-Centric Rationale Alignment for Code Preference Judgingcited by 0
  6. 2026Style, Not Self: Surface Cues Explain Zero-Shot Code Attribution by Large Language Modelscited by 0