paper-with-me

홈 › Papers

Learning to Update Natural Language Comments Based on Code Changes

2020-04-25 · ACL 2020 6 · Sheena Panthaplackel, Pengyu Nie, Milos Gligoric, Junyi Jessy Li, Raymond J. Mooney

We formulate the novel task of automatically updating an existing natural language comment based on changes in the body of code it accompanies. We propose an approach that learns to correlate changes across two distinct language representations, to generate a sequence of edits that are applied to the existing comment to reflect the source code modifications. We train and evaluate our model using a dataset that we collected from commit histories of open-source software projects, with each example consisting of a concurrent update to a method and its corresponding comment. We compare our approach against multiple baselines using both automatic metrics and human evaluation. Results reflect the challenge of this task and that our model outperforms baselines with respect to making edits.

📄 PDF Abstract BibTeX arXiv:2004.12169

Code (1)

panthap2/LearningToUpdateNLComments 공식 구현 pytorch

Similar Papers 제목 키워드 기반

Deep Just-In-Time Inconsistency Detection Between Comments and Source Code

2020-10-04 · Sheena Panthaplackel, Junyi Jessy Li, Milos Gligoric, Raymond J. Mooney

Natural language comments convey key aspects of source code such as implementation, usage, and pre- and post-conditions. Failure to update comments accordingly when the corresponding code is modified introduces inconsist…

Code Comment Inconsistency Detection with BERT and Longformer

2022-07-29 · Theo Steiner, Rui Zhang

Comments, or natural language descriptions of source code, are standard practice among software developers. By communicating important aspects of the code such as functionality and usage, comments help with software proj…

Natural Language Inference

Revisiting the Role of Natural Language Code Comments in Code Translation

2026-01-23 · Monika Gupta, Ajay Meena, Anamitra Roy Choudhury, Vijay Arya 외 arxiv

The advent of large language models (LLMs) has ushered in a new era in automated code translation across programming languages. Since most code-specific LLMs are pretrained on well-commented code from large repositories …

Code Translation

A Qualitative Investigation into LLM-Generated Multilingual Code Comments and Automatic Evaluation Metrics

2025-05-21 · Jonathan Katzy, Yongcheng Huang, Gopal-Raj Panchu, Maksym Ziemlewski 외

Large Language Models are essential coding assistants, yet their training is predominantly English-centric. In this study, we evaluate the performance of code language models in non-English contexts, identifying challeng…

Informativeness

Commenting with Copilot: A Taxonomy and Multi-Year Analysis of Student Code-Generation Specifications

2026-07-12 · Nasser Giacaman, Valerio Terragni, Paul Denny, Viraj Kumar arxiv

As AI code tools become integrated into programming environments, students increasingly describe intended behavior in natural language and rely on these tools to generate code, shifting emphasis from code writing to spec…

Code Generation