Code to Comment Translation: A Comparative Study on Model Effectiveness & Errors
Not on the map. Why?
Abstract (arXiv)
Automated source code summarization is a popular software engineering research topic wherein machine translation models are employed to "translate" code snippets into relevant natural language descriptions. Most evaluations of such models are conducted using automatic reference-based metrics. However, given the relatively large semantic gap between programming languages and natural language, we argue that this line of research would benefit from a qualitative investigation into the various error modes of current state-of-the-art models. Therefore, in this work, we perform both a quantitative and qualitative comparison of three recently proposed source code summarization models. In our quantitative evaluation, we compare the models based on the smoothed BLEU-4, METEOR, and ROUGE-L machine translation metrics, and in our qualitative evaluation, we perform a manual open-coding of the most common errors committed by the models when compared to ground truth captions. Our investigation reveals new insights into the relationship between metric-based performance and model prediction errors grounded in an empirically derived error taxonomy that can be used to drive future research efforts
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Builds on 22 of its 46 references that are in the map. First posted on arXiv 15 Jun 2021.
Builds on
22 of 46 references.
References · 22
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2019BERTScore: Evaluating Text Generation with BERTcited by 5,512
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,548
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
- 2017Get To The Point: Summarization with Pointer-Generator Networkscited by 1,292
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 744
- 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 654
- 2018code2seq: Generating Sequences from Structured Representations of Codecited by 179
- 2020A Transformer-based Approach for Source Code Summarizationcited by 133
- 2018Improving Automatic Source Code Summarization via Deep Reinforcement Learningcited by 100
10 more
- 2020Retrieval-Augmented Generation for Code Summarization via Hybrid GNNcited by 89
- 2020Improved Code Summarization via a Graph Neural Networkcited by 79
- 2019A Neural Model for Generating Natural Language Summaries of Program Subroutinescited by 77
- 2021Studying the Usage of Text-To-Text Transfer Transformer to Support Code-Related Taskscited by 70
- 2019Recommendations for Datasets for Source Code Summarizationcited by 46
- 2020Code to Comment "Translation": Data, Metrics, Baselining & Evaluationcited by 29
- 2021Project-Level Encoding for Neural Source Code Summarization of Subroutinescited by 24
- 2019Automatic Code Summarization: A Systematic Literature Reviewcited by 18
- 2016Incorporating Structural Alignment Biases into an Attentional Neural Translation Modelcited by 16
- 2017Enabling Mutation Testing for Android Appscited by 1
Built on by
Citing papers per year: 2021: 1; 2022: 3; 2023: 1; 2024: 0; 2025: 1.
6 papers.
- 2021Multilingual training for Software Engineeringcited by 43
- 2022On the Transferability of Pre-trained Language Models for Low-Resource Programming Languagescited by 30
- 2023The Vault: A Comprehensive Multilingual Dataset for Advancing Code Understanding and Generationcited by 20
- 2022Source Code Summarization with Structural Relative Position Guided Transformercited by 14
- 2025Large Language Models are Qualified Benchmark Builders: Rebuilding Pre-Training Datasets for Advancing Code Intelligence Taskscited by 6
- 2022A Survey of Deep Learning Models for Structural Code Understandingcited by 4
- 2025Large Language Models are Qualified Benchmark Builders: Rebuilding Pre-Training Datasets for Advancing Code Intelligence Tasks28 Apr 2025
- 2023The Vault: A Comprehensive Multilingual Dataset for Advancing Code Understanding and Generation9 May 2023
- 2022A Survey of Deep Learning Models for Structural Code Understanding3 May 2022
- 2022On the Transferability of Pre-trained Language Models for Low-Resource Programming Languages5 Apr 2022
- 2022Source Code Summarization with Structural Relative Position Guided Transformer14 Feb 2022
- 2021Multilingual training for Software Engineering3 Dec 2021