Bias in the Loop: Auditing LLM-as-a-Judge for Software Engineering
Not on the map. Why?
Abstract (arXiv)
Large Language Models are increasingly used as judges to evaluate code artifacts when exhaustive human review or executable test coverage is unavailable. LLM-judge is increasingly relevant in agentic software engineering workflows, where it can help rank candidate solutions and guide patch selection. While attractive for scale, current practice lacks a principled account of reliability and bias: repeated evaluations of the same case can disagree; small prompt edits can swing outcomes; and seemingly semantics-preserving, human-equivalent perturbations may elicit divergent verdicts. This paper studies LLM-as-a-Judge for code through a measurement-first lens. We analyze two pointwise judging regimes across code generation, code repair task, and test generation, and we systematically probe prompt-induced biases. Our study considers difficulty levels for repeated runs and controlled prompt interventions that isolate one presentation cue at a time, and it evaluates judges using consistency and sensitivity to bias. We find that judge decisions are highly sensitive to prompt biases even when the underlying code snippet is unchanged. Across all three tasks, several biases systematically shift preferences toward the option favored by the prompt, improving accuracy when that option aligns with the gold answer but substantially reducing it otherwise. In some settings, these effects are large enough to change task-level conclusions and alter relative model rankings. These findings show that reported judge performance may reflect prompt artifacts rather than stable assessment ability, posing a direct threat to the validity and reproducibility of code evaluation. We therefore argue that LLM-as-a-Judge studies should report bias sensitivity alongside accuracy and incorporate explicit controls to support more trustworthy model comparison in software engineering.
Key facts. Cited by 4 papers in the map (data through 14 Oct 2026). Builds on 25 of its 35 references that are in the map. First posted on arXiv 18 Apr 2026.
Builds on
25 of 35 references.
References · 25
- 2023GPT-4 Technical Reportcited by 18,396
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,626
- 2024A Survey on Large Language Models for Code Generationcited by 658
- 2024From Crowdsourced Data to High-Quality Benchmarks: Arena-Hard and BenchBuilder Pipelinecited by 500
- 2024LLMs-as-Judges: A Comprehensive Survey on LLM-based Evaluation Methodscited by 465
- 2024Training Software Engineering Agents and Verifiers with SWE-Gymcited by 336
- 2025WebThinker: Empowering Large Reasoning Models with Deep Research Capabilitycited by 335
- 2024JudgeBench: A Benchmark for Evaluating LLM-based Judgescited by 318
- 2024Judging the Judges: Evaluating Alignment and Vulnerabilities in LLMs-as-Judgescited by 205
- 2024Large Language Model-Based Agents for Software Engineering: A Surveycited by 178
- 2024SWE-Search: Enhancing Software Agents with Monte Carlo Tree Search and Iterative Refinementcited by 132
- 2025Can LLMs Replace Human Evaluators? An Empirical Study of LLM-as-a-Judge in Software Engineeringcited by 67
13 more
- 2023A Survey on Large Language Models for Software Engineeringcited by 59
- 2023ICE-Score: Instructing Large Language Models to Evaluate Codecited by 52
- 2025Agentic Software Engineering: Foundational Pillars and a Research Roadmapcited by 41
- 2025CodeJudgeBench: Benchmarking LLM-as-a-Judge for Coding Taskscited by 33
- 2024CodeJudge-Eval: Can Large Language Models be Good Judges in Code Understanding?cited by 30
- 2024Bias Unveiled: Investigating Social Bias in LLM-Generated Codecited by 25
- 2026Agentic Rubrics as Contextual Verifiers for SWE Agentscited by 25
- 2025PatchPilot: A Cost-Efficient Software Engineering Agent with Early Attempts on Formal Verificationcited by 22
- 2025Don't Judge Code by Its Cover: Exploring Biases in LLM Judges for Code Evaluationcited by 18
- 2025On the Effectiveness of LLM-as-a-judge for Code Generation and Summarizationcited by 18
- 2025From Code to Courtroom: LLMs as the New Software Judgescited by 16
- 2025Social Bias Benchmark for Generation: A Comparison of Generation and QA-Based Evaluationscited by 16
- 2025Efficiency vs. Alignment: Investigating Safety and Fairness Risks in Parameter-Efficient Fine-Tuning of LLMscited by 4
Built on by
Citing papers per year: 2026: 4.
4 papers.
- 2026Scaffold, Not Vocabulary? A Controlled, Two-Tier, Pre-Registered Study of a Popperian Code-Generation Skillcited by 3
- 2026PaperJury: Due-Process Review for Bounded LaTeX Revisioncited by 1
- 2026Groundability, Not Scale Alone: When Weak Reviewers Can Audit Strong Coding Agentscited by 1
- 2026Where Did the Repair First Go Wrong? Localizing the Origins of Silent Failures in Agentic Vulnerability Repaircited by 0
- 2026Where Did the Repair First Go Wrong? Localizing the Origins of Silent Failures in Agentic Vulnerability Repair5 Oct 2026
- 2026Groundability, Not Scale Alone: When Weak Reviewers Can Audit Strong Coding Agents1 Oct 2026
- 2026PaperJury: Due-Process Review for Bounded LaTeX Revision15 Jun 2026
- 2026Scaffold, Not Vocabulary? A Controlled, Two-Tier, Pre-Registered Study of a Popperian Code-Generation Skill4 Jun 2026
Similar, not cited
Close in wording, no citation either way
- 2025LLM-as-a-Judge for Software Engineering: Literature Review, Vision, and the Road Ahead ↗
- 2026On the risk of coding before testing: An empirical study on LLM-based test generation workflow
- 2025Artificial or Just Artful? Do LLMs Bend the Rules in Programming? ↗
- 2026Autorubric: A Unifying Framework for Rubric-Based LLM Evaluation on Non-Verifiable Tasks
- 2025Evaluating Scoring Bias in LLM-as-a-Judge
- 2026LLM-as-a-Judge Is Not an Oracle: Why Self-Improving Agents Need Deterministic Guardrails
- 2025An Empirical Study of LLM-as-a-Judge: How Design Choices Impact Evaluation Reliability
- 2026Rethinking the Value of Agent-Generated Tests for LLM-Based Software Engineering Agents