Cited by 93Software Engineering ResearchTopic ModelingSoftware Engineering Techniques and Practices

ATOM: Commit Message Generation Based on Abstract Syntax Tree and Hybrid Ranking

Liu, Shangqing, Gao, Cuiyun, Chen, Sen, Nie, Lun Yiu, Liu, Yang·2022·IEEE Transactions on Software Engineering

Abstract

Commit messages record code changes (e.g., feature modifications and bug repairs) in natural language, and are useful for program comprehension. Due to the frequent updates of software and time cost, developers are generally unmotivated to write commit messages for code changes. Therefore, automating the message writing process is necessitated. Previous studies on commit message generation have been benefited from generation models or retrieval models, but the code structure of changed code, i.e., AST, which can be important for capturing code semantics, has not been explicitly involved. Moreover, although generation models have the advantages of synthesizing commit messages for new code changes, they are not easy to bridge the semantic gap between code and natural languages which could be mitigated by retrieval models. In this paper, we propose a novel commit message generation model, named ATOM, which explicitly incorporates the abstract syntax tree for representing code changes and integrates both retrieved and generated messages through hybrid ranking. Specifically, the hybrid ranking module can prioritize the most accurate message from both retrieved and generated messages regarding one code change. We evaluate the proposed model ATOM on our dataset crawled from 56 popular Java repositories. Experimental results demonstrate that ATOM increases the state-of-the-art models by 30.72 percent in terms of BLEU-4 (an accuracy measure that is widely used to evaluate text generation systems). Qualitative analysis also demonstrates the effectiveness of ATOM in generating accurate code commit messages.

Integrity signals

Registry

Crossref · 10.1109/tse.2020.3038681

Cites

Statistics

Recomputing p-values needs the paper’s full text.

Claims the paper makes

We couldn’t retrieve this paper’s full text, so its claims and self-check weren’t run. The registry and citation checks still apply.

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

  • Explicitly incorporating structural knowledge into models enhances their perceptual understanding of code, thereby aiding software mining tasks, including code translation.

    “explicitly incorporating structural knowledge into models enhances their perceptual understanding of code, thereby aiding software mining tasks [14], [15], including code translation [9], [13].”
  • The study does not explore ICL with small pre-trained models because it is hard for them to comply with instructional prompts without parameter updates.

    “Additionally, we do not explore the performance of ICL with small pre-trained models, because it is hard for small pre-trained models to comply with instructional prompts without parameter updates [57, 64].”

No citation lists for this paper

No citation lists for this paper yet — checked again daily.

References 71 · Cited by 93

Authors
Liu, S., Gao, C., Chen, S., Nie, L. Y., & Liu, Y.
Affiliations
  • Nanyang Technological University (SG)
  • Harbin Institute of Technology (CN)
  • Tianjin University (CN)
  • Chinese University of Hong Kong (HK)
Venue
IEEE Transactions on Software Engineering
Published
2022-05-01
Volume
48
Issue
5
Pages
1800-1817
ISSN
  • 0098-5589 (ISSN-L)
  • 1939-3520
  • 2326-3881
OpenAlex
W3099130275
Cited by
93
References
71
Citations by year
2026: 10 · 2025: 16 · 2024: 20 · 2023: 24 · 2022: 10 · 2021: 11 · 2020: 2
FWCI
11.05
Type
journal article
Language
en
Open access
closed
Locations
  • IEEE Transactions on Software Engineering (publishedVersion)
  • DR-NTU (Nanyang Technological University) (submittedVersion)
Funders
  • Nvidia
  • Singapore Ministry of Education Academic Research Fund Tier 1 (2018-T1-002-069)
  • National Research Foundation, Prime Ministers Office, Singapore
  • National Cybersecurity R&D Program (NRF2018NCR-NCR005-0001)
  • National Research Foundation Singapore (NRF2018NCR-NSOE003-0001)
  • NRF Investigatorship (NRFI06-2020-0022)
  • National Natural Science Foundation of China (62002084)
Topics
  • Physical Sciences › Computer Science › Information Systems › Software Engineering Research
  • Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling
  • Physical Sciences › Computer Science › Information Systems › Software Engineering Techniques and Practices
Keywords
commit message generation, abstract syntax tree, hybrid ranking, program semantics, retrieval-augmented generation, program comprehension

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review