InferFix: End-to-End Program Repair with LLMs
Not on the map. Why?
Abstract (arXiv)
Software development life cycle is profoundly influenced by bugs: their introduction, identification, and eventual resolution account for a significant portion of software cost. This has motivated software engineering researchers and practitioners to propose different approaches for automating the identification and repair of software defects. Large language models have been adapted to the program repair task through few-shot demonstration learning and instruction prompting, treating this as an infilling task. However, these models have only focused on learning general bug-fixing patterns for uncategorized bugs mined from public repositories. In this paper, we propose InferFix: a transformer-based program repair framework paired with a state-of-the-art static analyzer to fix critical security and performance bugs. InferFix combines a Retriever -- transformer encoder model pretrained via contrastive learning objective, which aims at searching for semantically equivalent bugs and corresponding fixes; and a Generator -- a large language model (Codex Cushman) finetuned on supervised bug-fix data with prompts augmented via bug type annotations and semantically similar fixes retrieved from an external non-parametric memory. To train and evaluate our approach, we curated InferredBugs, a novel, metadata-rich dataset of bugs extracted by executing the Infer static analyzer on the change histories of thousands of Java and C# repositories. Our evaluation demonstrates that InferFix outperforms strong LLM baselines, with a top-1 accuracy of 65.6% for generating fixes in C# and 76.8% in Java. We discuss the deployment of InferFix alongside Infer at Microsoft which offers an end-to-end solution for detection, classification, and localization of bugs, as well as fixing and validation of candidate patches, integrated in the continuous integration pipeline to automate the software development workflow.
Key facts. Cited by 113 papers in the map (data through 7 Oct 2026). First posted on arXiv 13 Mar 2023.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2023: 12; 2024: 40; 2025: 41; 2026: 20.
113 papers.
Sort:
By area:
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
- 2023A Survey on Large Language Model (LLM) Security and Privacy: The Good, the Bad, and the Uglycited by 380
- 2024Retrieval-Augmented Generation for AI-Generated Content: A Surveycited by 352
- 2024CRUXEval: A Benchmark for Code Reasoning, Understanding and Executioncited by 294
- 2024AutoCodeRover: Autonomous Program Improvementcited by 272
- 2024Debug like a Human: A Large Language Model Debugger via Verifying Runtime Execution Step-by-stepcited by 123
- 2023Retrieving Multimodal Information for Augmented Generation: A Surveycited by 84
- 2024When LLMs Meet Cybersecurity: A Systematic Literature Reviewcited by 70
- 2024Large Language Models for Cyber Security: A Systematic Literature Reviewcited by 65
- 2024SelfCodeAlign: Self-Alignment for Code Generationcited by 61
- 2024Bugs in Large Language Models Generated Code: An Empirical Studycited by 59
- 2023RepairLLaMA: Efficient Representations and Fine-Tuned Adapters for Program Repaircited by 50
38 more
- 2023Can It Edit? Evaluating the Ability of Large Language Models to Follow Code Editing Instructionscited by 46
- 2023SelfEvolve: A Code Evolution Framework via Large Language Modelscited by 43
- 2024Robustifying Safety-Aligned Large Language Models through Clean Data Curationcited by 43
- 2026Endless Terminals: Scaling RL Environments for Terminal Agentscited by 43
- 2023A New Era in Software Security: Towards Self-Healing Software via Large Language Models and Formal Verificationcited by 42
- 2024HumanEval Pro and MBPP Pro: Evaluating Large Language Models on Self-invoking Code Generationcited by 39
- 2024Can Large Language Models Understand Symbolic Graphics Programs?cited by 32
- 2024MHPP: Exploring the Capabilities and Limitations of Language Models Beyond Basic Code Generationcited by 25
- 2024How secure is AI-generated Code: A Large-Scale Comparison of Large Language Modelscited by 23
- 2024The Future of AI-Driven Software Engineeringcited by 23
- 2025Retrieval-Augmented Code Generation: A Survey with Focus on Repository-Level Approachescited by 20
- 2024Increasing the LLM Accuracy for Question Answering: Ontologies to the Rescue!cited by 18
- 2026SWE-Universe: Scale Real-World Verifiable Environments to Millionscited by 16
- 2024Embedding Large Language Models into Extended Reality: Opportunities and Challenges for Inclusion, Engagement, and Privacycited by 14
- 2024LiCoEval: Evaluating LLMs on License Compliance in Code Generationcited by 13
- 2024Aligning the Objective of LLM-based Program Repaircited by 12
- 2024Diffusion On Syntax Trees For Program Synthesiscited by 10
- 2025CASTLE: Benchmarking Dataset for Static Code Analyzers and LLMs towards CWE Detectioncited by 10
- 2025CXXCrafter: An LLM-Based Agent for Automated C/C++ Open Source Software Buildingcited by 10
- 2024Python is Not Always the Best Choice: Embracing Multilingual Program of Thoughtscited by 8
- 2024AutoCoder: Enhancing Code Large Language Model with textscAIEV-Instructcited by 8
- 2025Do LLMs Consider Security? An Empirical Study on Responses to Programming Questionscited by 8
- 2025OSVBench: Benchmarking LLMs on Specification Generation Tasks for Operating System Verificationcited by 8
- 2025Retrieval-Augmented Generation in Industry: An Interview Study on Use Cases, Requirements, Challenges, and Evaluationcited by 8
- 2024MetRex: A Benchmark for Verilog Code Metric Reasoning Using LLMscited by 7
- 2024Is Next Token Prediction Sufficient for GPT? Exploration on Code Logic Comprehensioncited by 6
- 2024Helping LLMs Improve Code Generation Using Feedback from Testing and Static Analysiscited by 6
- 2024How Propense Are Large Language Models at Producing Code Smells? A Benchmarking Studycited by 6
- 2025Retrieval-Augmented Code Review Comment Generationcited by 6
- 2023Frustrated with Code Quality Issues? LLMs can Help!cited by 5
- 2023Exploring the Limits of ChatGPT in Software Security Applicationscited by 5
- 2024Memory-Efficient Large Language Models for Program Repair with Semantic-Guided Patch Generationcited by 5
- 2025Logic Meets Magic: LLMs Cracking Smart Contract Vulnerabilitiescited by 5
- 2025PredicateFix: Repairing Static Analysis Alerts with Bridging Predicatescited by 5
- 2025Impact-driven Context Filtering For Cross-file Code Completioncited by 5
- 2024Leveraging Reviewer Experience in Code Review Comment Generationcited by 4
- 2024SC-Bench: A Large-Scale Dataset for Smart Contract Auditingcited by 4
- 2024Repository Structure-Aware Training Makes SLMs Better Issue Resolvercited by 4
50 most cited of 113 All 113 (JSON)
- 2026CS-Guard: Benchmarking LLM Guardrails for Code Generation Security9 Sep 2026
- 2026Rethinking Automated Program Repair: The Impact of Bug Complexity, Fault Localization, and LLM Cost-efficiency14 Aug 2026
- 2026How Do LLMs Read Bug Reports? An Empirical Study of Attention in LLMs for Automated Program Repair28 Jul 2026
- 2026TerraRepair: A Tool-Grounded LLM Agent for Infrastructure-as-Code Repair13 Jul 2026
- 2026A Few Teacher Steps Go a Long Way: Cost-Efficient On-Policy Data Augmentation for Agent Post-Training6 Jul 2026
- 2026An Exploratory Study on LLM-Generated Code and Comments in Code Repositories2 Jul 2026
- 2026uGen: An Agentic Framework for Generating Microarchitectural Attack PoCs15 May 2026
- 2026AutoResearch: An Execution-Grounded Multi-Agent Framework for Reliable Research Workflow Automation4 May 2026
- 2026How LLMs Fail and Generalize in RTL Coding for Hardware Design?26 Apr 2026
- 2026Precise Debugging Benchmark: Is Your Model Debugging or Regenerating?19 Apr 2026
- 2026LogicEval: A Systematic Framework for Evaluating Automated Repair Techniques for Logical Vulnerabilities in Real-World Software14 Apr 2026
- 2026AgentForge: Execution-Grounded Multi-Agent LLM Framework for Autonomous Software Engineering13 Apr 2026
38 more
- 2026CIAO - Code In Architecture Out - Automated Software Architecture Documentation with Large Language Models9 Apr 2026
- 2026SemRep: Generative Code Representation Learning with Code Transformations13 Mar 2026
- 2026VulnAgent-R2: Evidence-Calibrated Multi-Agent Auditing for Repository-Level Vulnerability Detection11 Mar 2026
- 2026CodeScout: Contextual Problem Statement Enhancement for Software Agents5 Mar 2026
- 2026SWE-Universe: Scale Real-World Verifiable Environments to Millions2 Feb 2026
- 2026RACC: Representation-Aware Coverage Criteria for LLM Safety Testing2 Feb 2026
- 2026RvB: Automating AI System Hardening via Iterative Red-Blue Games27 Jan 2026
- 2026Endless Terminals: Scaling RL Environments for Terminal Agents23 Jan 2026
- 2025Toward Explaining Large Language Models in Software Engineering Tasks23 Dec 2025
- 2025PerfCoder: Large Language Models for Interpretable Code Performance Optimization16 Dec 2025
- 2025Multi-Agent Systems for Dataset Adaptation in Software Engineering: Capabilities, Limitations, and Future Directions26 Nov 2025
- 2025Exploring the Feasibility of End-to-End Large Language Model as a Compiler6 Nov 2025
- 2025Collaborative Agents for Automated Program Repair in Ruby6 Nov 2025
- 2025textttReMind: Understanding Deductive Code Reasoning in LLMs1 Nov 2025
- 2025Automating Android Build Repair: Bridging the Reasoning-Execution Gap in LLM Agents with Domain-Specific Tools9 Oct 2025
- 2025AppForge: From Assistant to Independent Developer -- Are GPTs Ready for Software Development?9 Oct 2025
- 2025Secure-Instruct: An Automated Pipeline for Synthesizing Instruction-Tuning Datasets Using LLMs for Secure Code Generation8 Oct 2025
- 2025Retrieval-Augmented Code Generation: A Survey with Focus on Repository-Level Approaches6 Oct 2025
- 2025ALMAS: an Autonomous LLM-based Multi-Agent Software Engineering Framework3 Oct 2025
- 2025Security smells in infrastructure as code: a taxonomy update beyond the seven sins23 Sep 2025
- 2025Generating High-Quality Datasets for Code Editing via Open-Source Language Models19 Sep 2025
- 2025From Benchmark Data To Applicable Program Repair: An Experience Report22 Aug 2025
- 2025REFN: A Reinforcement-Learning-From-Network Framework against 1-day/n-day Exploitations14 Aug 2025
- 2025Retrieval-Augmented Generation in Industry: An Interview Study on Use Cases, Requirements, Challenges, and Evaluation11 Aug 2025
- 2025Impact-driven Context Filtering For Cross-file Code Completion8 Aug 2025
- 2025Meta-RAG on Large Codebases Using Code Summarization4 Aug 2025
- 2025Resource-Efficient Automatic Software Vulnerability Assessment via Knowledge Distillation and Particle Swarm Optimization30 Jul 2025
- 2025Can LLMs Generate User Stories and Assess Their Quality?20 Jul 2025
- 2025Large Language Models in Cybersecurity: Applications, Vulnerabilities, and Defense Techniques18 Jul 2025
- 2025Enhancing Temporal Sensitivity of Large Language Model for Recommendation with Counterfactual Tuning3 Jul 2025
- 2025Retrieval-Augmented Code Review Comment Generation13 Jun 2025
- 2025VeriLoC: Line-of-Code Level Prediction of Hardware Design Quality from Verilog Code8 Jun 2025
- 2025ReGA: Model-Based Safeguard for LLMs via Representation-Guided Abstraction2 Jun 2025
- 2025CXXCrafter: An LLM-Based Agent for Automated C/C++ Open Source Software Building27 May 2025
- 2025NL-Debugging: Exploiting Natural Language as an Intermediate Representation for Code Debugging21 May 2025
- 2025Self-Bootstrapping Automated Program Repair: Using LLMs to Generate and Evaluate Synthetic Training Data for Bug Repair12 May 2025
- 2025OSVBench: Benchmarking LLMs on Specification Generation Tasks for Operating System Verification29 Apr 2025
- 2025DR.FIX: Automatically Fixing Data Races at Industry Scale22 Apr 2025
50 newest of 113 All 113 (JSON)
- 2025CXXCrafter: An LLM-Based Agent for Automated C/C++ Open Source Software Buildingcited by 10
- 2025ALMAS: an Autonomous LLM-based Multi-Agent Software Engineering Frameworkcited by 4
- 2026CodeScout: Contextual Problem Statement Enhancement for Software Agentscited by 4
- 2026AgentForge: Execution-Grounded Multi-Agent LLM Framework for Autonomous Software Engineeringcited by 4
- 2025Unlocking LLM Repair Capabilities Through Cross-Language Translation and Multi-Agent Refinementcited by 3
- 2026A Few Teacher Steps Go a Long Way: Cost-Efficient On-Policy Data Augmentation for Agent Post-Trainingcited by 2
- 2025Collaborative Agents for Automated Program Repair in Rubycited by 1
- 2025Multi-Agent Systems for Dataset Adaptation in Software Engineering: Capabilities, Limitations, and Future Directionscited by 1
- 2026VulnAgent-R2: Evidence-Calibrated Multi-Agent Auditing for Repository-Level Vulnerability Detectioncited by 1
- 2025Automating Android Build Repair: Bridging the Reasoning-Execution Gap in LLM Agents with Domain-Specific Toolscited by 0
- 2026uGen: An Agentic Framework for Generating Microarchitectural Attack PoCscited by 0
- 2026AutoResearch: An Execution-Grounded Multi-Agent Framework for Reliable Research Workflow Automationcited by 0
12 most cited of 13 All 13 (JSON)
- 2026TerraRepair: A Tool-Grounded LLM Agent for Infrastructure-as-Code Repair13 Jul 2026
- 2026A Few Teacher Steps Go a Long Way: Cost-Efficient On-Policy Data Augmentation for Agent Post-Training6 Jul 2026
- 2026uGen: An Agentic Framework for Generating Microarchitectural Attack PoCs15 May 2026
- 2026AutoResearch: An Execution-Grounded Multi-Agent Framework for Reliable Research Workflow Automation4 May 2026
- 2026AgentForge: Execution-Grounded Multi-Agent LLM Framework for Autonomous Software Engineering13 Apr 2026
- 2026VulnAgent-R2: Evidence-Calibrated Multi-Agent Auditing for Repository-Level Vulnerability Detection11 Mar 2026
- 2026CodeScout: Contextual Problem Statement Enhancement for Software Agents5 Mar 2026
- 2025Multi-Agent Systems for Dataset Adaptation in Software Engineering: Capabilities, Limitations, and Future Directions26 Nov 2025
- 2025Collaborative Agents for Automated Program Repair in Ruby6 Nov 2025
- 2025Automating Android Build Repair: Bridging the Reasoning-Execution Gap in LLM Agents with Domain-Specific Tools9 Oct 2025
- 2025ALMAS: an Autonomous LLM-based Multi-Agent Software Engineering Framework3 Oct 2025
- 2025CXXCrafter: An LLM-Based Agent for Automated C/C++ Open Source Software Building27 May 2025
12 newest of 13 All 13 (JSON)
- 2024Retrieval-Augmented Generation for AI-Generated Content: A Surveycited by 352
- 2025Retrieval-Augmented Code Generation: A Survey with Focus on Repository-Level Approachescited by 20
- 2025Retrieval-Augmented Generation in Industry: An Interview Study on Use Cases, Requirements, Challenges, and Evaluationcited by 8
- 2025Retrieval-Augmented Code Review Comment Generationcited by 6
- 2025PredicateFix: Repairing Static Analysis Alerts with Bridging Predicatescited by 5
- 2025Impact-driven Context Filtering For Cross-file Code Completioncited by 5
- 2024SuperCoder2.0: Technical Report on Exploring the feasibility of LLMs as Autonomous Programmercited by 3
- 2024A RAG Method for Source Code Inquiry Tailored to Long-Context LLMscited by 0
- 2025Retrieval-Augmented Code Generation: A Survey with Focus on Repository-Level Approaches6 Oct 2025
- 2025Retrieval-Augmented Generation in Industry: An Interview Study on Use Cases, Requirements, Challenges, and Evaluation11 Aug 2025
- 2025Impact-driven Context Filtering For Cross-file Code Completion8 Aug 2025
- 2025Retrieval-Augmented Code Review Comment Generation13 Jun 2025
- 2025PredicateFix: Repairing Static Analysis Alerts with Bridging Predicates15 Mar 2025
- 2024SuperCoder2.0: Technical Report on Exploring the feasibility of LLMs as Autonomous Programmer17 Sep 2024
- 2024A RAG Method for Source Code Inquiry Tailored to Long-Context LLMs9 Apr 2024
- 2024Retrieval-Augmented Generation for AI-Generated Content: A Survey29 Feb 2024
- 2024Data to Defense: The Role of Curation in Customizing LLMs Against Jailbreaking Attackscited by 2
- 2026RvB: Automating AI System Hardening via Iterative Red-Blue Gamescited by 2
- 2025ReGA: Model-Based Safeguard for LLMs via Representation-Guided Abstractioncited by 1
- 2024CodePurify: Defend Backdoor Attacks on Neural Code Models via Entropy-based Purificationcited by 0
- 2026RACC: Representation-Aware Coverage Criteria for LLM Safety Testingcited by 0
- 2026CS-Guard: Benchmarking LLM Guardrails for Code Generation Securitycited by 0
- 2026CS-Guard: Benchmarking LLM Guardrails for Code Generation Security9 Sep 2026
- 2026RACC: Representation-Aware Coverage Criteria for LLM Safety Testing2 Feb 2026
- 2026RvB: Automating AI System Hardening via Iterative Red-Blue Games27 Jan 2026
- 2025ReGA: Model-Based Safeguard for LLMs via Representation-Guided Abstraction2 Jun 2025
- 2024CodePurify: Defend Backdoor Attacks on Neural Code Models via Entropy-based Purification26 Oct 2024
- 2024Data to Defense: The Role of Curation in Customizing LLMs Against Jailbreaking Attacks3 Oct 2024
- 2024Python is Not Always the Best Choice: Embracing Multilingual Program of Thoughtscited by 8
- 2024MetRex: A Benchmark for Verilog Code Metric Reasoning Using LLMscited by 7
- 2025Building A Proof-Oriented Programmer That Is 64% Better Than GPT-4o Under Data Scarcitycited by 2
- 2025textttReMind: Understanding Deductive Code Reasoning in LLMscited by 2
- 2025Enhancing Temporal Sensitivity of Large Language Model for Recommendation with Counterfactual Tuningcited by 0
- 2025textttReMind: Understanding Deductive Code Reasoning in LLMs1 Nov 2025
- 2025Enhancing Temporal Sensitivity of Large Language Model for Recommendation with Counterfactual Tuning3 Jul 2025
- 2025Building A Proof-Oriented Programmer That Is 64% Better Than GPT-4o Under Data Scarcity17 Feb 2025
- 2024MetRex: A Benchmark for Verilog Code Metric Reasoning Using LLMs5 Nov 2024
- 2024Python is Not Always the Best Choice: Embracing Multilingual Program of Thoughts16 Feb 2024
- 2026Endless Terminals: Scaling RL Environments for Terminal Agentscited by 43
- 2025Secure-Instruct: An Automated Pipeline for Synthesizing Instruction-Tuning Datasets Using LLMs for Secure Code Generationcited by 2
- 2025Self-Bootstrapping Automated Program Repair: Using LLMs to Generate and Evaluate Synthetic Training Data for Bug Repaircited by 0
- 2026Endless Terminals: Scaling RL Environments for Terminal Agents23 Jan 2026
- 2025Secure-Instruct: An Automated Pipeline for Synthesizing Instruction-Tuning Datasets Using LLMs for Secure Code Generation8 Oct 2025
- 2025Self-Bootstrapping Automated Program Repair: Using LLMs to Generate and Evaluate Synthetic Training Data for Bug Repair12 May 2025
- 2024Diffusion On Syntax Trees For Program Synthesiscited by 10
- 2024Diffusion On Syntax Trees For Program Synthesis30 May 2024
- 2023Large Language Models for Software Engineering: A Systematic Literature Reviewcited by 389
- 2023A Survey on Large Language Model (LLM) Security and Privacy: The Good, the Bad, and the Uglycited by 380
- 2024CRUXEval: A Benchmark for Code Reasoning, Understanding and Executioncited by 294
- 2024AutoCodeRover: Autonomous Program Improvementcited by 272
- 2024Debug like a Human: A Large Language Model Debugger via Verifying Runtime Execution Step-by-stepcited by 123
- 2023Retrieving Multimodal Information for Augmented Generation: A Surveycited by 84
- 2024When LLMs Meet Cybersecurity: A Systematic Literature Reviewcited by 70
- 2024Large Language Models for Cyber Security: A Systematic Literature Reviewcited by 65
- 2024SelfCodeAlign: Self-Alignment for Code Generationcited by 61
- 2024Bugs in Large Language Models Generated Code: An Empirical Studycited by 59
- 2023RepairLLaMA: Efficient Representations and Fine-Tuned Adapters for Program Repaircited by 50
- 2023Can It Edit? Evaluating the Ability of Large Language Models to Follow Code Editing Instructionscited by 46
12 most cited of 75 All 75 (JSON)
- 2026Rethinking Automated Program Repair: The Impact of Bug Complexity, Fault Localization, and LLM Cost-efficiency14 Aug 2026
- 2026How Do LLMs Read Bug Reports? An Empirical Study of Attention in LLMs for Automated Program Repair28 Jul 2026
- 2026An Exploratory Study on LLM-Generated Code and Comments in Code Repositories2 Jul 2026
- 2026How LLMs Fail and Generalize in RTL Coding for Hardware Design?26 Apr 2026
- 2026Precise Debugging Benchmark: Is Your Model Debugging or Regenerating?19 Apr 2026
- 2026LogicEval: A Systematic Framework for Evaluating Automated Repair Techniques for Logical Vulnerabilities in Real-World Software14 Apr 2026
- 2026CIAO - Code In Architecture Out - Automated Software Architecture Documentation with Large Language Models9 Apr 2026
- 2026SemRep: Generative Code Representation Learning with Code Transformations13 Mar 2026
- 2026SWE-Universe: Scale Real-World Verifiable Environments to Millions2 Feb 2026
- 2025Toward Explaining Large Language Models in Software Engineering Tasks23 Dec 2025
- 2025PerfCoder: Large Language Models for Interpretable Code Performance Optimization16 Dec 2025
- 2025Exploring the Feasibility of End-to-End Large Language Model as a Compiler6 Nov 2025
12 newest of 75 All 75 (JSON)