ESALE: Enhancing Code-Summary Alignment Learning for Source Code Summarization
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
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 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
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
- 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
- 2019Unified Language Model Pre-training for Natural Language Understanding and Generationcited by 668
- 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 638
- 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 600
38 more
- 2023Is ChatGPT a General-Purpose Natural Language Processing Task Solver?cited by 486
- 2020Multi-Task Learning with Deep Neural Networks: A Surveycited by 374
- 2022UniXcoder: Unified Cross-Modal Pre-training for Code Representationcited by 355
- 2019Multi-Task Deep Neural Networks for Natural Language Understandingcited by 349
- 2018Analysis Methods in Neural Language Processing: A Surveycited by 276
- 2019Analyzing the Structure of Attention in a Transformer Language Modelcited by 241
- 2023Large Language Models for Software Engineering: Survey and Open Problemscited by 178
- 2020A Transformer-based Approach for Source Code Summarizationcited by 129
- 2022Few-shot training LLMs for project-specific code-summarizationcited by 128
- 2018The Adverse Effects of Code Duplication in Machine Learning Models of Codecited by 123
- 2018Improving Automatic Source Code Summarization via Deep Reinforcement Learningcited by 99
- 2022Shortcut Learning of Large Language Models in Natural Language Understandingcited by 83
- 2019A Neural Model for Generating Natural Language Summaries of Program Subroutinescited by 76
- 2023Automatic Semantic Augmentation of Language Model Prompts (for Code Summarization)cited by 72
- 2023Large Language Models are Few-Shot Summarizers: Multi-Intent Comment Generation via In-Context Learningcited by 71
- 2019Code Generation as a Dual Task of Code Summarizationcited by 62
- 2020Multi-task Learning based Pre-trained Language Model for Code Completioncited by 58
- 2023A Survey on Large Language Models for Software Engineeringcited by 58
- 2017A parallel corpus of Python functions and documentation strings for automated code documentation and code generationcited by 56
- 2023A Survey of Learning-based Automated Program Repaircited by 55
- 2021On the Evaluation of Neural Code Summarizationcited by 47
- 2023What Makes Good In-context Demonstrations for Code Intelligence Tasks with LLMs?cited by 47
- 2019Recommendations for Datasets for Source Code Summarizationcited by 46
- 2022No More Fine-Tuning? An Experimental Evaluation of Prompt Tuning in Code Intelligencecited by 41
- 2024A Systematic Literature Review on Large Language Models for Automated Program Repaircited by 37
- 2019Retrieve and Refine: Exemplar-based Neural Comment Generationcited by 36
- 2020Improved Automatic Summarization of Subroutines via Attention to File Contextcited by 34
- 2023Automatic Code Summarization via ChatGPT: How Far Are We?cited by 34
- 2021CAST: Enhancing Code Summarization with Hierarchical Splitting and Reconstruction of Abstract Syntax Treescited by 31
- 2023Distilled GPT for Source Code Summarizationcited by 30
- 2024Teaching Code LLMs to Use Autocompletion Tools in Repository-Level Code Generationcited by 30
- 2020Code Summarization with Structure-induced Transformercited by 29
- 2021Code Structure Guided Transformer for Source Code Summarizationcited by 29
- 2023A Critical Review of Large Language Model on Software Engineering: An Example from ChatGPT and Automated Program Repaircited by 29
- 2019Automatic Source Code Summarization with Extended Tree-LSTMcited by 28
- 2020Code to Comment "Translation": Data, Metrics, Baselining & Evaluationcited by 28
- 2021Project-Level Encoding for Neural Source Code Summarization of Subroutinescited by 24
- 2021CoCoSum: Contextual Code Summarization with Multi-Relational Graph Neural Networkcited by 22
50 most cited of 67 All 67 (JSON)
Built on by
Citing papers per year: 2024: 1; 2025: 3; 2026: 2.
6 papers.
- 2024Source Code Summarization in the Era of Large Language Modelscited by 30
- 2025Large Language Models (LLMs) for Source Code Analysis: applications, models and datasetscited by 15
- 2025Knowledge-Based Multi-Agent Framework for Automated Software Architecture Designcited by 7
- 2025Secure Resource Allocation via Constrained Deep Reinforcement Learningcited by 1
- 2026Agent4cs: A Multi-agent System for Code Summarization in Large Hierarchical Codebasescited by 1
- 2026CoSTAR: Data Synthesis-Driven Constraint-Aware COBOL Section Summarization for Legacy System Modernizationcited by 0
- 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
- 2025Knowledge-Based Multi-Agent Framework for Automated Software Architecture Design26 Mar 2025
- 2025Large Language Models (LLMs) for Source Code Analysis: applications, models and datasets21 Mar 2025
- 2025Secure Resource Allocation via Constrained Deep Reinforcement Learning20 Jan 2025
- 2024Source Code Summarization in the Era of Large Language Models9 Jul 2024
Similar, not cited
Close in wording, no citation either way
- 2023Tram: A Token-level Retrieval-augmented Mechanism for Source Code Summarization
- 2025Code Summarization Beyond Function Level
- 2020Retrieval-Augmented Generation for Code Summarization via Hybrid GNN
- 2024Can Large Language Models Serve as Evaluators for Code Summarization?
- 2021Retrieval Augmented Code Generation and Summarization
- 2025Automated Snippet-Alignment Data Augmentation for Code Translation
- 2024GALLa: Graph Aligned Large Language Models for Improved Source Code Understanding
- 2025A Code Comprehension Benchmark for Large Language Models for Code