mlsanityData to 14 Oct 2026

Code to Comment Translation: A Comparative Study on Model Effectiveness & Errors

arXiv 2106.08415 ↗First posted 15 Jun 2021cs.SE cs.AI cs.CLcited by 6

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

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
  4. 2019BERTScore: Evaluating Text Generation with BERTcited by 5,512
  5. 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,548
  6. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
  7. 2017Get To The Point: Summarization with Pointer-Generator Networkscited by 1,292
  8. 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 744
  9. 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 654
  10. 2018code2seq: Generating Sequences from Structured Representations of Codecited by 179
  11. 2020A Transformer-based Approach for Source Code Summarizationcited by 133
  12. 2018Improving Automatic Source Code Summarization via Deep Reinforcement Learningcited by 100
10 more
  1. 2020Retrieval-Augmented Generation for Code Summarization via Hybrid GNNcited by 89
  2. 2020Improved Code Summarization via a Graph Neural Networkcited by 79
  3. 2019A Neural Model for Generating Natural Language Summaries of Program Subroutinescited by 77
  4. 2021Studying the Usage of Text-To-Text Transfer Transformer to Support Code-Related Taskscited by 70
  5. 2019Recommendations for Datasets for Source Code Summarizationcited by 46
  6. 2020Code to Comment "Translation": Data, Metrics, Baselining & Evaluationcited by 29
  7. 2021Project-Level Encoding for Neural Source Code Summarization of Subroutinescited by 24
  8. 2019Automatic Code Summarization: A Systematic Literature Reviewcited by 18
  9. 2016Incorporating Structural Alignment Biases into an Attentional Neural Translation Modelcited by 16
  10. 2017Enabling Mutation Testing for Android Appscited by 1

Built on by

Cited by year

Citing papers per year: 2021: 1; 2022: 3; 2023: 1; 2024: 0; 2025: 1.

6 papers.