paper-with-me

홈 › Papers

Multi-Task Program Error Repair and Explanatory Diagnosis

2024-10-09 · Zhenyu Xu, Victor S. Sheng

Program errors can occur in any type of programming, and can manifest in a variety of ways, such as unexpected output, crashes, or performance issues. And program error diagnosis can often be too abstract or technical for developers to understand, especially for beginners. The goal of this paper is to present a novel machine-learning approach for Multi-task Program Error Repair and Explanatory Diagnosis (mPRED). A pre-trained language model is used to encode the source code, and a downstream model is specifically designed to identify and repair errors. Programs and test cases will be augmented and optimized from several perspectives. Additionally, our approach incorporates a "chain of thoughts" method, which enables the models to produce intermediate reasoning explanations before providing the final correction. To aid in visualizing and analyzing the program structure, we use a graph neural network for program structure visualization. Overall, our approach offers a promising approach for repairing program errors across different programming languages and providing helpful explanations to programmers.

📄 PDF Abstract BibTeX arXiv:2410.07271

Code (0)

등록된 구현이 없습니다.

Tasks

Graph Neural NetworkLanguage ModelingLanguage Modelling

Methods 이 논문이 사용한 방법론

Graph Neural Network 설명 없음

Similar Papers 제목 키워드 기반

Repair Is Nearly Generation: Multilingual Program Repair with LLMs

2022-08-24 · Harshit Joshi, José Cambronero, Sumit Gulwani, Vu Le 외

Most programmers make mistakes when writing code. Some of these mistakes are small and require few edits to the original program -- a class of errors recently termed last mile mistakes. These errors break the flow for ex…

Language ModellingLarge Language ModelProgram Repair

MultiFix: Learning to Repair Multiple Errors by Optimal Alignment Learning

2021-11-01 · Findings (EMNLP) 2021 11 · HyeonTae Seo, Yo-Sub Han, Sang-Ki Ko

We consider the problem of learning to repair erroneous C programs by learning optimal alignments with correct programs. Since the previous approaches fix a single error in a line, it is inevitable to iterate the fixing …

Program Repair

LecPrompt: A Prompt-based Approach for Logical Error Correction with CodeBERT

2024-10-10 · Zhenyu Xu, Victor S. Sheng

Logical errors in programming don't raise compiler alerts, making them hard to detect. These silent errors can disrupt a program's function or cause run-time issues. Their correction requires deep insight into the progra…

Language ModelingLanguage ModellingLarge Language ModelMasked Language Modeling

MACER: A Modular Framework for Accelerated Compilation Error Repair

2020-05-28 · Darshak Chhatbar, Umair Z. Ahmed, Purushottam Kar

Automated compilation error repair, the problem of suggesting fixes to buggy programs that fail to compile, has generated significant interest in recent years. Apart from being a tool of general convenience, automated co…

4kCode Repair

Graph-based, Self-Supervised Program Repair from Diagnostic Feedback

2020-05-20 · ICML 2020 1 · Michihiro Yasunaga, Percy Liang

We consider the problem of learning to repair programs from diagnostic feedback (e.g., compiler error messages). Program repair is challenging for two reasons: First, it requires reasoning and tracking symbols across sou…

Code GenerationDiagnosticGraph LearningGraph Neural Network+3