paper-with-me

홈 › Papers

Gradient-Based Program Repair: Fixing Bugs in Continuous Program Spaces

2025-05-23 · André Silva, Gustav Thorén, Martin Monperrus

Automatic program repair seeks to generate correct code from buggy programs, with most approaches searching the correct program in a discrete, symbolic space of source code tokens. This symbolic search is fundamentally limited by its inability to directly reason about program behavior. We introduce Gradient-Based Program Repair (GBPR), a new paradigm that reframes program repair as continuous optimization in a differentiable numerical program space. Our core insight is to compile symbolic programs into differentiable numerical representations, enabling search in the numerical program space directly guided by program behavior. To evaluate GBPR, we present RaspBugs, a new benchmark of 1,466 buggy symbolic RASP programs and their respective numerical representations. Our experiments demonstrate that GBPR can effectively repair buggy symbolic programs by gradient-based optimization in the numerical program space, with convincing repair trajectories. To our knowledge, we are the first to state program repair as continuous optimization in a numerical program space. Our work establishes a new direction for program repair research, bridging two rich worlds: continuous optimization and program behavior.

📄 PDF Abstract BibTeX arXiv:2505.17703

Code (0)

등록된 구현이 없습니다.

Tasks

Program Repair

Similar Papers 제목 키워드 기반

RepairLLaMA: Efficient Representations and Fine-Tuned Adapters for Program Repair

2023-12-25 · André Silva, Sen Fang, Martin Monperrus

Automated Program Repair (APR) has evolved significantly with the advent of Large Language Models (LLMs). Fine-tuning LLMs for program repair is a recent avenue of research, with many dimensions which have not been explo…

HumanEvalparameter-efficient fine-tuningProgram Repair

Can GPT-O1 Kill All Bugs? An Evaluation of GPT-Family LLMs on QuixBugs

2024-09-16 · Haichuan Hu, Ye Shang, Guolin Xu, Congqing He 외

LLMs have long demonstrated remarkable effectiveness in automatic program repair (APR), with OpenAI's ChatGPT being one of the most widely used models in this domain. Through continuous iterations and upgrades of GPT-fam…

AllProgram Repair

ENCORE: Ensemble Learning using Convolution Neural Machine Translation for Automatic Program Repair

2019-06-20 · Thibaud Lutellier, Lawrence Pang, Viet Hung Pham, Moshi Wei 외

Automated generate-and-validate (G&V) program repair techniques typically rely on hard-coded rules, only fix bugs following specific patterns, and are hard to adapt to different programming languages. We propose ENCORE, …

Ensemble LearningMachine TranslationNMTProgram Repair+1

Enabling Automatic Repair of Source Code Vulnerabilities Using Data-Driven Methods

2022-02-07 · Anastasiia Grishina

Users around the world rely on software-intensive systems in their day-to-day activities. These systems regularly contain bugs and security vulnerabilities. To facilitate bug fixing, data-driven models of automatic progr…

Bug fixingProgram Repair

Tea: Program Repair Using Neural Network Based on Program Information Attention Matrix

2021-07-17 · Wenshuo Wang, Chen Wu, Liang Cheng, Yang Zhang

The advance in machine learning (ML)-driven natural language process (NLP) points a promising direction for automatic bug fixing for software programs, as fixing a buggy program can be transformed to a translation task. …

Bug fixingProgram RepairTranslation