mlsanityData to 7 Oct 2026

A Sketch-Based Neural Model for Generating Commit Messages from Diffs

arXiv 2104.04087 ↗First posted 8 Apr 2021cs.CL cs.SEcited by 0

Not on the map. Why?

Abstract (arXiv)

Commit messages have an important impact in software development, especially when working in large teams. Multiple developers who have a different style of writing may often be involved in the same project. For this reason, it may be difficult to maintain a strict pattern of writing informative commit messages, with the most frequent issue being that these messages are not descriptive enough. In this paper we apply neural machine translation (NMT) techniques to convert code diffs into commit messages and we present an improved sketch-based encoder for this task. We split the approach into three parts. Firstly, we focus on finding a more suitable NMT baseline for this problem. Secondly, we show that the performance of the NMT models can be improved by training on examples containing a specific file type. Lastly, we introduce a novel sketch-based neural model inspired by recent approaches used for code generation and we show that the sketch-based encoder significantly outperforms existing state of the art solutions. The results highlight that this improvement is relevant especially for Java source code files, by examining two different datasets introduced in recent years for this task.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 11 of its 20 references that are in the map. First posted on arXiv 8 Apr 2021.

Builds on

11 of 20 references.

References · 11

  1. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  2. 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
  3. 2014Learning Phrase Representations using RNN Encoder-Decoder for Statistical Machine Translationcited by 4,016
  4. 2014Sequence to Sequence Learning with Neural Networkscited by 2,974
  5. 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,898
  6. 2016Google's Neural Machine Translation System: Bridging the Gap between Human and Machine Translationcited by 1,471
  7. 2016Incorporating Copying Mechanism in Sequence-to-Sequence Learningcited by 217
  8. 2018Coarse-to-Fine Decoding for Neural Semantic Parsingcited by 110
  9. 2017Massive Exploration of Neural Machine Translation Architecturescited by 55
  10. 2017Automatically Generating Commit Messages from Diffs using Neural Machine Translationcited by 42
  11. 2017Towards Automatic Generation of Short Summaries of Commitscited by 8

Built on by

Not cited yet.