Research map / Large language models / Language, safety and interpretability
Learning to Update Natural Language Comments Based on Code Changes
Sheena Panthaplackel, Pengyu Nie, Milos Gligoric, Junyi Jessy Li, Raymond J. Mooney
University of Texas at Austin
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| decode comment edit actions instead of the full updated comment (ablation) | edit model with Cold, Medit input · Comment update ablation | xMatch (%): 6.114 -> 8.922 | Improved |
| decode comment edit actions instead of the full updated comment (ablation) | edit model with Cold, Medit input · Comment update ablation | SARI: 28.980 -> 40.538 | Improved |
| encode explicit code edits (Medit) instead of Mnew (ablation) | edit model with Cedit output · Comment update ablation | SARI: 35.516 -> 40.538 | Improved |
| encode Medit instead of Mold and Mnew separately (ablation) | edit model with Cedit output · Comment update ablation | xMatch (%): 5.163 -> 8.922 | Improved |
| add extracted features (ablation) | edit model · Comment update test set (736 pairs) | xMatch (%): 8.922 -> 17.663 | Improved |
| add extracted features (ablation) | reranked edit model · Comment update test set (736 pairs) | SARI: 36.924 -> 45.486 | Improved |
| rerank candidates with similarity to Cold | edit model · Comment update test set (736 pairs) | SARI: 46.376 -> 45.486 | Hurt |
| rerank candidates with similarity to Cold | edit model · Comment update test set (736 pairs) | xMatch (%): 17.663 -> 18.433 | Improved |
| rerank candidates with METEOR similarity to Cold | generation model · Comment update test set (736 pairs) | xMatch (%): 1.132 -> 2.083 | Improved |
| use edit model instead of generation model trained on 103,473 pairs | reranked models · Comment update test set (736 pairs) | xMatch (%): 2.083 -> 18.433 | Improved |
| use edit model instead of rule-based baselines | reranked edit model · Comment update test set (736 pairs) | BLEU-4: 51.160 (baseline) vs 50.717 | No clear effect |
| use reranked edit model instead of best baseline or reranked generation | comment suggestions · Human evaluation | % selected: 30.2% vs 18.4% and 12.4% | Improved |
Open problems in controlled text generation
How can generation be controlled and checked reliably across languages, domains and model sizes without extra cost?
- Each study covers one domain, source or task, so transfer is unknown. · 13 papers state it
- Only a few languages are tested, mostly English or high-resource ones. · 12 papers state it
- Extra stages, calls or tokens make generation slower and costlier. · 10 papers state it
Closest papers by meaning
- Deep Just-In-Time Inconsistency Detection Between Comments and Source Code (AAAI 2021 · similarity 0.92)
- A Neural Architecture for Generating Natural Language Descriptions from Source Code Changes (ACL 2017 · similarity 0.88)
- Associating Natural Language Comment and Source Code Entities (AAAI 2020 · similarity 0.88)
- CodeSync: Synchronizing Large Language Models with Dynamic Code Evolution at Scale (ICML 2025 · similarity 0.85)
- Automating Dataset Updates Towards Reliable and Timely Evaluation of Large Language Models (NeurIPS 2024 · similarity 0.84)
- NextCoder: Robust Adaptation of Code LMs to Diverse Code Edits (ICML 2025 · similarity 0.84)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.