Analyzing the Performance of Large Language Models on Code Summarization
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) such as Llama 2 perform very well on tasks that involve both natural language and source code, particularly code summarization and code generation. We show that for the task of code summarization, the performance of these models on individual examples often depends on the amount of (subword) token overlap between the code and the corresponding reference natural language descriptions in the dataset. This token overlap arises because the reference descriptions in standard datasets (corresponding to docstrings in large code bases) are often highly similar to the names of the functions they describe. We also show that this token overlap occurs largely in the function names of the code and compare the relative performance of these models after removing function names versus removing code structure. We also show that using multiple evaluation metrics like BLEU and BERTScore gives us very little additional insight since these metrics are highly correlated with each other.
Key facts. Cited by 19 papers in the map (data through 7 Oct 2026). Builds on 32 of its 50 references that are in the map. First posted on arXiv 10 Apr 2024.
Builds on
32 of 50 references.
References · 32
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2019BERTScore: Evaluating Text Generation with BERTcited by 5,462
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
- 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,898
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
20 more
- 2018SentencePiece: A simple and language independent subword tokenizer and detokenizer for Neural Text Processingcited by 1,973
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
- 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 638
- 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 600
- 2021Unified Pre-training for Program Understanding and Generationcited by 361
- 2018code2vec: Learning Distributed Representations of Codecited by 249
- 2019A Neural Model for Generating Natural Language Summaries of Program Subroutinescited by 76
- 2021SynCoBERT: Syntax-Guided Multi-Modal Contrastive Pre-Training for Code Representationcited by 63
- 2021CoTexT: Multi-task Learning with Code-Text Transformercited by 61
- 2017A parallel corpus of Python functions and documentation strings for automated code documentation and code generationcited by 56
- 2021On the Evaluation of Neural Code Summarizationcited by 47
- 2022MCoNaLa: A Benchmark for Code Generation from Multiple Natural Languagescited by 41
- 2019Multi-Modal Attention Network Learning for Semantic Source Code Retrievalcited by 40
- 2020Code Summarization with Structure-induced Transformercited by 29
- 2020A Multi-Perspective Architecture for Semantic Code Searchcited by 20
- 2020Deep Graph Matching and Searching for Semantic Code Retrievalcited by 20
- 2021GraphSearchNet: Enhancing GNNs via Capturing Global Dependencies for Semantic Code Searchcited by 15
- 2022GypSum: Learning Hybrid Representations for Code Summarizationcited by 5
Built on by
Citing papers per year: 2024: 5; 2025: 8; 2026: 6.
19 papers.
Sort:
By area:
- 2024Agents in Software Engineering: Survey, Landscape, and Visioncited by 60
- 2024A Systematic Survey of Text Summarization: From Statistical Methods to Large Language Modelscited by 52
- 2024On the Impacts of Contexts on Repository-Level Code Generationcited by 21
- 2025BLEUBERI: BLEU is a surprisingly effective reward for instruction followingcited by 17
- 2024Beyond Functional Correctness: Investigating Coding Style Inconsistencies in Large Language Modelscited by 15
- 2025Large Language Model (LLM) for Software Security: Code Analysis, Malware Analysis, Reverse Engineeringcited by 15
- 2025Towards an Understanding of Context Utilization in Code Intelligencecited by 10
- 2026TraceCoder: A Trace-Driven Multi-Agent Framework for Automated Debugging of LLM-Generated Codecited by 6
- 2026ShortCoder: Knowledge-Augmented Syntax Optimization for Token-Efficient Code Generationcited by 3
- 2024CNNSum: Exploring Long-Context Summarization with Large Language Models in Chinese Novelscited by 2
- 2025Can Large Language Models Understand Intermediate Representations in Compilers?cited by 1
- 2025CRABS: A syntactic-semantic pincer strategy for bounding LLM interpretation of Python notebookscited by 1
7 more
- 2026Multi-task Code LLMs: Data Mix or Model Merge?cited by 1
- 2026Automated Summarization of Software Documents: An LLM-based Multi-Agent Approachcited by 1
- 2026Agent4cs: A Multi-agent System for Code Summarization in Large Hierarchical Codebasescited by 1
- 2025Advancing AI Research Assistants with Expert-Involved Learningcited by 0
- 2025A Structured Literature Review on Traditional Approaches in Current Natural Language Processingcited by 0
- 2025MEC3O: Multi-Expert Consensus for Code Time Complexity Predictioncited by 0
- 2026Transformer-Assisted LLM-Based Source Code Summarisation: to Enable More Secure Software Developmentcited by 0
- 2026Transformer-Assisted LLM-Based Source Code Summarisation: to Enable More Secure Software Development23 Jul 2026
- 2026Agent4cs: A Multi-agent System for Code Summarization in Large Hierarchical Codebases1 Jul 2026
- 2026Automated Summarization of Software Documents: An LLM-based Multi-Agent Approach23 Jun 2026
- 2026TraceCoder: A Trace-Driven Multi-Agent Framework for Automated Debugging of LLM-Generated Code6 Feb 2026
- 2026Multi-task Code LLMs: Data Mix or Model Merge?28 Jan 2026
- 2026ShortCoder: Knowledge-Augmented Syntax Optimization for Token-Efficient Code Generation14 Jan 2026
- 2025MEC3O: Multi-Expert Consensus for Code Time Complexity Prediction10 Oct 2025
- 2025CRABS: A syntactic-semantic pincer strategy for bounding LLM interpretation of Python notebooks15 Jul 2025
- 2025A Structured Literature Review on Traditional Approaches in Current Natural Language Processing19 May 2025
- 2025BLEUBERI: BLEU is a surprisingly effective reward for instruction following16 May 2025
- 2025Advancing AI Research Assistants with Expert-Involved Learning3 May 2025
- 2025Towards an Understanding of Context Utilization in Code Intelligence11 Apr 2025
7 more
- 2025Large Language Model (LLM) for Software Security: Code Analysis, Malware Analysis, Reverse Engineering7 Apr 2025
- 2025Can Large Language Models Understand Intermediate Representations in Compilers?7 Feb 2025
- 2024CNNSum: Exploring Long-Context Summarization with Large Language Models in Chinese Novels3 Dec 2024
- 2024Agents in Software Engineering: Survey, Landscape, and Vision13 Sep 2024
- 2024Beyond Functional Correctness: Investigating Coding Style Inconsistencies in Large Language Models29 Jun 2024
- 2024On the Impacts of Contexts on Repository-Level Code Generation17 Jun 2024
- 2024A Systematic Survey of Text Summarization: From Statistical Methods to Large Language Models17 Jun 2024
- 2024Agents in Software Engineering: Survey, Landscape, and Visioncited by 60
- 2026TraceCoder: A Trace-Driven Multi-Agent Framework for Automated Debugging of LLM-Generated Codecited by 6
- 2026Multi-task Code LLMs: Data Mix or Model Merge?cited by 1
- 2026Automated Summarization of Software Documents: An LLM-based Multi-Agent Approachcited by 1
- 2026Agent4cs: A Multi-agent System for Code Summarization in Large Hierarchical Codebasescited by 1
- 2026Agent4cs: A Multi-agent System for Code Summarization in Large Hierarchical Codebases1 Jul 2026
- 2026Automated Summarization of Software Documents: An LLM-based Multi-Agent Approach23 Jun 2026
- 2026TraceCoder: A Trace-Driven Multi-Agent Framework for Automated Debugging of LLM-Generated Code6 Feb 2026
- 2026Multi-task Code LLMs: Data Mix or Model Merge?28 Jan 2026
- 2024Agents in Software Engineering: Survey, Landscape, and Vision13 Sep 2024
- 2024A Systematic Survey of Text Summarization: From Statistical Methods to Large Language Modelscited by 52
- 2024On the Impacts of Contexts on Repository-Level Code Generationcited by 21
- 2024Beyond Functional Correctness: Investigating Coding Style Inconsistencies in Large Language Modelscited by 15
- 2025Large Language Model (LLM) for Software Security: Code Analysis, Malware Analysis, Reverse Engineeringcited by 15
- 2025Towards an Understanding of Context Utilization in Code Intelligencecited by 10
- 2024CNNSum: Exploring Long-Context Summarization with Large Language Models in Chinese Novelscited by 2
- 2025Can Large Language Models Understand Intermediate Representations in Compilers?cited by 1
- 2025CRABS: A syntactic-semantic pincer strategy for bounding LLM interpretation of Python notebookscited by 1
- 2025A Structured Literature Review on Traditional Approaches in Current Natural Language Processingcited by 0
- 2025MEC3O: Multi-Expert Consensus for Code Time Complexity Predictioncited by 0
- 2026Transformer-Assisted LLM-Based Source Code Summarisation: to Enable More Secure Software Developmentcited by 0
- 2026Transformer-Assisted LLM-Based Source Code Summarisation: to Enable More Secure Software Development23 Jul 2026
- 2025MEC3O: Multi-Expert Consensus for Code Time Complexity Prediction10 Oct 2025
- 2025CRABS: A syntactic-semantic pincer strategy for bounding LLM interpretation of Python notebooks15 Jul 2025
- 2025A Structured Literature Review on Traditional Approaches in Current Natural Language Processing19 May 2025
- 2025Towards an Understanding of Context Utilization in Code Intelligence11 Apr 2025
- 2025Large Language Model (LLM) for Software Security: Code Analysis, Malware Analysis, Reverse Engineering7 Apr 2025
- 2025Can Large Language Models Understand Intermediate Representations in Compilers?7 Feb 2025
- 2024CNNSum: Exploring Long-Context Summarization with Large Language Models in Chinese Novels3 Dec 2024
- 2024Beyond Functional Correctness: Investigating Coding Style Inconsistencies in Large Language Models29 Jun 2024
- 2024On the Impacts of Contexts on Repository-Level Code Generation17 Jun 2024
- 2024A Systematic Survey of Text Summarization: From Statistical Methods to Large Language Models17 Jun 2024