Applying CodeBERT for Automated Program Repair of Java Simple Bugs
Not on the map. Why?
Abstract (arXiv)
Software debugging, and program repair are among the most time-consuming and labor-intensive tasks in software engineering that would benefit a lot from automation. In this paper, we propose a novel automated program repair approach based on CodeBERT, which is a transformer-based neural architecture pre-trained on large corpus of source code. We fine-tune our model on the ManySStuBs4J small and large datasets to automatically generate the fix codes. The results show that our technique accurately predicts the fixed codes implemented by the developers in 19-72% of the cases, depending on the type of datasets, in less than a second per bug. We also observe that our method can generate varied-length fixes (short and long) and can fix different types of bugs, even if only a few instances of those types of bugs exist in the training dataset.
Key facts. Cited by 44 papers in the map (data through 14 Oct 2026). First posted on arXiv 22 Mar 2021.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 4; 2022: 11; 2023: 13; 2024: 9; 2025: 5; 2026: 2.
44 papers.
Sort:
By area:
- 2022ReACC: A Retrieval-Augmented Code Completion Frameworkcited by 119
- 2021CVEfixes: Automated Collection of Vulnerabilities and Their Fixes from Open-Source Softwarecited by 91
- 2023Is ChatGPT the Ultimate Programming Assistant -- How far is it?cited by 76
- 2023How Effective Are Neural Networks for Fixing Security Vulnerabilitiescited by 52
- 2023Large Language Models and Simple, Stupid Bugscited by 45
- 2021A Survey on Machine Learning Techniques for Source Code Analysiscited by 24
- 2024CigaR: Cost-efficient Program Repair with LLMscited by 15
- 2022AutoPruner: Transformer-Based Call Graph Pruningcited by 11
- 2022VulCurator: A Vulnerability-Fixing Commit Detectorcited by 11
- 2022Who Evaluates the Evaluators? On Automatic Metrics for Assessing AI-based Offensive Code Generatorscited by 11
- 2022Detect-Localize-Repair: A Unified Framework for Learning to Debug with CodeT5cited by 10
- 2024Large Language Model Evaluation Via Multi AI Agents: Preliminary resultscited by 10
32 more
- 2023Automating Code-Related Tasks Through Transformers: The Impact of Pre-trainingcited by 8
- 2022Is this Change the Answer to that Problem? Correlating Descriptions of Bug and Code Changes for Evaluating Patch Correctnesscited by 7
- 2024Investigating the Performance of Language Models for Completing Code in Functional Programming Languages: a Haskell Case Studycited by 7
- 2021Improving Code Autocompletion with Transfer Learningcited by 6
- 2022DexBERT: Effective, Task-Agnostic and Fine-grained Representation Learning of Android Bytecodecited by 6
- 2023FlakyFix: Using Large Language Models for Predicting Flaky Test Fix Categories and Test Code Repaircited by 6
- 2023Automating the Correctness Assessment of AI-generated Code for Security Contextscited by 6
- 2021Improving Stack Overflow question title generation with copying enhanced CodeBERT model and bi-modal informationcited by 5
- 2023Multi-Granularity Detector for Vulnerability Fixescited by 4
- 2023ConDefects: A New Dataset to Address the Data Leakage Concern for LLM-based Fault Localization and Program Repaircited by 4
- 2024AI for DevSecOps: A Landscape and Future Opportunitiescited by 4
- 2022Test2Vec: An Execution Trace Embedding for Test Case Prioritizationcited by 3
- 2022Using Developer Discussions to Guide Fixing Bugs in Softwarecited by 3
- 2023Enhancing Robustness of AI Offensive Code Generators via Data Augmentationcited by 3
- 2024Enhancing AI-based Generation of Software Exploits with Contextual Informationcited by 3
- 2024LecPrompt: A Prompt-based Approach for Logical Error Correction with CodeBERTcited by 3
- 2022Diverse Title Generation for Stack Overflow Posts with Multiple Sampling Enhanced Transformercited by 2
- 2024Automated Code Fix Suggestions for Accessibility Issues in Mobile Appscited by 2
- 2024CodePurify: Defend Backdoor Attacks on Neural Code Models via Entropy-based Purificationcited by 2
- 2025SDLog: A Deep Learning Framework for Detecting Sensitive Information in Software Logscited by 2
- 2022Learning to Learn to Predict Performance Regressions in Production at Metacited by 1
- 2023Towards Automatically Addressing Self-Admitted Technical Debt: How Far Are We?cited by 1
- 2023Exploring Large Language Models in Resolving Environment-Related Crash Bugs: Localizing and Repairingcited by 1
- 2023Characterizing and Classifying Developer Forum Posts with their Intentionscited by 1
- 2025Call Me Maybe: Enhancing JavaScript Call Graph Construction using Graph Neural Networkscited by 1
- 2025Accelerating Automatic Program Repair with Dual Retrieval-Augmented Fine-Tuning and Patch Generation on Large Language Modelscited by 1
- 2023Towards Automatic Support of Software Model Evolution with Large Language~Modelscited by 0
- 2024A Data-to-Product Multimodal Conceptual Framework to Achieve Automated Software Evolution for Context-rich Intelligent Applicationscited by 0
- 2025T3: Multi-level Tree-based Automatic Program Repair with Large Language Modelscited by 0
- 2025Resource-Efficient Automatic Software Vulnerability Assessment via Knowledge Distillation and Particle Swarm Optimizationcited by 0
- 2026Improving MPI Error Detection and Repair with Large Language Models and Bug Referencescited by 0
- 2026MultiFixer: A Coordinator-Proposer Based Multi-Agent Framework For Fixing Multi-Hunk Bugscited by 0
- 2026MultiFixer: A Coordinator-Proposer Based Multi-Agent Framework For Fixing Multi-Hunk Bugs29 Jul 2026
- 2026Improving MPI Error Detection and Repair with Large Language Models and Bug References2 Apr 2026
- 2025Resource-Efficient Automatic Software Vulnerability Assessment via Knowledge Distillation and Particle Swarm Optimization30 Jul 2025
- 2025Accelerating Automatic Program Repair with Dual Retrieval-Augmented Fine-Tuning and Patch Generation on Large Language Models14 Jul 2025
- 2025T3: Multi-level Tree-based Automatic Program Repair with Large Language Models26 Jun 2025
- 2025Call Me Maybe: Enhancing JavaScript Call Graph Construction using Graph Neural Networks22 Jun 2025
- 2025SDLog: A Deep Learning Framework for Detecting Sensitive Information in Software Logs20 May 2025
- 2024CodePurify: Defend Backdoor Attacks on Neural Code Models via Entropy-based Purification26 Oct 2024
- 2024LecPrompt: A Prompt-based Approach for Logical Error Correction with CodeBERT10 Oct 2024
- 2024Automated Code Fix Suggestions for Accessibility Issues in Mobile Apps7 Aug 2024
- 2024Enhancing AI-based Generation of Software Exploits with Contextual Information5 Aug 2024
- 2024AI for DevSecOps: A Landscape and Future Opportunities7 Apr 2024
32 more
- 2024A Data-to-Product Multimodal Conceptual Framework to Achieve Automated Software Evolution for Context-rich Intelligent Applications7 Apr 2024
- 2024Large Language Model Evaluation Via Multi AI Agents: Preliminary results1 Apr 2024
- 2024Investigating the Performance of Language Models for Completing Code in Functional Programming Languages: a Haskell Case Study22 Mar 2024
- 2024CigaR: Cost-efficient Program Repair with LLMs9 Feb 2024
- 2023Characterizing and Classifying Developer Forum Posts with their Intentions21 Dec 2023
- 2023Towards Automatic Support of Software Model Evolution with Large Language~Models19 Dec 2023
- 2023Exploring Large Language Models in Resolving Environment-Related Crash Bugs: Localizing and Repairing16 Dec 2023
- 2023Automating the Correctness Assessment of AI-generated Code for Security Contexts28 Oct 2023
- 2023ConDefects: A New Dataset to Address the Data Leakage Concern for LLM-based Fault Localization and Program Repair25 Oct 2023
- 2023Towards Automatically Addressing Self-Admitted Technical Debt: How Far Are We?17 Aug 2023
- 2023FlakyFix: Using Large Language Models for Predicting Flaky Test Fix Categories and Test Code Repair21 Jun 2023
- 2023Enhancing Robustness of AI Offensive Code Generators via Data Augmentation8 Jun 2023
- 2023How Effective Are Neural Networks for Fixing Security Vulnerabilities29 May 2023
- 2023Multi-Granularity Detector for Vulnerability Fixes23 May 2023
- 2023Is ChatGPT the Ultimate Programming Assistant -- How far is it?24 Apr 2023
- 2023Large Language Models and Simple, Stupid Bugs20 Mar 2023
- 2023Automating Code-Related Tasks Through Transformers: The Impact of Pre-training8 Feb 2023
- 2022Who Evaluates the Evaluators? On Automatic Metrics for Assessing AI-based Offensive Code Generators12 Dec 2022
- 2022DexBERT: Effective, Task-Agnostic and Fine-grained Representation Learning of Android Bytecode12 Dec 2022
- 2022Detect-Localize-Repair: A Unified Framework for Learning to Debug with CodeT527 Nov 2022
- 2022Using Developer Discussions to Guide Fixing Bugs in Software11 Nov 2022
- 2022VulCurator: A Vulnerability-Fixing Commit Detector7 Sep 2022
- 2022AutoPruner: Transformer-Based Call Graph Pruning7 Sep 2022
- 2022Diverse Title Generation for Stack Overflow Posts with Multiple Sampling Enhanced Transformer24 Aug 2022
- 2022Learning to Learn to Predict Performance Regressions in Production at Meta8 Aug 2022
- 2022Is this Change the Answer to that Problem? Correlating Descriptions of Bug and Code Changes for Evaluating Patch Correctness8 Aug 2022
- 2022Test2Vec: An Execution Trace Embedding for Test Case Prioritization28 Jun 2022
- 2022ReACC: A Retrieval-Augmented Code Completion Framework15 Mar 2022
- 2021A Survey on Machine Learning Techniques for Source Code Analysis18 Oct 2021
- 2021Improving Stack Overflow question title generation with copying enhanced CodeBERT model and bi-modal information27 Sep 2021
- 2021CVEfixes: Automated Collection of Vulnerabilities and Their Fixes from Open-Source Software19 Jul 2021
- 2021Improving Code Autocompletion with Transfer Learning12 May 2021
- 2021CVEfixes: Automated Collection of Vulnerabilities and Their Fixes from Open-Source Softwarecited by 91
- 2023Is ChatGPT the Ultimate Programming Assistant -- How far is it?cited by 76
- 2023How Effective Are Neural Networks for Fixing Security Vulnerabilitiescited by 52
- 2023Large Language Models and Simple, Stupid Bugscited by 45
- 2021A Survey on Machine Learning Techniques for Source Code Analysiscited by 24
- 2024CigaR: Cost-efficient Program Repair with LLMscited by 15
- 2022AutoPruner: Transformer-Based Call Graph Pruningcited by 11
- 2022VulCurator: A Vulnerability-Fixing Commit Detectorcited by 11
- 2022Who Evaluates the Evaluators? On Automatic Metrics for Assessing AI-based Offensive Code Generatorscited by 11
- 2022Detect-Localize-Repair: A Unified Framework for Learning to Debug with CodeT5cited by 10
- 2023Automating Code-Related Tasks Through Transformers: The Impact of Pre-trainingcited by 8
- 2022Is this Change the Answer to that Problem? Correlating Descriptions of Bug and Code Changes for Evaluating Patch Correctnesscited by 7
12 most cited of 37 All 37 (JSON)
- 2026Improving MPI Error Detection and Repair with Large Language Models and Bug References2 Apr 2026
- 2025Call Me Maybe: Enhancing JavaScript Call Graph Construction using Graph Neural Networks22 Jun 2025
- 2025SDLog: A Deep Learning Framework for Detecting Sensitive Information in Software Logs20 May 2025
- 2024LecPrompt: A Prompt-based Approach for Logical Error Correction with CodeBERT10 Oct 2024
- 2024Automated Code Fix Suggestions for Accessibility Issues in Mobile Apps7 Aug 2024
- 2024Enhancing AI-based Generation of Software Exploits with Contextual Information5 Aug 2024
- 2024AI for DevSecOps: A Landscape and Future Opportunities7 Apr 2024
- 2024A Data-to-Product Multimodal Conceptual Framework to Achieve Automated Software Evolution for Context-rich Intelligent Applications7 Apr 2024
- 2024Investigating the Performance of Language Models for Completing Code in Functional Programming Languages: a Haskell Case Study22 Mar 2024
- 2024CigaR: Cost-efficient Program Repair with LLMs9 Feb 2024
- 2023Characterizing and Classifying Developer Forum Posts with their Intentions21 Dec 2023
- 2023Towards Automatic Support of Software Model Evolution with Large Language~Models19 Dec 2023
12 newest of 37 All 37 (JSON)