Lune

ASE2020顶会

Code to Comment "Translation": Data, Metrics, Baselining & Evaluation

David Gros, Hariharan Sezhiyan, Prem Devanbu, Zhou Yu

摘要

The relationship of comments to code, and in particular, the task of generating useful comments given the code, has long been of interest. The earliest approaches have been based on strong syntactic theories of comment-structures, and relied on textual templates. More recently, researchers have applied deep-learning methods to this task---specifically, trainable generative translation models which are known to work very well for Natural Language translation (e.g., from German to English). We carefully examine the underlying assumption here: that the task of generating comments sufficiently resembles the task of translating between natural languages, and so similar models and evaluation metrics could be used. We analyze several recent code-comment datasets for this task: CodeNN, DeepCom, FunCom, and DocString. We compare them with WMT19, a standard dataset frequently used to train state-of-the-art natural language translators. We found some interesting differences between the code-comment data and the WMT19 natural language data. Next, we describe and conduct some studies to calibrate BLEU (which is commonly used as a measure of comment quality). using "affinity pairs" of methods, from different projects, in the same project, in the same class, etc; Our study suggests that the current performance on some datasets might need to be improved substantially. We also argue that fairly naive information retrieval (IR) methods do well enough at this task to be considered a reasonable baseline. Finally, we make some suggestions on how our findings might be used in future research in this area.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 18 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Automatic Semantic Augmentation of Language Model Prompts (for Code Summarization) 引用了 On the Evaluation of Neural Code Summarization
  • Automatic Semantic Augmentation of Language Model Prompts (for Code Summarization) 引用了 Retrieval-based neural source code summarization
  • Automatic Semantic Augmentation of Language Model Prompts (for Code Summarization) 引用了 Reassessing automatic evaluation metrics for code summarization tasks
  • Automatic Semantic Augmentation of Language Model Prompts (for Code Summarization) 引用了 Recommending Root-Cause and Mitigation Steps for Cloud Incidents using Large Language Models
  • On the Evaluation of Neural Code Summarization 引用了 Retrieval-based neural source code summarization
  • On the Evaluation of Neural Code Summarization 引用了 Reassessing automatic evaluation metrics for code summarization tasks
  • Reassessing automatic evaluation metrics for code summarization tasks 引用了 Retrieval-based neural source code summarization
  • Recommending Root-Cause and Mitigation Steps for Cloud Incidents using Large Language Models 引用了 NatGen: generative pre-training by "naturalizing" source code
  • Recommending Root-Cause and Mitigation Steps for Cloud Incidents using Large Language Models 引用了 On the Evaluation of Neural Code Summarization
  • Recommending Root-Cause and Mitigation Steps for Cloud Incidents using Large Language Models 引用了 Reassessing automatic evaluation metrics for code summarization tasks
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper18

  1. Reassessing automatic evaluation metrics for code summarization tasksDevjeet Roy, Sarah Fakhoury, Venera ArnaoudovaFSE 2021 · 103 次引用
  2. NatGen: generative pre-training by "naturalizing" source codeSaikat Chakraborty, Toufique Ahmed, Yangruibo Ding, Premkumar T. Devanbu 等FSE 2022 · 101 次引用
  3. Recommending Root-Cause and Mitigation Steps for Cloud Incidents using Large Language ModelsToufique Ahmed, Supriyo Ghosh, Chetan Bansal, Thomas Zimmermann 等ICSE 2023 · 93 次引用
  4. On the Evaluation of Neural Code SummarizationEnsheng Shi, Yanlin Wang, Lun Du, Junjie Chen 等ICSE 2022 · 76 次引用
  5. Automatic Semantic Augmentation of Language Model Prompts (for Code Summarization)Toufique Ahmed, Kunal Suresh Pai, Premkumar T. Devanbu, Earl T. BarrICSE 2024 · 71 次引用

它引用的 Paper2

  1. Retrieval-based neural source code summarizationJian Zhang, Xu Wang, Hongyu Zhang, Hailong Sun 等ICSE 2020 · 242 次引用
  2. Big code != big vocabulary: open-vocabulary models for source codeRafael-Michael Karampatsis, Hlib Babii, Romain Robbes, Charles Sutton 等ICSE 2020 · 140 次引用

相关 Paper

  1. On-the-Fly Adapting Code Summarization on Trainable Cost-Effective Language ModelsYufan Cai, Yun Lin, Chenyan Liu, Jinglian Wu 等NeurIPS 2023 · 12 次引用
  2. Retrieve and Refine: Exemplar-based Neural Comment GenerationBolin Wei, Yongmin Li, Ge Li, Xin Xia 等ASE 2020 · 68 次引用
  3. Studying the Usage of Text-To-Text Transfer Transformer to Support Code-Related TasksAntonio Mastropaolo, Simone Scalabrino, Nathan Cooper, David Nader-Palacio 等ICSE 2021 · 9 次引用
  4. PyMT5: multi-mode translation of natural language and Python code with transformersColin B. Clement, Dawn Drain, Jonathan Timcheck, Alexey Svyatkovskiy 等EMNLP 2020 · 24 次引用
  5. Learning to Update Natural Language Comments Based on Code ChangesSheena Panthaplackel, Pengyu Nie, Milos Gligoric, Junyi Jessy Li 等ACL 2020 · 1 次引用
黄昏的海面,两侧是细线勾勒的悬崖