Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
97 tokens/sec
GPT-4o
53 tokens/sec
Gemini 2.5 Pro Pro
44 tokens/sec
o3 Pro
5 tokens/sec
GPT-4.1 Pro
47 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

Learning to Update Natural Language Comments Based on Code Changes (2004.12169v2)

Published 25 Apr 2020 in cs.CL, cs.LG, and cs.SE

Abstract: 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.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (5)
  1. Sheena Panthaplackel (9 papers)
  2. Pengyu Nie (19 papers)
  3. Milos Gligoric (23 papers)
  4. Junyi Jessy Li (79 papers)
  5. Raymond J. Mooney (35 papers)
Citations (62)

Summary

We haven't generated a summary for this paper yet.