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

Junayed Mahmud, Fahim Faisal, Raihan Islam Arnob, Antonios Anastasopoulos, Kevin Moran
6/15/2021
cs.SEcs.AIcs.CL

Official code: SageSELab/CodeSumStudy (6 stars, Python, last commit 2021-06-06).

Abstract

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.

Show full abstract

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

View on arXivView PDF

Code Implementations(1)

This repository holds our code, data, and replication package for our NLP4Prog'21 paper entitled "Code to Comment Translation: An Empirical Study on Model Effectiveness and Errors"

63Python, Jupyter NotebookJun 6, 20215 years ago

Similar Papers

Cite this paper

@article{mahmud2021code,
  title  = {Code to Comment Translation: A Comparative Study on Model Effectiveness & Errors},
  author = {Junayed Mahmud and Fahim Faisal and Raihan Islam Arnob and Antonios Anastasopoulos and Kevin Moran},
  year   = {2021},
  eprint = {2106.08415},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.08415}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2106.08415.svg)](https://codeofpaper.com/paper/2106.08415)

Discussion