mlsanityData to 7 Oct 2026

ESALE: Enhancing Code-Summary Alignment Learning for Source Code Summarization

arXiv 2407.01646 ↗First posted 1 Jul 2024cs.SE cs.AIcited by 6

Not on the map. Why?

Abstract (arXiv)

(Source) code summarization aims to automatically generate succinct natural language summaries for given code snippets. Such summaries play a significant role in promoting developers to understand and maintain code. Inspired by neural machine translation, deep learning-based code summarization techniques widely adopt an encoder-decoder framework, where the encoder transforms given code snippets into context vectors, and the decoder decodes context vectors into summaries. Recently, large-scale pre-trained models for source code are equipped with encoders capable of producing general context vectors and have achieved substantial improvements on code summarization. However, although they are usually trained mainly on code-focused tasks and can capture general code features, they still fall short in capturing specific features that need to be summarized. This paper proposes a novel approach to improve code summarization based on summary-focused tasks. Specifically, we exploit a multi-task learning paradigm to train the encoder on three summary-focused tasks to enhance its ability to learn code-summary alignment, including unidirectional language modeling (ULM), masked language modeling (MLM), and action word prediction (AWP). Unlike pre-trained models that mainly predict masked tokens in code snippets, we design ULM and MLM to predict masked words in summaries. Intuitively, predicting words based on given code snippets would help learn the code-summary alignment. Additionally, we introduce the domain-specific task AWP to enhance the ability of the encoder to learn the alignment between action words and code snippets. The extensive experiments on four datasets demonstrate that our approach, called ESALE significantly outperforms baselines in all three widely used metrics, including BLEU, METEOR, and ROUGE-L.

Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Builds on 67 of its 114 references that are in the map. First posted on arXiv 1 Jul 2024.

Builds on

67 of 114 references.

References · 67

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  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. 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
  7. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
  8. 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
  9. 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
  10. 2019Unified Language Model Pre-training for Natural Language Understanding and Generationcited by 668
  11. 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 638
  12. 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 600
38 more
  1. 2023Is ChatGPT a General-Purpose Natural Language Processing Task Solver?cited by 486
  2. 2020Multi-Task Learning with Deep Neural Networks: A Surveycited by 374
  3. 2022UniXcoder: Unified Cross-Modal Pre-training for Code Representationcited by 355
  4. 2019Multi-Task Deep Neural Networks for Natural Language Understandingcited by 349
  5. 2018Analysis Methods in Neural Language Processing: A Surveycited by 276
  6. 2019Analyzing the Structure of Attention in a Transformer Language Modelcited by 241
  7. 2023Large Language Models for Software Engineering: Survey and Open Problemscited by 178
  8. 2020A Transformer-based Approach for Source Code Summarizationcited by 129
  9. 2022Few-shot training LLMs for project-specific code-summarizationcited by 128
  10. 2018The Adverse Effects of Code Duplication in Machine Learning Models of Codecited by 123
  11. 2018Improving Automatic Source Code Summarization via Deep Reinforcement Learningcited by 99
  12. 2022Shortcut Learning of Large Language Models in Natural Language Understandingcited by 83
  13. 2019A Neural Model for Generating Natural Language Summaries of Program Subroutinescited by 76
  14. 2023Automatic Semantic Augmentation of Language Model Prompts (for Code Summarization)cited by 72
  15. 2023Large Language Models are Few-Shot Summarizers: Multi-Intent Comment Generation via In-Context Learningcited by 71
  16. 2019Code Generation as a Dual Task of Code Summarizationcited by 62
  17. 2020Multi-task Learning based Pre-trained Language Model for Code Completioncited by 58
  18. 2023A Survey on Large Language Models for Software Engineeringcited by 58
  19. 2017A parallel corpus of Python functions and documentation strings for automated code documentation and code generationcited by 56
  20. 2023A Survey of Learning-based Automated Program Repaircited by 55
  21. 2021On the Evaluation of Neural Code Summarizationcited by 47
  22. 2023What Makes Good In-context Demonstrations for Code Intelligence Tasks with LLMs?cited by 47
  23. 2019Recommendations for Datasets for Source Code Summarizationcited by 46
  24. 2022No More Fine-Tuning? An Experimental Evaluation of Prompt Tuning in Code Intelligencecited by 41
  25. 2024A Systematic Literature Review on Large Language Models for Automated Program Repaircited by 37
  26. 2019Retrieve and Refine: Exemplar-based Neural Comment Generationcited by 36
  27. 2020Improved Automatic Summarization of Subroutines via Attention to File Contextcited by 34
  28. 2023Automatic Code Summarization via ChatGPT: How Far Are We?cited by 34
  29. 2021CAST: Enhancing Code Summarization with Hierarchical Splitting and Reconstruction of Abstract Syntax Treescited by 31
  30. 2023Distilled GPT for Source Code Summarizationcited by 30
  31. 2024Teaching Code LLMs to Use Autocompletion Tools in Repository-Level Code Generationcited by 30
  32. 2020Code Summarization with Structure-induced Transformercited by 29
  33. 2021Code Structure Guided Transformer for Source Code Summarizationcited by 29
  34. 2023A Critical Review of Large Language Model on Software Engineering: An Example from ChatGPT and Automated Program Repaircited by 29
  35. 2019Automatic Source Code Summarization with Extended Tree-LSTMcited by 28
  36. 2020Code to Comment "Translation": Data, Metrics, Baselining & Evaluationcited by 28
  37. 2021Project-Level Encoding for Neural Source Code Summarization of Subroutinescited by 24
  38. 2021CoCoSum: Contextual Code Summarization with Multi-Relational Graph Neural Networkcited by 22

50 most cited of 67 All 67 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 1; 2025: 3; 2026: 2.

6 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2023Tram: A Token-level Retrieval-augmented Mechanism for Source Code Summarization
  2. 2025Code Summarization Beyond Function Level
  3. 2020Retrieval-Augmented Generation for Code Summarization via Hybrid GNN
  4. 2024Can Large Language Models Serve as Evaluators for Code Summarization?
  5. 2021Retrieval Augmented Code Generation and Summarization
  6. 2025Automated Snippet-Alignment Data Augmentation for Code Translation
  7. 2024GALLa: Graph Aligned Large Language Models for Improved Source Code Understanding
  8. 2025A Code Comprehension Benchmark for Large Language Models for Code