Ensemble Models for Neural Source Code Summarization of Subroutines
Not on the map. Why?
Abstract (arXiv)
A source code summary of a subroutine is a brief description of that subroutine. Summaries underpin a majority of documentation consumed by programmers, such as the method summaries in JavaDocs. Source code summarization is the task of writing these summaries. At present, most state-of-the-art approaches for code summarization are neural network-based solutions akin to seq2seq, graph2seq, and other encoder-decoder architectures. The input to the encoder is source code, while the decoder helps predict the natural language summary. While these models tend to be similar in structure, evidence is emerging that different models make different contributions to prediction quality -- differences in model performance are orthogonal and complementary rather than uniform over the entire dataset. In this paper, we explore the orthogonal nature of different neural code summarization approaches and propose ensemble models to exploit this orthogonality for better overall performance. We demonstrate that a simple ensemble strategy boosts performance by up to 14.8%, and provide an explanation for this boost. The takeaway from this work is that a relatively small change to the inference procedure in most neural code summarization techniques leads to outsized improvements in prediction quality.
Key facts. Cited by 12 papers in the map (data through 14 Oct 2026). First posted on arXiv 23 Jul 2021.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 2; 2022: 3; 2023: 2; 2024: 1; 2025: 3; 2026: 1.
12 papers.
- 2022CoditT5: Pretraining for Source Code and Natural Language Editingcited by 45
- 2021Multilingual training for Software Engineeringcited by 43
- 2021A Survey on Machine Learning Techniques for Source Code Analysiscited by 24
- 2023Benchmarking Causal Study to Interpret Large Language Models for Source Codecited by 14
- 2025JAM: Controllable and Responsible Text Generation via Causal Reasoning and Latent Vector Manipulationcited by 5
- 2024Improving Retrieval-Augmented Code Comment Generation by Retrieving for Generationcited by 4
- 2022Automatic Comment Generation via Multi-Pass Deliberationcited by 3
- 2023Statement-based Memory for Neural Source Code Summarizationcited by 2
- 2025Reverse Engineering User Stories from Code using Large Language Modelscited by 2
- 2025SnipGen: A Mining Repository Framework for Evaluating LLMs for Codecited by 1
- 2022Meta Learning for Code Summarizationcited by 0
- 2026Towards Comprehensive Benchmarking Infrastructure for LLMs In Software Engineeringcited by 0
- 2026Towards Comprehensive Benchmarking Infrastructure for LLMs In Software Engineering28 Jan 2026
- 2025Reverse Engineering User Stories from Code using Large Language Models23 Sep 2025
- 2025JAM: Controllable and Responsible Text Generation via Causal Reasoning and Latent Vector Manipulation28 Feb 2025
- 2025SnipGen: A Mining Repository Framework for Evaluating LLMs for Code10 Feb 2025
- 2024Improving Retrieval-Augmented Code Comment Generation by Retrieving for Generation7 Aug 2024
- 2023Benchmarking Causal Study to Interpret Large Language Models for Source Code23 Aug 2023
- 2023Statement-based Memory for Neural Source Code Summarization21 Jul 2023
- 2022Automatic Comment Generation via Multi-Pass Deliberation14 Sep 2022
- 2022CoditT5: Pretraining for Source Code and Natural Language Editing10 Aug 2022
- 2022Meta Learning for Code Summarization20 Jan 2022
- 2021Multilingual training for Software Engineering3 Dec 2021
- 2021A Survey on Machine Learning Techniques for Source Code Analysis18 Oct 2021