On Learning Meaningful Code Changes via Neural Machine Translation
Not on the map. Why?
Abstract (arXiv)
Recent years have seen the rise of Deep Learning (DL) techniques applied to source code. Researchers have exploited DL to automate several development and maintenance tasks, such as writing commit messages, generating comments and detecting vulnerabilities among others. One of the long lasting dreams of applying DL to source code is the possibility to automate non-trivial coding activities. While some steps in this direction have been taken (e.g., learning how to fix bugs), there is still a glaring lack of empirical evidence on the types of code changes that can be learned and automatically applied by DL. Our goal is to make this first important step by quantitatively and qualitatively investigating the ability of a Neural Machine Translation (NMT) model to learn how to automatically apply code changes implemented by developers during pull requests. We train and experiment with the NMT model on a set of 236k pairs of code components before and after the implementation of the changes provided in the pull requests. We show that, when applied in a narrow enough context (i.e., small/medium-sized pairs of methods before/after the pull request changes), NMT can automatically replicate the changes implemented by developers during pull requests in up to 36% of the cases. Moreover, our qualitative analysis shows that the model is capable of learning and replicating a wide variety of meaningful code changes, especially refactorings and bug-fixing activities. Our results pave the way for novel research in the area of DL on code, such as the automatic learning and applications of refactoring.
Key facts. Cited by 50 papers in the map (data through 7 Oct 2026). First posted on arXiv 25 Jan 2019.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 8; 2022: 6; 2023: 16; 2024: 7; 2025: 9; 2026: 4.
50 papers.
Sort:
By area:
- 2024RepairAgent: An Autonomous, LLM-Based Agent for Program Repaircited by 225
- 2022NatGen: Generative pre-training by "Naturalizing" source codecited by 53
- 2023LLaMA-Reviewer: Advancing Code Review Automation with Large Language Models through Parameter-Efficient Fine-Tuningcited by 47
- 2022CoditT5: Pretraining for Source Code and Natural Language Editingcited by 45
- 2023Vulnerabilities in AI Code Generators: Exploring Targeted Data Poisoning Attackscited by 29
- 2021On Multi-Modal Learning of Editing Source Codecited by 25
- 2021A Survey on Machine Learning Techniques for Source Code Analysiscited by 23
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkitcited by 22
- 2023Text-to-SQL Error Correction with Language Models of Codecited by 21
- 2022Deep Learning Meets Software Engineering: A Survey on Pre-Trained Models of Source Codecited by 20
- 2022FixEval: Execution-based Evaluation of Program Fixes for Programming Problemscited by 17
- 2021Shellcode_IA32: A Dataset for Automatic Shellcode Generationcited by 16
38 more
- 2023ITER: Iterative Neural Repair for Multi-Location Patchescited by 16
- 2023GrACE: Generation using Associated Code Editscited by 16
- 2024RePair: Automated Program Repair with Process-based Feedbackcited by 16
- 2026Model Context Protocol (MCP) Tool Descriptions Are Smelly! Towards Improving AI Agent Efficiency with Augmented MCP Tool Descriptionscited by 15
- 2023Towards Generating Functionally Correct Code Edits from Natural Language Issue Descriptionscited by 14
- 2023Benchmarking Causal Study to Interpret Large Language Models for Source Codecited by 14
- 2023KNOD: Domain Knowledge Distilled Tree Decoder for Automated Program Repaircited by 13
- 2022CodeEditor: Learning to Edit Source Code with Pre-trained Modelscited by 12
- 2023Toward a Theory of Causation for Interpreting Neural Code Modelscited by 12
- 2023Multilingual Code Co-Evolution Using Large Language Modelscited by 9
- 2021SYNFIX: Automatically Fixing Syntax Errors using Compiler Diagnosticscited by 8
- 2026RovoDev Code Reviewer: A Large-Scale Online Evaluation of LLM-based Code Review Automation at Atlassiancited by 6
- 2021Autoencoders as Tools for Program Synthesiscited by 4
- 2024Learning Program Behavioral Models from Synthesized Input-Output Pairscited by 4
- 2024Leveraging Reviewer Experience in Code Review Comment Generationcited by 4
- 2021Unsupervised Learning of General-Purpose Embeddings for Code Changescited by 3
- 2023What are the Machine Learning best practices reported by practitioners on Stack Exchange?cited by 3
- 2023Enhancing Robustness of AI Offensive Code Generators via Data Augmentationcited by 3
- 2024Stability Analysis of Various Symbolic Rule Extraction Methods from Recurrent Neural Networkcited by 3
- 2024Enhancing AI-based Generation of Software Exploits with Contextual Informationcited by 3
- 2025CodeReviewQA: The Code Review Comprehension Assessment for Large Language Modelscited by 3
- 2025Generating High-Quality Datasets for Code Editing via Open-Source Language Modelscited by 2
- 2025TokDrift: When LLM Speaks in Subwords but Code Speaks in Grammarcited by 2
- 2021Data-Driven AI Model Signal-Awareness Enhancement and Introspectioncited by 1
- 2023An Exploratory Literature Study on Sharing and Energy Use of Language Models for Source Codecited by 1
- 2023Towards Automatically Addressing Self-Admitted Technical Debt: How Far Are We?cited by 1
- 2024The Rise and Fall(?) of Software Engineeringcited by 1
- 2025SnipGen: A Mining Repository Framework for Evaluating LLMs for Codecited by 1
- 2025Previously on... Automating Code Reviewcited by 1
- 2026RAG-Reflect: Agentic Retrieval-Augmented Generation with Reflections for Comment-Driven Code Maintenance on Stack Overflowcited by 1
- 2021Exploring Plausible Patches Using Source Code Embeddings in JavaScriptcited by 0
- 2022Can We Generate Shellcodes via Natural Language? An Empirical Studycited by 0
- 2023Towards machine learning guided by best practicescited by 0
- 2025Fine-Tuning Multilingual Language Models for Code Review: An Empirical Study on Industrial C# Projectscited by 0
- 2025Exploring the Potential of Large Language Models in Fine-Grained Review Comment Classificationcited by 0
- 2025Smart Paste: Automatically Fixing Copy/Paste for Google Developerscited by 0
- 2025SoK: Understanding (New) Security Issues Across AI4Code Use Casescited by 0
- 2026Towards Comprehensive Benchmarking Infrastructure for LLMs In Software Engineeringcited by 0
- 2026RAG-Reflect: Agentic Retrieval-Augmented Generation with Reflections for Comment-Driven Code Maintenance on Stack Overflow24 Apr 2026
- 2026Model Context Protocol (MCP) Tool Descriptions Are Smelly! Towards Improving AI Agent Efficiency with Augmented MCP Tool Descriptions16 Feb 2026
- 2026Towards Comprehensive Benchmarking Infrastructure for LLMs In Software Engineering28 Jan 2026
- 2026RovoDev Code Reviewer: A Large-Scale Online Evaluation of LLM-based Code Review Automation at Atlassian3 Jan 2026
- 2025SoK: Understanding (New) Security Issues Across AI4Code Use Cases20 Dec 2025
- 2025TokDrift: When LLM Speaks in Subwords but Code Speaks in Grammar16 Oct 2025
- 2025Smart Paste: Automatically Fixing Copy/Paste for Google Developers4 Oct 2025
- 2025Generating High-Quality Datasets for Code Editing via Open-Source Language Models19 Sep 2025
- 2025Previously on... Automating Code Review25 Aug 2025
- 2025Exploring the Potential of Large Language Models in Fine-Grained Review Comment Classification13 Aug 2025
- 2025Fine-Tuning Multilingual Language Models for Code Review: An Empirical Study on Industrial C# Projects25 Jul 2025
- 2025CodeReviewQA: The Code Review Comprehension Assessment for Large Language Models20 Mar 2025
38 more
- 2025SnipGen: A Mining Repository Framework for Evaluating LLMs for Code10 Feb 2025
- 2024Leveraging Reviewer Experience in Code Review Comment Generation17 Sep 2024
- 2024RePair: Automated Program Repair with Process-based Feedback21 Aug 2024
- 2024Enhancing AI-based Generation of Software Exploits with Contextual Information5 Aug 2024
- 2024Learning Program Behavioral Models from Synthesized Input-Output Pairs11 Jul 2024
- 2024The Rise and Fall(?) of Software Engineering14 Jun 2024
- 2024RepairAgent: An Autonomous, LLM-Based Agent for Program Repair25 Mar 2024
- 2024Stability Analysis of Various Symbolic Rule Extraction Methods from Recurrent Neural Network4 Feb 2024
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkit30 Dec 2023
- 2023Benchmarking Causal Study to Interpret Large Language Models for Source Code23 Aug 2023
- 2023LLaMA-Reviewer: Advancing Code Review Automation with Large Language Models through Parameter-Efficient Fine-Tuning22 Aug 2023
- 2023Towards Automatically Addressing Self-Admitted Technical Debt: How Far Are We?17 Aug 2023
- 2023Vulnerabilities in AI Code Generators: Exploring Targeted Data Poisoning Attacks4 Aug 2023
- 2023Multilingual Code Co-Evolution Using Large Language Models27 Jul 2023
- 2023An Exploratory Literature Study on Sharing and Energy Use of Language Models for Source Code5 Jul 2023
- 2023Enhancing Robustness of AI Offensive Code Generators via Data Augmentation8 Jun 2023
- 2023GrACE: Generation using Associated Code Edits23 May 2023
- 2023Text-to-SQL Error Correction with Language Models of Code22 May 2023
- 2023Towards machine learning guided by best practices29 Apr 2023
- 2023ITER: Iterative Neural Repair for Multi-Location Patches24 Apr 2023
- 2023Towards Generating Functionally Correct Code Edits from Natural Language Issue Descriptions7 Apr 2023
- 2023Toward a Theory of Causation for Interpreting Neural Code Models7 Feb 2023
- 2023KNOD: Domain Knowledge Distilled Tree Decoder for Automated Program Repair3 Feb 2023
- 2023What are the Machine Learning best practices reported by practitioners on Stack Exchange?25 Jan 2023
- 2022CodeEditor: Learning to Edit Source Code with Pre-trained Models31 Oct 2022
- 2022CoditT5: Pretraining for Source Code and Natural Language Editing10 Aug 2022
- 2022FixEval: Execution-based Evaluation of Program Fixes for Programming Problems15 Jun 2022
- 2022NatGen: Generative pre-training by "Naturalizing" source code15 Jun 2022
- 2022Deep Learning Meets Software Engineering: A Survey on Pre-Trained Models of Source Code24 May 2022
- 2022Can We Generate Shellcodes via Natural Language? An Empirical Study8 Feb 2022
- 2021Data-Driven AI Model Signal-Awareness Enhancement and Introspection10 Nov 2021
- 2021A Survey on Machine Learning Techniques for Source Code Analysis18 Oct 2021
- 2021Autoencoders as Tools for Program Synthesis16 Aug 2021
- 2021On Multi-Modal Learning of Editing Source Code15 Aug 2021
- 2021Unsupervised Learning of General-Purpose Embeddings for Code Changes3 Jun 2021
- 2021SYNFIX: Automatically Fixing Syntax Errors using Compiler Diagnostics29 Apr 2021
- 2021Shellcode_IA32: A Dataset for Automatic Shellcode Generation27 Apr 2021
- 2021Exploring Plausible Patches Using Source Code Embeddings in JavaScript31 Mar 2021
- 2024RePair: Automated Program Repair with Process-based Feedbackcited by 16
- 2024RePair: Automated Program Repair with Process-based Feedback21 Aug 2024
- 2022NatGen: Generative pre-training by "Naturalizing" source codecited by 53
- 2023LLaMA-Reviewer: Advancing Code Review Automation with Large Language Models through Parameter-Efficient Fine-Tuningcited by 47
- 2022CoditT5: Pretraining for Source Code and Natural Language Editingcited by 45
- 2021On Multi-Modal Learning of Editing Source Codecited by 25
- 2021A Survey on Machine Learning Techniques for Source Code Analysiscited by 23
- 2023Deep Learning for Code Intelligence: Survey, Benchmark and Toolkitcited by 22
- 2023Text-to-SQL Error Correction with Language Models of Codecited by 21
- 2022Deep Learning Meets Software Engineering: A Survey on Pre-Trained Models of Source Codecited by 20
- 2022FixEval: Execution-based Evaluation of Program Fixes for Programming Problemscited by 17
- 2021Shellcode_IA32: A Dataset for Automatic Shellcode Generationcited by 16
- 2023ITER: Iterative Neural Repair for Multi-Location Patchescited by 16
- 2023GrACE: Generation using Associated Code Editscited by 16
12 most cited of 45 All 45 (JSON)
- 2026Towards Comprehensive Benchmarking Infrastructure for LLMs In Software Engineering28 Jan 2026
- 2026RovoDev Code Reviewer: A Large-Scale Online Evaluation of LLM-based Code Review Automation at Atlassian3 Jan 2026
- 2025SoK: Understanding (New) Security Issues Across AI4Code Use Cases20 Dec 2025
- 2025TokDrift: When LLM Speaks in Subwords but Code Speaks in Grammar16 Oct 2025
- 2025Smart Paste: Automatically Fixing Copy/Paste for Google Developers4 Oct 2025
- 2025Generating High-Quality Datasets for Code Editing via Open-Source Language Models19 Sep 2025
- 2025Previously on... Automating Code Review25 Aug 2025
- 2025Exploring the Potential of Large Language Models in Fine-Grained Review Comment Classification13 Aug 2025
- 2025Fine-Tuning Multilingual Language Models for Code Review: An Empirical Study on Industrial C# Projects25 Jul 2025
- 2025CodeReviewQA: The Code Review Comprehension Assessment for Large Language Models20 Mar 2025
- 2025SnipGen: A Mining Repository Framework for Evaluating LLMs for Code10 Feb 2025
- 2024Leveraging Reviewer Experience in Code Review Comment Generation17 Sep 2024
12 newest of 45 All 45 (JSON)