TBar: Revisiting Template-based Automated Program Repair
Not on the map. Why?
Abstract (arXiv)
We revisit the performance of template-based APR to build comprehensive knowledge about the effectiveness of fix patterns, and to highlight the importance of complementary steps such as fault localization or donor code retrieval. To that end, we first investigate the literature to collect, summarize and label recurrently-used fix patterns. Based on the investigation, we build TBar, a straightforward APR tool that systematically attempts to apply these fix patterns to program bugs. We thoroughly evaluate TBar on the Defects4J benchmark. In particular, we assess the actual qualitative and quantitative diversity of fix patterns, as well as their effectiveness in yielding plausible or correct patches. Eventually, we find that, assuming a perfect fault localization, TBar correctly/plausibly fixes 74/101 bugs. Replicating a standard and practical pipeline of APR assessment, we demonstrate that TBar correctly fixes 43 bugs from Defects4J, an unprecedented performance in the literature (including all approaches, i.e., template-based, stochastic mutation-based or synthesis-based APR).
Key facts. Cited by 64 papers in the map (data through 7 Oct 2026). First posted on arXiv 20 Mar 2019.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 4; 2022: 0; 2023: 11; 2024: 20; 2025: 16; 2026: 13.
64 papers.
Sort:
By area:
- 2024Agentless: Demystifying LLM-based Software Engineering Agentscited by 400
- 2024RepairAgent: An Autonomous, LLM-Based Agent for Program Repaircited by 225
- 2023Keep the Conversation Going: Fixing 162 out of 337 bugs for 0.42 each using ChatGPTcited by 125
- 2024CodeR: Issue Resolving with Multi-Agent and Task Graphscited by 89
- 2021CURE: Code-Aware Neural Machine Translation for Automatic Program Repaircited by 85
- 2024DebugBench: Evaluating Debugging Capability of Large Language Modelscited by 74
- 2021A Syntax-Guided Edit Decoder for Neural Program Repaircited by 57
- 2023Copiloting the Copilots: Fusing Large Language Models with Completion Engines for Automated Program Repaircited by 55
- 2023Conversational Automated Program Repaircited by 41
- 2024UniDebugger: Hierarchical Multi-Agent Framework for Unified Software Debuggingcited by 35
- 2023Natural Language Generation and Understanding of Big Code for AI-Assisted Programming: A Reviewcited by 32
- 2024HDLdebugger: Streamlining HDL debugging with Large Language Modelscited by 25
38 more
- 2024Rango: Adaptive Retrieval-Augmented Proving for Automated Software Verificationcited by 25
- 2023ITER: Iterative Neural Repair for Multi-Location Patchescited by 16
- 2025Understanding Automated Program Repair Agents Through the Lens of Traceability: An Empirical Studycited by 16
- 2023BEAGLE: Forensics of Deep Learning Backdoor Attack for Better Defensecited by 15
- 2023KNOD: Domain Knowledge Distilled Tree Decoder for Automated Program Repaircited by 13
- 2024COAST: Enhancing the Code Debugging Ability of LLMs through Communicative Agent Based Data Synthesiscited by 13
- 2024Aligning the Objective of LLM-based Program Repaircited by 12
- 2023Invalidator: Automated Patch Correctness Assessment via Semantic and Syntactic Reasoningcited by 11
- 2024Enhanced Automated Code Vulnerability Repair using Large Language Modelscited by 10
- 2024Enhancing Automated Program Repair with Solution Designcited by 8
- 2025Dissecting the SWE-Bench Leaderboards: Profiling Submitters and Architectures of LLM- and Agent-Based Repair Systemscited by 8
- 2023Revisiting the Plastic Surgery Hypothesis via Large Language Modelscited by 7
- 2024Automated Program Repair: Emerging trends pose and expose problems for benchmarkscited by 7
- 2024Can GPT-O1 Kill All Bugs? An Evaluation of GPT-Family LLMs on QuixBugscited by 7
- 2025The Art of Repair: Optimizing Iterative Program Repair with Instruction-Tuned Modelscited by 7
- 2025A Comprehensive Empirical Evaluation of Agent Frameworks on Code-centric Software Engineering Taskscited by 7
- 2025Repair-R1: Better Test Before Repaircited by 6
- 2023Exploring the Limits of ChatGPT in Software Security Applicationscited by 5
- 2024Towards Reliable Evaluation of Neural Program Repair with Natural Robustness Testingcited by 5
- 2024Memory-Efficient Large Language Models for Program Repair with Semantic-Guided Patch Generationcited by 5
- 2021Predicting Patch Correctness Based on the Similarity of Failing Test Casescited by 4
- 2024Integrating Various Software Artifacts for Better LLM-based Bug Localization and Program Repaircited by 4
- 2024QEDCartographer: Automating Formal Verification Using Reward-Free Reinforcement Learningcited by 3
- 2025Evaluating the Generalizability of LLMs in Automated Program Repaircited by 3
- 2025DynaFix: Iterative Automated Program Repair Driven by Execution-Level Dynamic Informationcited by 3
- 2025Fast, Fine-Grained Equivalence Checking for Neural Decompilerscited by 2
- 2025RA-Gen: A Controllable Code Generation Framework Using ReAct for Multi-Agent Task Executioncited by 2
- 2026VulnResolver: A Hybrid Agent Framework for LLM-Based Automated Vulnerability Issue Resolutioncited by 2
- 2021A Fault Localization and Debugging Support Framework driven by Bug Tracking Datacited by 1
- 2024PatUntrack: Automated Generating Patch Examples for Issue Reports without Tracked Insecure Codecited by 1
- 2025A Multi-Dataset Evaluation of Models for Automated Vulnerability Repaircited by 1
- 2025From Empirical Evaluation to Context-Aware Enhancement: Repairing Regression Errors with LLMscited by 1
- 2025Accelerating Automatic Program Repair with Dual Retrieval-Augmented Fine-Tuning and Patch Generation on Large Language Modelscited by 1
- 2025Beyond Function-Level Search: Repository-Aware Dual-Encoder Code Retrieval with Adversarial Verificationcited by 1
- 2026RAVEN: Agentic RAG for Automated Vulnerability Repaircited by 1
- 2026Multi-Perspective Agentic Program Repair via Code Property Graphs and Temporal Execution Graphscited by 1
- 2023Contrastive Prompt Learning-based Code Search based on Interaction Matrixcited by 0
- 2024Peer-aided Repairer: Empowering Large Language Models to Repair Advanced Student Assignmentscited by 0
50 most cited of 64 All 64 (JSON)
- 2026Blockchain-Enabled Artificial Intelligence and AI Agents for Secure Data Sharing and Cybersecurity Applications23 Sep 2026
- 2026AdaRepair-Mem: Adaptive Experience Orchestration for Repository-Level Program Repair17 Sep 2026
- 2026Benchmarking Automated Security Patch Backporting: How Far Are We?18 Aug 2026
- 2026The Order Is the Guarantee: Verifier-Budgeted Code Deletion with Static-First Learned Proposals5 Aug 2026
- 2026TraceCAD: Trace-Guided Repair for Agentic CAD Generation4 Aug 2026
- 2026Multi-Perspective Agentic Program Repair via Code Property Graphs and Temporal Execution Graphs14 Jul 2026
- 2026Diff-Based Code Corruption using LLMs for Large-Scale Bugfix Benchmarking27 Jun 2026
- 2026RAVEN: Agentic RAG for Automated Vulnerability Repair21 Jun 2026
- 2026Exploration Structure in LLM Agents for Multi-File Change Localization10 Jun 2026
- 2026BLAgent: Agentic RAG for File-Level Bug Localization18 May 2026
- 2026ContraFix: Skill-Enhanced Contrastive Runtime Analysis for Vulnerability Repair17 May 2026
- 2026MemRepair: Hierarchical Memory for Agentic Repository-Level Vulnerability Repair17 May 2026
38 more
- 2026VulnResolver: A Hybrid Agent Framework for LLM-Based Automated Vulnerability Issue Resolution20 Jan 2026
- 2025DynaFix: Iterative Automated Program Repair Driven by Execution-Level Dynamic Information31 Dec 2025
- 2025A Comprehensive Empirical Evaluation of Agent Frameworks on Code-centric Software Engineering Tasks2 Nov 2025
- 2025Beyond Function-Level Search: Repository-Aware Dual-Encoder Code Retrieval with Adversarial Verification16 Oct 2025
- 2025RA-Gen: A Controllable Code Generation Framework Using ReAct for Multi-Agent Task Execution9 Oct 2025
- 2025Repair-R1: Better Test Before Repair30 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
- 2025Dissecting the SWE-Bench Leaderboards: Profiling Submitters and Architectures of LLM- and Agent-Based Repair Systems20 Jun 2025
- 2025From Empirical Evaluation to Context-Aware Enhancement: Repairing Regression Errors with LLMs16 Jun 2025
- 2025Understanding Automated Program Repair Agents Through the Lens of Traceability: An Empirical Study10 Jun 2025
- 2025A Multi-Dataset Evaluation of Models for Automated Vulnerability Repair5 Jun 2025
- 2025Self-Bootstrapping Automated Program Repair: Using LLMs to Generate and Evaluate Synthetic Training Data for Bug Repair12 May 2025
- 2025The Art of Repair: Optimizing Iterative Program Repair with Instruction-Tuned Models5 May 2025
- 2025Evaluating the Generalizability of LLMs in Automated Program Repair12 Mar 2025
- 2025A Match Made in Heaven? AI-driven Matching of Vulnerabilities and Security Unit Tests5 Feb 2025
- 2025Fast, Fine-Grained Equivalence Checking for Neural Decompilers8 Jan 2025
- 2024Rango: Adaptive Retrieval-Augmented Proving for Automated Software Verification18 Dec 2024
- 2024Integrating Various Software Artifacts for Better LLM-based Bug Localization and Program Repair5 Dec 2024
- 2024Memory-Efficient Large Language Models for Program Repair with Semantic-Guided Patch Generation22 Oct 2024
- 2024Can GPT-O1 Kill All Bugs? An Evaluation of GPT-Family LLMs on QuixBugs16 Sep 2024
- 2024Enhancing Automated Program Repair with Solution Design22 Aug 2024
- 2024QEDCartographer: Automating Formal Verification Using Reward-Free Reinforcement Learning17 Aug 2024
- 2024PatUntrack: Automated Generating Patch Examples for Issue Reports without Tracked Insecure Code16 Aug 2024
- 2024COAST: Enhancing the Code Debugging Ability of LLMs through Communicative Agent Based Data Synthesis9 Aug 2024
- 2024Agentless: Demystifying LLM-based Software Engineering Agents1 Jul 2024
- 2024NARRepair: Non-Autoregressive Code Generation Model for Automatic Program Repair24 Jun 2024
- 2024CodeR: Issue Resolving with Multi-Agent and Task Graphs3 Jun 2024
- 2024Automated Program Repair: Emerging trends pose and expose problems for benchmarks8 May 2024
- 2024UniDebugger: Hierarchical Multi-Agent Framework for Unified Software Debugging26 Apr 2024
- 2024Aligning the Objective of LLM-based Program Repair13 Apr 2024
- 2024Peer-aided Repairer: Empowering Large Language Models to Repair Advanced Student Assignments2 Apr 2024
- 2024RepairAgent: An Autonomous, LLM-Based Agent for Program Repair25 Mar 2024
- 2024HDLdebugger: Streamlining HDL debugging with Large Language Models18 Mar 2024
- 2024Towards Reliable Evaluation of Neural Program Repair with Natural Robustness Testing19 Feb 2024
- 2024DebugBench: Evaluating Debugging Capability of Large Language Models9 Jan 2024
- 2024Enhanced Automated Code Vulnerability Repair using Large Language Models8 Jan 2024
- 2023Exploring the Limits of ChatGPT in Software Security Applications8 Dec 2023
50 newest of 64 All 64 (JSON)
- 2024Agentless: Demystifying LLM-based Software Engineering Agentscited by 400
- 2024RepairAgent: An Autonomous, LLM-Based Agent for Program Repaircited by 225
- 2024UniDebugger: Hierarchical Multi-Agent Framework for Unified Software Debuggingcited by 35
- 2025Understanding Automated Program Repair Agents Through the Lens of Traceability: An Empirical Studycited by 16
- 2024COAST: Enhancing the Code Debugging Ability of LLMs through Communicative Agent Based Data Synthesiscited by 13
- 2025Dissecting the SWE-Bench Leaderboards: Profiling Submitters and Architectures of LLM- and Agent-Based Repair Systemscited by 8
- 2025A Comprehensive Empirical Evaluation of Agent Frameworks on Code-centric Software Engineering Taskscited by 7
- 2025RA-Gen: A Controllable Code Generation Framework Using ReAct for Multi-Agent Task Executioncited by 2
- 2026VulnResolver: A Hybrid Agent Framework for LLM-Based Automated Vulnerability Issue Resolutioncited by 2
- 2026RAVEN: Agentic RAG for Automated Vulnerability Repaircited by 1
- 2026Multi-Perspective Agentic Program Repair via Code Property Graphs and Temporal Execution Graphscited by 1
- 2026MemRepair: Hierarchical Memory for Agentic Repository-Level Vulnerability Repaircited by 0
12 most cited of 15 All 15 (JSON)
- 2026Blockchain-Enabled Artificial Intelligence and AI Agents for Secure Data Sharing and Cybersecurity Applications23 Sep 2026
- 2026TraceCAD: Trace-Guided Repair for Agentic CAD Generation4 Aug 2026
- 2026Multi-Perspective Agentic Program Repair via Code Property Graphs and Temporal Execution Graphs14 Jul 2026
- 2026RAVEN: Agentic RAG for Automated Vulnerability Repair21 Jun 2026
- 2026Exploration Structure in LLM Agents for Multi-File Change Localization10 Jun 2026
- 2026MemRepair: Hierarchical Memory for Agentic Repository-Level Vulnerability Repair17 May 2026
- 2026VulnResolver: A Hybrid Agent Framework for LLM-Based Automated Vulnerability Issue Resolution20 Jan 2026
- 2025A Comprehensive Empirical Evaluation of Agent Frameworks on Code-centric Software Engineering Tasks2 Nov 2025
- 2025RA-Gen: A Controllable Code Generation Framework Using ReAct for Multi-Agent Task Execution9 Oct 2025
- 2025Dissecting the SWE-Bench Leaderboards: Profiling Submitters and Architectures of LLM- and Agent-Based Repair Systems20 Jun 2025
- 2025Understanding Automated Program Repair Agents Through the Lens of Traceability: An Empirical Study10 Jun 2025
- 2024COAST: Enhancing the Code Debugging Ability of LLMs through Communicative Agent Based Data Synthesis9 Aug 2024
12 newest of 15 All 15 (JSON)
- 2026BLAgent: Agentic RAG for File-Level Bug Localization18 May 2026
- 2025Accelerating Automatic Program Repair with Dual Retrieval-Augmented Fine-Tuning and Patch Generation on Large Language Models14 Jul 2025
- 2024Rango: Adaptive Retrieval-Augmented Proving for Automated Software Verification18 Dec 2024
- 2023Keep the Conversation Going: Fixing 162 out of 337 bugs for 0.42 each using ChatGPTcited by 125
- 2024CodeR: Issue Resolving with Multi-Agent and Task Graphscited by 89
- 2021CURE: Code-Aware Neural Machine Translation for Automatic Program Repaircited by 85
- 2024DebugBench: Evaluating Debugging Capability of Large Language Modelscited by 74
- 2021A Syntax-Guided Edit Decoder for Neural Program Repaircited by 57
- 2023Copiloting the Copilots: Fusing Large Language Models with Completion Engines for Automated Program Repaircited by 55
- 2023Conversational Automated Program Repaircited by 41
- 2023Natural Language Generation and Understanding of Big Code for AI-Assisted Programming: A Reviewcited by 32
- 2024HDLdebugger: Streamlining HDL debugging with Large Language Modelscited by 25
- 2023ITER: Iterative Neural Repair for Multi-Location Patchescited by 16
- 2023BEAGLE: Forensics of Deep Learning Backdoor Attack for Better Defensecited by 15
- 2023KNOD: Domain Knowledge Distilled Tree Decoder for Automated Program Repaircited by 13
12 most cited of 44 All 44 (JSON)
- 2026AdaRepair-Mem: Adaptive Experience Orchestration for Repository-Level Program Repair17 Sep 2026
- 2026Benchmarking Automated Security Patch Backporting: How Far Are We?18 Aug 2026
- 2026The Order Is the Guarantee: Verifier-Budgeted Code Deletion with Static-First Learned Proposals5 Aug 2026
- 2026Diff-Based Code Corruption using LLMs for Large-Scale Bugfix Benchmarking27 Jun 2026
- 2026ContraFix: Skill-Enhanced Contrastive Runtime Analysis for Vulnerability Repair17 May 2026
- 2025DynaFix: Iterative Automated Program Repair Driven by Execution-Level Dynamic Information31 Dec 2025
- 2025Beyond Function-Level Search: Repository-Aware Dual-Encoder Code Retrieval with Adversarial Verification16 Oct 2025
- 2025Repair-R1: Better Test Before Repair30 Jul 2025
- 2025From Empirical Evaluation to Context-Aware Enhancement: Repairing Regression Errors with LLMs16 Jun 2025
- 2025A Multi-Dataset Evaluation of Models for Automated Vulnerability Repair5 Jun 2025
- 2025The Art of Repair: Optimizing Iterative Program Repair with Instruction-Tuned Models5 May 2025
- 2025Evaluating the Generalizability of LLMs in Automated Program Repair12 Mar 2025
12 newest of 44 All 44 (JSON)