arrow
返回

A controlled experiment of different code representations for learning-based program repair

delete2022-10-03
delete8
PRE
AI
M
Marjane Namavar *
N
Noor Nashid
A
Ali Mesbah
DOI:10.1007/s10664-022-10223-5delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
Training a deep learning model on source code has gained significant traction recently. Since such models reason about vectors of numbers, source code needs to be converted to a code representation before vectorization. Numerous approaches have been proposed to represent source code, from sequences of tokens to abstract syntax trees. However, there is no systematic study to understand the effect of code representation on learning performance. Through a controlled experiment, we examine the impact of various code representations on model accuracy and usefulness in deep learning-based program repair. We train 21 different generative models that suggest fixes for name-based bugs, including 14 different homogeneous code representations, four mixed representations for the buggy and fixed code, and three different embeddings. We assess if fix suggestions produced by the model in various code representations are automatically patchable, meaning they can be transformed to a valid code that is ready to be applied to the buggy code to fix it. We also conduct a developer study to qualitatively evaluate the usefulness of inferred fixes in different code representations. Our results highlight the importance of code representation and its impact on learning and usefulness. Our findings indicate that (1) while code abstractions help the learning process, they can adversely impact the usefulness of inferred fixes from a developer's point of view; this emphasizes the need to look at the patches generated from the practitioner's perspective, which is often neglected in the literature, (2) mixed representations can outperform homogeneous code representations, (3) bug type can affect the effectiveness of different code representations; although current techniques use a single code representation for all bug types, there is no single best code representation applicable to all bug types.
Keyword:
Program repair
Deep learning
Code representation
Controlled experiment

期刊

Empirical Software Engineering 封面图
Empirical Software Engineering
IF:
3.6
论文数:
2.0K
被引数:
5.3K

机构

U
University of British Columbia
学者数:
7.0W
论文数: 6.1W
被引数: 8.6W
引用论文

引用论文

Differential Inhibition of Signal Peptide Peptidase Family Members by Established γ-Secretase Inhibitors
err2015-06-05
err0
errOAAI
errYong Ran; Gabriela Z. Ladd; Carolina Ceballos-Diaz; Joo In Jung; Doron Greenbaum; Kevin M. Felsenstein; Todd E. Golde
err分享
err收藏
err分享
err收藏
err
IF0
err
err0
errOAAI
err
err分享
err收藏
Long-Term Results of Endourologic Treatment of Urinary Calculi: Investigation of Risk Factors for Recurrence or Regrowth*
err1993-08-01
err0
PREAI
errTAKAHISA NAKAMOTO; KOJI SAGAMI; AKIHIKO YAMASAKI; MITSUTAKA UEDA; SEIJI FUJIWARA; MIKIO IGAWA; MITSURU NAKAHARA; TSUGURU USUI
err分享
err收藏
Structure and function of negative-strand RNA virus polymerase complexes
err2021-01-01
err0
PREAI
errJesse D. Pyle; Sean P.J. Whelan; Louis-Marie Bloyet
err分享
err收藏
err分享
err收藏
err分享
err收藏
YAC transgene-mediated olfactory receptor gene choiceYAC转基因介导的嗅觉受体基因选择
err2000-02-01
err0
errOAAI
errFarah A.W. Ebrahimi; James Edmondson; Rodney Rothstein; Andrew Chess
err分享
err收藏
学者 查看更多内容