Lune

FSE2024顶会

JIT-Smart: A Multi-task Learning Framework for Just-in-Time Defect Prediction and Localization

Xiangping Chen, Furen Xu, Yuan Huang, Neng Zhang, Zibin Zheng

摘要

Just-in-time defect prediction (JIT-DP) is used to predict the defect-proneness of a commit and just-in-time defect localization (JIT-DL) is used to locate the exact buggy positions (defective lines) in a commit. Recently, various JIT-DP and JIT-DL techniques have been proposed, while most of them use a post-mortem way (e.g., code entropy, attention weight, LIME) to achieve the JIT-DL goal based on the prediction results in JIT-DP. These methods do not utilize the label information of the defective code lines during model building. In this paper, we propose a unified model JIT-Smart, which makes the training process of just-in-time defect prediction and localization tasks a mutually reinforcing multi-task learning process. Specifically, we design a novel defect localization network (DLN), which explicitly introduces the label information of defective code lines for supervised learning in JIT-DL with considering the class imbalance issue. To further investigate the accuracy and cost-effectiveness of JIT-Smart, we compare JIT-Smart with 7 state-of-the-art baselines under 5 commit-level and 5 line-level evaluation metrics in JIT-DP and JIT-DL. The results demonstrate that JIT-Smart is statistically better than all the state-of-the-art baselines in JIT-DP and JIT-DL. In JIT-DP, at the median value, JIT-Smart achieves F1-Score of <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"> mml:mrow mml:mn0.475</mml:mn> </mml:mrow> </mml:math> , AUC of <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"> mml:mrow mml:mn0.886</mml:mn> </mml:mrow> </mml:math> , Recall@20%Effort of <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"> mml:mrow mml:mn0.823</mml:mn> </mml:mrow> </mml:math> , Effort@20%Recall of <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"> mml:mrow mml:mn0.01</mml:mn> </mml:mrow> </mml:math> and Popt of <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"> mml:mrow mml:mn0.942</mml:mn> </mml:mrow> </mml:math> and improves the baselines by <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"> mml:mrow mml:mn19</mml:mn> mml:mn.89%</mml:mn> mml:mi-</mml:mi> mml:mn702</mml:mn> mml:mn.74%</mml:mn> </mml:mrow> </mml:math> , <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"> mml:mrow mml:mn1</mml:mn> mml:mn.23%</mml:mn> mml:mi-</mml:mi> mml:mn31</mml:mn> mml:mn.34%</mml:mn> </mml:mrow> </mml:math> , <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"> mml:mrow mml:mn9</mml:mn> mml:mn.44%</mml:mn> mml:mi-</mml:mi> mml:mn33</mml:mn> mml:mn.16%</mml:mn> </mml:mrow> </mml:math> , <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"> mml:mrow mml:mn21</mml:mn> mml:mn.6%</mml:mn> mml:mi-</mml:mi> mml:mn53</mml:mn> mml:mn.82%</mml:mn> </mml:mrow> </mml:math> and <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"> mml:mrow mml:mn1</mml:mn> mml:mn.94%</mml:mn> mml:mi-</mml:mi> mml:mn34</mml:mn> mml:mn.89%</mml:mn> </mml:mrow> </mml:math> , respectively. In JIT-DL, at the median value, JIT-Smart achieves Top-5 Accuracy of <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"> mml:mrow mml:mn0.539</mml:mn> </mml:mrow> </mml:math> and Top-10 Accuracy of <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"> mml:mrow mml:mn0.396</mml:mn> </mml:mrow> </mml:math> , Recall@ <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"> mml:mrow mml:mn20</mml:mn> mml:mi%</mml:mi> mml:msub mml:mrow mml:mtextEffort</mml:mtext> </mml:mrow> mml:mrow mml:mil</mml:mi> mml:mii</mml:mi> mml:min</mml:mi> mml:mie</mml:mi> </mml:mrow> </mml:msub> </mml:mrow> </mml:math> of <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"> mml:mrow mml:mn0.726</mml:mn> </mml:mrow> </mml:math> , Effort@ <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"> mml:mrow mml:mn20</mml:mn> mml:mi%</mml:mi> mml:msub mml:mrow mml:mtextRecall</mml:mtext> </mml:mrow> mml:mrow mml:mil</mml:mi> mml:mii</mml:mi> mml:min</mml:mi> mml:mie</mml:mi> </mml:mrow> </mml:msub> </mml:mrow> </mml:math> of <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"> mml:mrow mml:mn0.087</mml:mn> </mml:mrow> </mml:math> and <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"> mml:mrow mml:msub mml:mrow mml:mtextIFA</mml:mtext> </mml:mrow> mml:mrow mml:mil</mml:mi> mml:mii</mml:mi> mml:min</mml:mi> mml:mie</mml:mi> </mml:mrow> </mml:msub> </mml:mrow>

问 Lune

几分钟看清这篇 Paper 的位置,不用再花一下午。

Lune 能读引用它和与它最相关的顶会 Paper,讲清它说了什么、后来怎样、哪里站不住,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 2 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

摘要 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper2

  1. Comment Traps: How Defective Commented-Out Code Augment Defects in AI-Assisted Code GenerationYuan Huang, Yukang Zhou, Xiangping Chen, Zibin ZhengFSE 2026
  2. Characterizing Regression Bug‑Inducing Changes and Improving LLM‑Based Regression Bug DetectionXuezhi Song, Yijian Wu, Bihuan Chen, Zhengjie Lu 等ICSE 2026

相关 Paper

  1. The best of both worlds: integrating semantic features with expert features for defect prediction and localizationChao Ni, Wei Wang, Kaiwen Yang, Xin Xia 等FSE 2022 · 76 次引用
  2. A Practical Human Labeling Method for Online Just-in-Time Software Defect PredictionLiyan Song, Leandro L. Minku, Cong Teng, Xin YaoFSE 2023 · 6 次引用
  3. Deep just-in-time defect prediction: how far are we?Zhengran Zeng, Yuqun Zhang, Haotian Zhang, Lingming ZhangISSTA 2021 · 97 次引用
  4. An investigation of cross-project learning in online just-in-time software defect predictionSadia Tabassum, Leandro L. Minku, Danyi Feng, George G. Cabral 等ICSE 2020 · 49 次引用
  5. PyExplainer: Explaining the Predictions of Just-In-Time Defect ModelsChanathip Pornprasit, Chakkrit Tantithamthavorn, Jirayus Jiarpakdee, Michael Fu 等ASE 2021 · 52 次引用
黄昏的海面,两侧是细线勾勒的悬崖