TFix: Learning to Fix Coding Errors with a Text-to-Text Transformer
The problem of fixing errors in programs has attracted substantial interest over the years. The key challenge for building an effective code fixing tool is to capture a wide range of errors and meanwhile maintain high accuracy. In this paper, we address this challenge and present a new learning-based system, called TFix. TFix works directly on program text and phrases the problem of code fixing as a text-to-text task. In turn, this enables it to leverage a powerful Transformer based model pre-trained on natural language and fine-tuned to generate code fixes (via a large, high-quality dataset obtained from GitHub commits). TFix is not specific to a particular programming language or class of defects and, in fact, improved its precision by simultaneously fine-tuning on 52 different error types reported by a popular static analyzer. Our evaluation on a massive dataset of JavaScript programs shows that TFix is practically effective: it is able to synthesize code that fixes the error in 67 percent of cases and significantly outperforms existing learning-based approaches.
Code (1)
Tasks
Code GenerationMulti-Task LearningProgram RepairTransfer LearningMethods 이 논문이 사용한 방법론
Similar Papers 제목 키워드 기반
Improving Automated Program Repair with Domain Adaptation
Automated Program Repair (APR) is defined as the process of fixing a bug/defect in the source code, by an automated tool. APR tools have recently experienced promising results by leveraging state-of-the-art Neural Langua…
Domain AdaptationProgram RepairZero-Shot LearningSolving Arithmetic Word Problems with Transformers and Preprocessing of Problem Text
This paper outlines the use of Transformer networks trained to translate math word problems to equivalent arithmetic expressions in infix, prefix, and postfix notations. We compare results produced by many neural configu…
MathSolving Arithmetic Word Problems Using Transformer and Pre-processing of Problem Texts
This paper outlines the use of Transformer networks trained to translate math word problems to equivalent arithmetic expressions in infix, prefix, and postfix notations. We compare results produced by a large number of n…
MathDeveloping Postfix-GP Framework for Symbolic Regression Problems
This paper describes Postfix-GP system, postfix notation based Genetic Programming (GP), for solving symbolic regression problems. It presents an object-oriented architecture of Postfix-GP framework. It assists the user …
regressionSymbolic RegressionPromptFix: You Prompt and We Fix the Photo
Diffusion models equipped with language models demonstrate excellent controllability in image generation tasks, allowing image processing to adhere to human instructions. However, the lack of diverse instruction-followin…
DenoisingImage GenerationInstruction Following