mlsanityData to 7 Oct 2026

Analyzing the Performance of Large Language Models on Code Summarization

arXiv 2404.08018 ↗First posted 10 Apr 2024cs.SE cs.AI cs.CLcited by 19

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2020Language Models are Few-Shot Learnerscited by 32,199
  4. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  5. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  6. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  7. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  8. 2019BERTScore: Evaluating Text Generation with BERTcited by 5,462
  9. 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
  10. 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
  11. 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,898
  12. 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
20 more
  1. 2018SentencePiece: A simple and language independent subword tokenizer and detokenizer for Neural Text Processingcited by 1,973
  2. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
  3. 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
  4. 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
  5. 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 638
  6. 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 600
  7. 2021Unified Pre-training for Program Understanding and Generationcited by 361
  8. 2018code2vec: Learning Distributed Representations of Codecited by 249
  9. 2019A Neural Model for Generating Natural Language Summaries of Program Subroutinescited by 76
  10. 2021SynCoBERT: Syntax-Guided Multi-Modal Contrastive Pre-Training for Code Representationcited by 63
  11. 2021CoTexT: Multi-task Learning with Code-Text Transformercited by 61
  12. 2017A parallel corpus of Python functions and documentation strings for automated code documentation and code generationcited by 56
  13. 2021On the Evaluation of Neural Code Summarizationcited by 47
  14. 2022MCoNaLa: A Benchmark for Code Generation from Multiple Natural Languagescited by 41
  15. 2019Multi-Modal Attention Network Learning for Semantic Source Code Retrievalcited by 40
  16. 2020Code Summarization with Structure-induced Transformercited by 29
  17. 2020A Multi-Perspective Architecture for Semantic Code Searchcited by 20
  18. 2020Deep Graph Matching and Searching for Semantic Code Retrievalcited by 20
  19. 2021GraphSearchNet: Enhancing GNNs via Capturing Global Dependencies for Semantic Code Searchcited by 15
  20. 2022GypSum: Learning Hybrid Representations for Code Summarizationcited by 5

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 5; 2025: 8; 2026: 6.

19 papers.

Sort:

By area:

  1. 2024Agents in Software Engineering: Survey, Landscape, and Visioncited by 60
  2. 2024A Systematic Survey of Text Summarization: From Statistical Methods to Large Language Modelscited by 52
  3. 2024On the Impacts of Contexts on Repository-Level Code Generationcited by 21
  4. 2025BLEUBERI: BLEU is a surprisingly effective reward for instruction followingcited by 17
  5. 2024Beyond Functional Correctness: Investigating Coding Style Inconsistencies in Large Language Modelscited by 15
  6. 2025Large Language Model (LLM) for Software Security: Code Analysis, Malware Analysis, Reverse Engineeringcited by 15
  7. 2025Towards an Understanding of Context Utilization in Code Intelligencecited by 10
  8. 2026TraceCoder: A Trace-Driven Multi-Agent Framework for Automated Debugging of LLM-Generated Codecited by 6
  9. 2026ShortCoder: Knowledge-Augmented Syntax Optimization for Token-Efficient Code Generationcited by 3
  10. 2024CNNSum: Exploring Long-Context Summarization with Large Language Models in Chinese Novelscited by 2
  11. 2025Can Large Language Models Understand Intermediate Representations in Compilers?cited by 1
  12. 2025CRABS: A syntactic-semantic pincer strategy for bounding LLM interpretation of Python notebookscited by 1
7 more
  1. 2026Multi-task Code LLMs: Data Mix or Model Merge?cited by 1
  2. 2026Automated Summarization of Software Documents: An LLM-based Multi-Agent Approachcited by 1
  3. 2026Agent4cs: A Multi-agent System for Code Summarization in Large Hierarchical Codebasescited by 1
  4. 2025Advancing AI Research Assistants with Expert-Involved Learningcited by 0
  5. 2025A Structured Literature Review on Traditional Approaches in Current Natural Language Processingcited by 0
  6. 2025MEC3O: Multi-Expert Consensus for Code Time Complexity Predictioncited by 0
  7. 2026Transformer-Assisted LLM-Based Source Code Summarisation: to Enable More Secure Software Developmentcited by 0