Human-in-the-Loop Automatic Program Repair

被引:1
|
作者
Geethal, Charaka [1 ,2 ]
Bohme, Marcel [3 ]
Pham, Van-Thuan [4 ]
机构
[1] Monash Univ, Clayton, Vic 3800, Australia
[2] Univ Ruhuna, Fac Sci, Dept Comp Sci, Matara 81000, Sri Lanka
[3] Max Planck Inst Secur & Privacy, D-44799 Bochum, Germany
[4] Univ Melbourne, Carlton, Vic 3053, Australia
关键词
Automated test oracles; semi-automatic program repair; classification algorithms; active machine learning; GENERATION;
D O I
10.1109/TSE.2023.3305052
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
learn2fix is a human-in-the-loop interactive program repair technique, which can be applied when no bug oracle-except the user who is reporting the bug-is available. This approach incrementally learns the condition under which the bug is observed by systematic negotiation with the user. In this process, learn2fix generates alternative test inputs and sends some of those to the user for obtaining their labels. A limited query budget is assigned to the user for this task. A query is a Yes/No question: "When executing this alternative test input, the program under test produces the following output; is the bug observed?". Using the labelled test inputs, learn2fix incrementally learns an automatic bug oracle to predict the user's response. A classification algorithm in machine learning is used for this task. Our key challenge is to maximise the oracle's accuracy in predicting the tests that expose the bug given a practical, small budget of queries. After learning the automatic oracle, an existing program repair tool attempts to repair the bug using the alternative tests that the user has labelled. Our experiments demonstrate that learn2fix trains a sufficiently accurate automatic oracle with a reasonably low labelling effort (lt. 20 queries), and the oracles represented by interpolation-based classifiers produce more accurate predictions than those represented by approximation-based classifiers. Given the user-labelled test inputs, generated using the interpolation-based approach, the GenProg and Angelix automatic program repair tools produce patches that pass a much larger proportion of validation tests than the manually constructed test suites provided by the repair benchmark.
引用
收藏
页码:4526 / 4549
页数:24
相关论文
共 50 条
  • [31] From Human-in-the-Loop to Human-in-Power
    Zheng, Elise Li
    Jin, Weina
    Hamarneh, Ghassan
    Lee, Sandra Soo-Jin
    AMERICAN JOURNAL OF BIOETHICS, 2024, 24 (09): : 84 - 86
  • [32] Human models in human-in-the-loop control systems
    Mabrok, Mohamed A.
    Mohamed, Hassan K.
    Abdel-Aty, Abdel-Haleem
    Alzahrani, Ahmed S.
    JOURNAL OF INTELLIGENT & FUZZY SYSTEMS, 2020, 38 (03) : 2611 - 2622
  • [33] A Simulation System for Human-in-the-Loop Driving
    Li, Yan
    Su, Yuanqi
    Zhang, Xiaoning
    Cai, Qingchao
    Lu, Haoang
    Liu, Yuehu
    2022 IEEE 25TH INTERNATIONAL CONFERENCE ON INTELLIGENT TRANSPORTATION SYSTEMS (ITSC), 2022, : 4183 - 4188
  • [34] An integrated design for human-in-the-loop disassembly
    Tang, Ying
    Grochowski, David E.
    PROCEEDINGS OF 2008 IEEE INTERNATIONAL CONFERENCE ON NETWORKING, SENSING AND CONTROL, VOLS 1 AND 2, 2008, : 774 - 779
  • [35] Human-in-the-loop Connectivity Management in Smartphones
    Nunes, David
    Silva, Jorge Sa
    Herrera, Carlos
    Boavida, Fernando
    WIRED/WIRELESS INTERNET COMMUNICATIONS, WWIC 2016, 2016, 9674 : 159 - 170
  • [36] Workshop on Human-in-the-loop Data Curation
    Demartini, Gianluca
    Yang, Jie
    Sadiq, Shazia
    PROCEEDINGS OF THE 31ST ACM INTERNATIONAL CONFERENCE ON INFORMATION AND KNOWLEDGE MANAGEMENT, CIKM 2022, 2022, : 5161 - 5162
  • [37] Strategies for Human-in-the-Loop Robotic Grasping
    Leeper, Adam
    Hsiao, Kaijen
    Ciocarlie, Matei
    Takayama, Leila
    Gossow, David
    HRI'12: PROCEEDINGS OF THE SEVENTH ANNUAL ACM/IEEE INTERNATIONAL CONFERENCE ON HUMAN-ROBOT INTERACTION, 2012, : 1 - 8
  • [38] Genie in the Model: Automatic Generation of Human-in-the-Loop Deep Neural Networks for Mobile Applications
    Wang, Yanfei
    Yu, Zhiwen
    Liu, Sicong
    Zhou, Zimu
    Guo, Bin
    PROCEEDINGS OF THE ACM ON INTERACTIVE MOBILE WEARABLE AND UBIQUITOUS TECHNOLOGIES-IMWUT, 2023, 7 (01):
  • [39] Human-in-the-loop image segmentation and annotation
    Xiaoya Zhang
    Lianjie Wang
    Jin Xie
    Pengfei Zhu
    Science China Information Sciences, 2020, 63
  • [40] Improving Recommender Systems with Human-in-the-Loop
    Ustalov, Dmitry
    Fedorova, Natalia
    Pavlichenko, Nikita
    PROCEEDINGS OF THE 16TH ACM CONFERENCE ON RECOMMENDER SYSTEMS, RECSYS 2022, 2022, : 708 - 709