Unsupervised Learning of General-Purpose Embeddings for Code Changes
Not on the map. Why?
Abstract (arXiv)
Applying machine learning to tasks that operate with code changes requires their numerical representation. In this work, we propose an approach for obtaining such representations during pre-training and evaluate them on two different downstream tasks - applying changes to code and commit message generation. During pre-training, the model learns to apply the given code change in a correct way. This task requires only code changes themselves, which makes it unsupervised. In the task of applying code changes, our model outperforms baseline models by 5.9 percentage points in accuracy. As for the commit message generation, our model demonstrated the same results as supervised models trained for this specific task, which indicates that it can encode code changes well and can be improved in the future by pre-training on a larger dataset of easily gathered code changes.
Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 14 of its 29 references that are in the map. First posted on arXiv 3 Jun 2021.
Builds on
14 of 29 references.
References · 14
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
- 2015Pointer Networkscited by 882
- 2019On Learning Meaningful Code Changes via Neural Machine Translationcited by 50
- 2017Automatically Generating Commit Messages from Diffs using Neural Machine Translationcited by 42
- 2016Deep API Learningcited by 41
- 2020CC2Vec: Distributed Representations of Code Changescited by 38
- 2018Learning to Represent Editscited by 34
- 2019Learning and Evaluating Contextual Embedding of Source Codecited by 33
- 2019A Literature Study of Embeddings on Source Codecited by 18
- 2019Commit2Vec: Learning Distributed Representations of Code Changescited by 12
2 more
Built on by
Citing papers per year: 2024: 2; 2025: 1.
3 papers.