mlsanityData to 14 Oct 2026

On the Effectiveness of LLM-as-a-judge for Code Generation and Summarization

arXiv 2507.16587 ↗First posted 22 Jul 2025cs.SEcited by 18

Not on the map. Why?

Abstract (arXiv)

Large Language Models have been recently exploited as judges for complex natural language processing tasks, such as Q&A. The basic idea is to delegate to an LLM the assessment of the "quality" of the output provided by an automated technique for tasks for which: (i) quantitative metrics would only tell part of the story, and; (ii) a large-scale human-based evaluation would be too expensive. LLMs-as-a-judge, if proven effective for a specific task, can also unlock new possibilities for automation, with several LLMs proposing a solution for a given instance of the task and others judging and deciding what is the best output to show the user. We study the effectiveness of LLMs-as-a-judge for two code-related tasks, namely code generation and code summarization. The rationale for choosing these tasks is two-fold. First, quantitative metrics are usually not enough for the assessment of code summarizers/generators. For example, it is well documented that metrics such as BLEU are quite weak proxies for the quality of the generated summaries. Second, even state-of-the-art techniques still struggle with handling complex instances of these tasks, making them good candidates for benefiting from more advanced solutions envisioning collaboration among LLMs. For code generation, we check whether eight LLMs are able to judge the correctness of 1,405 Java methods and 1,281 Python functions generated by the same LLMs or implemented by humans. For code summarization, we compare the judgment of five LLMs to those provided by nine humans for ~1.2k summaries, related to both Java and Python functions. Our findings show that GPT-4-turbo is the best LLM in terms of judging capabilities for both tasks, with "smaller" LLMs featuring tens of billions parameters not being able to cope with judging tasks. However, even the best-performing LLM frequently misjudges the correctness of the code and summary quality.

Key facts. Cited by 18 papers in the map (data through 14 Oct 2026). First posted on arXiv 22 Jul 2025.

Builds on

No reference list yet.

Built on by

Cited by year (2026 to 14 Oct)

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

18 papers.

Sort:

By area:

  1. 2026Agentic Rubrics as Contextual Verifiers for SWE Agentscited by 25
  2. 2026Diagnosing the Reliability of LLM-as-a-Judge via Item Response Theorycited by 16
  3. 2026Failure as a Process: An Anatomy of CLI Coding Agent Trajectoriescited by 13
  4. 2025CentaurEval: Benchmarking Human-in-the-Loop Value in Agentic Codingcited by 12
  5. 2025REFINE: Enhancing Program Repair Agents through Context-Aware Patch Refinementcited by 6
  6. 2026ContextCov: Deriving and Enforcing Executable Constraints from Agent Instruction Filescited by 6
  7. 2025Abstain and Validate: A Dual-LLM Policy for Reducing Noise in Agentic Program Repaircited by 5
  8. 2026Bias in the Loop: Auditing LLM-as-a-Judge for Software Engineeringcited by 4
  9. 2026Agent4cs: A Multi-agent System for Code Summarization in Large Hierarchical Codebasescited by 2
  10. 2025How Do Agentic AI Systems Address Performance Optimizations? A BERTopic-Based Analysis of Pull Requestscited by 1
  11. 2026Comparing Developer and LLM Biases in Code Evaluationcited by 1
  12. 2025MANTRA: a Framework for Multi-stage Adaptive Noise TReAtment During Trainingcited by 0
6 more
  1. 2026Prompt-Driven Code Summarization: A Systematic Literature Reviewcited by 0
  2. 2026Quantize with Confidence? An Empirical Study of Quantization for Code Generationcited by 0
  3. 2026Evaluating Tiny Recursive Models Across Training for Code Generationcited by 0
  4. 2026Detokenization Leaks: Reconstructing Local LLM Outputs From Cache Tracescited by 0
  5. 2026Retrieve, Reproduce, Reveal: Dissecting Retrieval-Augmented Software Vulnerability Detectioncited by 0
  6. 2026DTScribe: Generating Models for Digital Twin Reporting using Local Large Language Modelscited by 0