paper-with-me

홈 › Papers

Generating Bug-Fixes Using Pretrained Transformers

2021-04-16 · Dawn Drain, Chen Wu, Alexey Svyatkovskiy, Neel Sundaresan

Detecting and fixing bugs are two of the most important yet frustrating parts of the software development cycle. Existing bug detection tools are based mainly on static analyzers, which rely on mathematical logic and symbolic reasoning about the program execution to detect common types of bugs. Fixing bugs is typically left out to the developer. In this work we introduce DeepDebug: a data-driven program repair approach which learns to detect and fix bugs in Java methods mined from real-world GitHub repositories. We frame bug-patching as a sequence-to-sequence learning task consisting of two steps: (i) denoising pretraining, and (ii) supervised finetuning on the target translation task. We show that pretraining on source code programs improves the number of patches found by 33% as compared to supervised training from scratch, while domain-adaptive pretraining from natural language to code further improves the accuracy by another 32%. We refine the standard accuracy evaluation metric into non-deletion and deletion-only fixes, and show that our best model generates 75% more non-deletion fixes than the previous state of the art. In contrast to prior work, we attain our best results when generating raw code, as opposed to working with abstracted code that tends to only benefit smaller capacity models. Finally, we observe a subtle improvement from adding syntax embeddings along with the standard positional embeddings, as well as with adding an auxiliary task to predict each token's syntactic class. Despite focusing on Java, our approach is language agnostic, requiring only a general-purpose parser such as tree-sitter.

📄 PDF Abstract BibTeX arXiv:2104.07896

Code (0)

등록된 구현이 없습니다.

Tasks

DenoisingProgram Repair

Methods 이 논문이 사용한 방법론

Repair 설명 없음

Similar Papers 제목 키워드 기반

DeepDebug: Fixing Python Bugs Using Stack Traces, Backtranslation, and Code Skeletons

2021-05-19 · Dawn Drain, Colin B. Clement, Guillermo Serrato, Neel Sundaresan

The joint task of bug localization and program repair is an integral part of the software development process. In this work we present DeepDebug, an approach to automated debugging using large, pretrained transformers. W…

Program Repair

Transformers Stop Thinking Too Early, and a Tiny LoRA Fixes It

2026-09-29 · Zehao Jin, Ruixuan Deng, Junran Wang hf

Pretrained transformers use little of their depth to follow references in context. Thirteen base models reliably follow only 1.4-3.6 lines, and extra pretrained loops add little. A task-trained rank-8 LoRA at one early l…

Parameter Efficient Multimodal Transformers for Video Representation Learning

2020-12-08 · ICLR 2021 1 · Sangho Lee, Youngjae Yu, Gunhee Kim, Thomas Breuel 외

The recent success of Transformers in the language domain has motivated adapting it to a multimodal setting, where a new visual model is trained in tandem with an already pretrained language model. However, due to the ex…

Language ModelingLanguage ModellingRepresentation Learning

Downstream Transformer Generation of Question-Answer Pairs with Preprocessing and Postprocessing Pipelines

2022-05-15 · Cheng Zhang, Hao Zhang, Jie Wang

We present a system called TP3 to perform a downstream task of transformers on generating question-answer pairs (QAPs) from a given article. TP3 first finetunes pretrained transformers on QAP datasets, then uses a prepro…

Grouping First, Attending Smartly: Training-Free Acceleration for Diffusion Transformers

2025-05-20 · Sucheng Ren, Qihang Yu, Ju He, Alan Yuille 외

Diffusion-based Transformers have demonstrated impressive generative capabilities, but their high computational costs hinder practical deployment, for example, generating an $8192\times 8192$ image can take over an hour …

GPUVideo Generation