Learning to Update Natural Language Comments Based on Code Changes
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 30 papers in the map (data through 7 Oct 2026). First posted on arXiv 25 Apr 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 9; 2022: 6; 2023: 7; 2024: 2; 2025: 2; 2026: 4.
30 papers.
Sort:
By area:
- 2023From Word Models to World Models: Translating from Natural Language to the Probabilistic Language of Thoughtcited by 118
- 2021On the Evaluation of Neural Code Summarizationcited by 47
- 2022CoditT5: Pretraining for Source Code and Natural Language Editingcited by 45
- 2021NL-EDIT: Correcting semantic parse errors through natural language interactioncited by 33
- 2023Learning Deep Semantics for Test Completioncited by 31
- 2022RACE: Retrieval-Augmented Commit Message Generationcited by 27
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkitcited by 22
- 2021Learning Structural Edits via Incremental Tree Transformationscited by 16
- 2022Source Code Summarization with Structural Relative Position Guided Transformercited by 14
- 2023TypeT5: Seq2seq Type Inference using Static Analysiscited by 12
- 2021Impact of Evaluation Methodologies on Code Summarizationcited by 11
- 2023Coeditor: Leveraging Contextual Changes for Multi-round Code Auto-editingcited by 9
18 more
- 2023Multilingual Code Co-Evolution Using Large Language Modelscited by 9
- 2024Natural Language Outlines for Code: Literate Programming in the LLM Eracited by 9
- 2022Code Comment Inconsistency Detection with BERT and Longformercited by 6
- 2021Learning to Generate Code Comments from Class Hierarchiescited by 5
- 2021Learning to Describe Solutions for Bug Reports Based on Developer Discussionscited by 5
- 2026ContextCov: Deriving and Enforcing Executable Constraints from Agent Instruction Filescited by 5
- 2024exLong: Generating Exceptional Behavior Tests with Large Language Modelscited by 4
- 2021ComSum: Commit Messages Summarization and Meaning Preservationcited by 3
- 2021GN-Transformer: Fusing Sequence and Graph Representation for Improved Code Summarizationcited by 3
- 2022A Survey on Natural Language Processing for Programmingcited by 3
- 2023CCRep: Learning Code Change Representations via Pre-Trained Code Model and Query Backcited by 3
- 2025TokDrift: When LLM Speaks in Subwords but Code Speaks in Grammarcited by 2
- 2026Why Does CLAUDE.md Keep Growing? Catastrophic Remembering in Agentic Codingcited by 2
- 2021Data-Driven AI Model Signal-Awareness Enhancement and Introspectioncited by 1
- 2022LAMNER: Code Comment Generation Using Character Language Model and Named Entity Recognitioncited by 1
- 2026RefactorAssist: Agentic Refinement for Reliable Code Refactoringcited by 1
- 2025Excision Score: Evaluating Edits with Surgical Precisioncited by 0
- 2026From Agent Behaviour to Agent-Friendly Documentation: An Empirical Study of How Coding Agents Discover, Read, and Write Technical Documentationcited by 0
- 2026From Agent Behaviour to Agent-Friendly Documentation: An Empirical Study of How Coding Agents Discover, Read, and Write Technical Documentation20 Aug 2026
- 2026Why Does CLAUDE.md Keep Growing? Catastrophic Remembering in Agentic Coding11 Aug 2026
- 2026RefactorAssist: Agentic Refinement for Reliable Code Refactoring2 Aug 2026
- 2026ContextCov: Deriving and Enforcing Executable Constraints from Agent Instruction Files28 Feb 2026
- 2025Excision Score: Evaluating Edits with Surgical Precision24 Oct 2025
- 2025TokDrift: When LLM Speaks in Subwords but Code Speaks in Grammar16 Oct 2025
- 2024Natural Language Outlines for Code: Literate Programming in the LLM Era9 Aug 2024
- 2024exLong: Generating Exceptional Behavior Tests with Large Language Models23 May 2024
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkit30 Dec 2023
- 2023Multilingual Code Co-Evolution Using Large Language Models27 Jul 2023
- 2023From Word Models to World Models: Translating from Natural Language to the Probabilistic Language of Thought22 Jun 2023
- 2023Coeditor: Leveraging Contextual Changes for Multi-round Code Auto-editing29 May 2023
18 more
- 2023TypeT5: Seq2seq Type Inference using Static Analysis16 Mar 2023
- 2023Learning Deep Semantics for Test Completion20 Feb 2023
- 2023CCRep: Learning Code Change Representations via Pre-Trained Code Model and Query Back8 Feb 2023
- 2022A Survey on Natural Language Processing for Programming12 Dec 2022
- 2022CoditT5: Pretraining for Source Code and Natural Language Editing10 Aug 2022
- 2022Code Comment Inconsistency Detection with BERT and Longformer29 Jul 2022
- 2022LAMNER: Code Comment Generation Using Character Language Model and Named Entity Recognition5 Apr 2022
- 2022RACE: Retrieval-Augmented Commit Message Generation5 Mar 2022
- 2022Source Code Summarization with Structural Relative Position Guided Transformer14 Feb 2022
- 2021GN-Transformer: Fusing Sequence and Graph Representation for Improved Code Summarization17 Nov 2021
- 2021Data-Driven AI Model Signal-Awareness Enhancement and Introspection10 Nov 2021
- 2021Learning to Describe Solutions for Bug Reports Based on Developer Discussions8 Oct 2021
- 2021ComSum: Commit Messages Summarization and Meaning Preservation23 Aug 2021
- 2021Impact of Evaluation Methodologies on Code Summarization22 Aug 2021
- 2021On the Evaluation of Neural Code Summarization15 Jul 2021
- 2021NL-EDIT: Correcting semantic parse errors through natural language interaction26 Mar 2021
- 2021Learning to Generate Code Comments from Class Hierarchies24 Mar 2021
- 2021Learning Structural Edits via Incremental Tree Transformations28 Jan 2021
- 2026ContextCov: Deriving and Enforcing Executable Constraints from Agent Instruction Filescited by 5
- 2026Why Does CLAUDE.md Keep Growing? Catastrophic Remembering in Agentic Codingcited by 2
- 2026RefactorAssist: Agentic Refinement for Reliable Code Refactoringcited by 1
- 2026From Agent Behaviour to Agent-Friendly Documentation: An Empirical Study of How Coding Agents Discover, Read, and Write Technical Documentationcited by 0
- 2026From Agent Behaviour to Agent-Friendly Documentation: An Empirical Study of How Coding Agents Discover, Read, and Write Technical Documentation20 Aug 2026
- 2026Why Does CLAUDE.md Keep Growing? Catastrophic Remembering in Agentic Coding11 Aug 2026
- 2026RefactorAssist: Agentic Refinement for Reliable Code Refactoring2 Aug 2026
- 2026ContextCov: Deriving and Enforcing Executable Constraints from Agent Instruction Files28 Feb 2026
- 2022RACE: Retrieval-Augmented Commit Message Generationcited by 27
- 2022RACE: Retrieval-Augmented Commit Message Generation5 Mar 2022
- 2021On the Evaluation of Neural Code Summarizationcited by 47
- 2022CoditT5: Pretraining for Source Code and Natural Language Editingcited by 45
- 2021NL-EDIT: Correcting semantic parse errors through natural language interactioncited by 33
- 2023Learning Deep Semantics for Test Completioncited by 31
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkitcited by 22
- 2021Learning Structural Edits via Incremental Tree Transformationscited by 16
- 2022Source Code Summarization with Structural Relative Position Guided Transformercited by 14
- 2023TypeT5: Seq2seq Type Inference using Static Analysiscited by 12
- 2021Impact of Evaluation Methodologies on Code Summarizationcited by 11
- 2023Coeditor: Leveraging Contextual Changes for Multi-round Code Auto-editingcited by 9
- 2023Multilingual Code Co-Evolution Using Large Language Modelscited by 9
- 2024Natural Language Outlines for Code: Literate Programming in the LLM Eracited by 9
12 most cited of 24 All 24 (JSON)
- 2025Excision Score: Evaluating Edits with Surgical Precision24 Oct 2025
- 2025TokDrift: When LLM Speaks in Subwords but Code Speaks in Grammar16 Oct 2025
- 2024Natural Language Outlines for Code: Literate Programming in the LLM Era9 Aug 2024
- 2024exLong: Generating Exceptional Behavior Tests with Large Language Models23 May 2024
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkit30 Dec 2023
- 2023Multilingual Code Co-Evolution Using Large Language Models27 Jul 2023
- 2023Coeditor: Leveraging Contextual Changes for Multi-round Code Auto-editing29 May 2023
- 2023TypeT5: Seq2seq Type Inference using Static Analysis16 Mar 2023
- 2023Learning Deep Semantics for Test Completion20 Feb 2023
- 2023CCRep: Learning Code Change Representations via Pre-Trained Code Model and Query Back8 Feb 2023
- 2022A Survey on Natural Language Processing for Programming12 Dec 2022
- 2022CoditT5: Pretraining for Source Code and Natural Language Editing10 Aug 2022
12 newest of 24 All 24 (JSON)