Semantic Similarity Metrics for Evaluating Source Code Summarization
Not on the map. Why?
Abstract (arXiv)
Source code summarization involves creating brief descriptions of source code in natural language. These descriptions are a key component of software documentation such as JavaDocs. Automatic code summarization is a prized target of software engineering research, due to the high value summaries have to programmers and the simultaneously high cost of writing and maintaining documentation by hand. Current work is almost all based on machine models trained via big data input. Large datasets of examples of code and summaries of that code are used to train an e.g. encoder-decoder neural model. Then the output predictions of the model are evaluated against a set of reference summaries. The input is code not seen by the model, and the prediction is compared to a reference. The means by which a prediction is compared to a reference is essentially word overlap, calculated via a metric such as BLEU or ROUGE. The problem with using word overlap is that not all words in a sentence have the same importance, and many words have synonyms. The result is that calculated similarity may not match the perceived similarity by human readers. In this paper, we conduct an experiment to measure the degree to which various word overlap metrics correlate to human-rated similarity of predicted and reference summaries. We evaluate alternatives based on current work in semantic similarity metrics and propose recommendations for evaluation of source code summarization.
Key facts. Cited by 14 papers in the map (data through 7 Oct 2026). First posted on arXiv 4 Apr 2022.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2023: 6; 2024: 4; 2025: 4.
14 papers.
Sort:
By area:
- 2023Automatic Semantic Augmentation of Language Model Prompts (for Code Summarization)cited by 72
- 2023Distilled GPT for Source Code Summarizationcited by 30
- 2024Who Wrote This? The Key to Zero-Shot LLM-Generated Text Detection Is GECScorecited by 27
- 2024Unveiling Scoring Processes: Dissecting the Differences between LLMs and Human Graders in Automatic Scoringcited by 13
- 2024Calibration of Large Language Models on Code Summarizationcited by 12
- 2025Enhancing LLM Performance Through Debate: An Empirical Study on Multi-Agent Debate for Coding Taskscited by 11
- 2023A Prompt Learning Framework for Source Code Summarizationcited by 9
- 2023Towards Modeling Human Attention from Eye Movements for Neural Source Code Summarizationcited by 8
- 2023Semantic Similarity Loss for Neural Source Code Summarizationcited by 5
- 2024MALSIGHT: Exploring Malicious Source Code and Benign Pseudocode for Iterative Binary Malware Summarizationcited by 5
- 2025Issue-Oriented Agent-Based Framework for Automated Review Comment Generationcited by 4
- 2023Revisiting File Context for Source Code Summarizationcited by 3
- 2025Assessing Large Language Models in Generating RTL Design Specifications17 Nov 2025
- 2025Issue-Oriented Agent-Based Framework for Automated Review Comment Generation1 Nov 2025
- 2025Issue Retrieval and Verification Enhanced Supplementary Code Comment Generation17 Jun 2025
- 2025Enhancing LLM Performance Through Debate: An Empirical Study on Multi-Agent Debate for Coding Tasks15 Mar 2025
- 2024Unveiling Scoring Processes: Dissecting the Differences between LLMs and Human Graders in Automatic Scoring4 Jul 2024
- 2024MALSIGHT: Exploring Malicious Source Code and Benign Pseudocode for Iterative Binary Malware Summarization26 Jun 2024
- 2024Who Wrote This? The Key to Zero-Shot LLM-Generated Text Detection Is GECScore7 May 2024
- 2024Calibration of Large Language Models on Code Summarization30 Apr 2024
- 2023A Prompt Learning Framework for Source Code Summarization26 Dec 2023
- 2023Revisiting File Context for Source Code Summarization5 Sep 2023
- 2023Distilled GPT for Source Code Summarization28 Aug 2023
- 2023Semantic Similarity Loss for Neural Source Code Summarization14 Aug 2023
- 2023Automatic Semantic Augmentation of Language Model Prompts (for Code Summarization)cited by 72
- 2023Distilled GPT for Source Code Summarizationcited by 30
- 2024Who Wrote This? The Key to Zero-Shot LLM-Generated Text Detection Is GECScorecited by 27
- 2024Unveiling Scoring Processes: Dissecting the Differences between LLMs and Human Graders in Automatic Scoringcited by 13
- 2024Calibration of Large Language Models on Code Summarizationcited by 12
- 2023A Prompt Learning Framework for Source Code Summarizationcited by 9
- 2023Towards Modeling Human Attention from Eye Movements for Neural Source Code Summarizationcited by 8
- 2023Semantic Similarity Loss for Neural Source Code Summarizationcited by 5
- 2024MALSIGHT: Exploring Malicious Source Code and Benign Pseudocode for Iterative Binary Malware Summarizationcited by 5
- 2023Revisiting File Context for Source Code Summarizationcited by 3
- 2025Assessing Large Language Models in Generating RTL Design Specificationscited by 2
- 2025Assessing Large Language Models in Generating RTL Design Specifications17 Nov 2025
- 2024Unveiling Scoring Processes: Dissecting the Differences between LLMs and Human Graders in Automatic Scoring4 Jul 2024
- 2024MALSIGHT: Exploring Malicious Source Code and Benign Pseudocode for Iterative Binary Malware Summarization26 Jun 2024
- 2024Who Wrote This? The Key to Zero-Shot LLM-Generated Text Detection Is GECScore7 May 2024
- 2024Calibration of Large Language Models on Code Summarization30 Apr 2024
- 2023A Prompt Learning Framework for Source Code Summarization26 Dec 2023
- 2023Revisiting File Context for Source Code Summarization5 Sep 2023
- 2023Distilled GPT for Source Code Summarization28 Aug 2023
- 2023Semantic Similarity Loss for Neural Source Code Summarization14 Aug 2023
- 2023Towards Modeling Human Attention from Eye Movements for Neural Source Code Summarization16 May 2023
- 2023Automatic Semantic Augmentation of Language Model Prompts (for Code Summarization)13 Apr 2023