Can Large Language Models Serve as Evaluators for Code Summarization?
Not on the map. Why?
Abstract (arXiv)
Code summarization facilitates program comprehension and software maintenance by converting code snippets into natural-language descriptions. Over the years, numerous methods have been developed for this task, but a key challenge remains: effectively evaluating the quality of generated summaries. While human evaluation is effective for assessing code summary quality, it is labor-intensive and difficult to scale. Commonly used automatic metrics, such as BLEU, ROUGE-L, METEOR, and BERTScore, often fail to align closely with human judgments. In this paper, we explore the potential of Large Language Models (LLMs) for evaluating code summarization. We propose CODERPE (Role-Player for Code Summarization Evaluation), a novel method that leverages role-player prompting to assess the quality of generated summaries. Specifically, we prompt an LLM agent to play diverse roles, such as code reviewer, code author, code editor, and system analyst. Each role evaluates the quality of code summaries across key dimensions, including coherence, consistency, fluency, and relevance. We further explore the robustness of LLMs as evaluators by employing various prompting strategies, including chain-of-thought reasoning, in-context learning, and tailored rating form designs. The results demonstrate that LLMs serve as effective evaluators for code summarization methods. Notably, our LLM-based evaluator, CODERPE , achieves an 81.59% Spearman correlation with human evaluations, outperforming the existing BERTScore metric by 17.27%.
Key facts. Cited by 12 papers in the map (data through 14 Oct 2026). First posted on arXiv 2 Dec 2024.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2025: 7; 2026: 5.
12 papers.
- 2025Evaluating Text Creativity across Diverse Domains: A Dataset and Large Language Model Evaluatorcited by 10
- 2025Bridging Code Graphs and Large Language Models for Better Code Understandingcited by 2
- 2026Agent4cs: A Multi-agent System for Code Summarization in Large Hierarchical Codebasescited by 2
- 2025Can Large Language Models Understand Intermediate Representations in Compilers?cited by 1
- 2025Knowledge-Graph-Driven Data Synthesis for Low-Resource Software Development: A HarmonyOS Case Studycited by 1
- 2025Issue Retrieval and Verification Enhanced Supplementary Code Comment Generationcited by 0
- 2025evalSmarT: An LLM-Based Framework for Evaluating Smart Contract Generated Commentscited by 0
- 2025Assertion-Aware Test Code Summarization with Large Language Modelscited by 0
- 2026Precision in Practice: Knowledge Guided Code Summarizing Grounded in Industrial Expectationscited by 0
- 2026More than a Judge: An Empirical Study of Agent-Human Interaction in Crowdsourced Testing Assessmentcited by 0
- 2026CoSTAR: Data Synthesis-Driven Constraint-Aware COBOL Section Summarization for Legacy System Modernizationcited by 0
- 2026Retrieve, Reproduce, Reveal: Dissecting Retrieval-Augmented Software Vulnerability Detectioncited by 0
- 2026Retrieve, Reproduce, Reveal: Dissecting Retrieval-Augmented Software Vulnerability Detection29 Sep 2026
- 2026CoSTAR: Data Synthesis-Driven Constraint-Aware COBOL Section Summarization for Legacy System Modernization10 Sep 2026
- 2026Agent4cs: A Multi-agent System for Code Summarization in Large Hierarchical Codebases1 Jul 2026
- 2026More than a Judge: An Empirical Study of Agent-Human Interaction in Crowdsourced Testing Assessment4 Jun 2026
- 2026Precision in Practice: Knowledge Guided Code Summarizing Grounded in Industrial Expectations3 Feb 2026
- 2025Bridging Code Graphs and Large Language Models for Better Code Understanding8 Dec 2025
- 2025Knowledge-Graph-Driven Data Synthesis for Low-Resource Software Development: A HarmonyOS Case Study29 Nov 2025
- 2025Assertion-Aware Test Code Summarization with Large Language Models9 Nov 2025
- 2025evalSmarT: An LLM-Based Framework for Evaluating Smart Contract Generated Comments28 Jul 2025
- 2025Issue Retrieval and Verification Enhanced Supplementary Code Comment Generation17 Jun 2025
- 2025Evaluating Text Creativity across Diverse Domains: A Dataset and Large Language Model Evaluator25 May 2025
- 2025Can Large Language Models Understand Intermediate Representations in Compilers?7 Feb 2025
Similar, not cited
Close in wording, no citation either way
- 2024Source Code Summarization in the Era of Large Language Models
- 2026Prompt-Driven Code Summarization: A Systematic Literature Review
- 2025CodeVisionary: An Agent-based Framework for Evaluating Large Language Models in Code Generation
- 2025Code Summarization Beyond Function Level
- 2025CodeReviewQA: The Code Review Comprehension Assessment for Large Language Models
- 2025Human-Aligned Code Readability Assessment with Large Language Models ↗
- 2023Large Language Models are Not Yet Human-Level Evaluators for Abstractive Summarization
- 2025From Code to Courtroom: LLMs as the New Software Judges