Lune

FSE2022顶会

The best of both worlds: integrating semantic features with expert features for defect prediction and localization

Chao Ni, Wei Wang, Kaiwen Yang, Xin Xia, Kui Liu, David Lo

摘要

To improve software quality, just-in-time defect prediction (JIT-DP) (identifying defect-inducing commits) and just-in-time defect localization (JIT-DL) (identifying defect-inducing code lines in commits) have been widely studied by learning semantic features or expert features respectively, and indeed achieved promising performance. Semantic features and expert features describe code change commits from different aspects, however, the best of the two features have not been fully explored together to boost the just-in-time defect prediction and localization in the literature yet. Additional, JIT-DP identifies defects at the coarse commit level, while as the consequent task of JIT-DP, JIT-DL cannot achieve the accurate localization of defect-inducing code lines in a commit without JIT-DP. We hypothesize that the two JIT tasks can be combined together to boost the accurate prediction and localization of defect-inducing commits by integrating semantic features with expert features. Therefore, we propose to build a unified model, JIT-Fine, for the just-in-time defect prediction and localization by leveraging the best of semantic features and expert features. To assess the feasibility of JIT-Fine, we first build a large-scale line-level manually labeled dataset, JIT-Defects4J. Then, we make a comprehensive comparison with six state-of-the-art baselines under various settings using ten performance measures grouped into two types: effort-agnostic and effort-aware. The experimental results indicate that JIT-Fine can outperform all state-of-the-art baselines on both JIT-DP and JITDL tasks in terms of ten performance measures with a substantial improvement (i.e., 10%-629% in terms of effort-agnostic measures on JIT-DP, 5%-54% in terms of effort-aware measures on JIT-DP, and 4%-117% in terms of effort-aware measures on JIT-DL).

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

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

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • CCT5: A Code-Change-Oriented Pre-trained Model 引用了 CodeBERT: A Pre-Trained Model for Programming and Natural Languages
  • CCT5: A Code-Change-Oriented Pre-trained Model 引用了 CC2Vec: distributed representations of code changes
  • Deep just-in-time defect prediction: how far are we? 引用了 CC2Vec: distributed representations of code changes
  • Deep just-in-time defect prediction: how far are we? 引用了 An investigation of cross-project learning in online just-in-time software defect prediction
  • Pre-training Code Representation with Semantic Flow Graph for Effective Bug Localization 引用了 CodeBERT: A Pre-Trained Model for Programming and Natural Languages
  • Pre-training Code Representation with Semantic Flow Graph for Effective Bug Localization 引用了 Evaluating SZZ Implementations Through a Developer-informed Oracle
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper10

  1. CCT5: A Code-Change-Oriented Pre-trained ModelBo Lin, Shangwen Wang, Zhongxin Liu, Yepang Liu 等FSE 2023 · 69 次引用
  2. Distinguishing Look-Alike Innocent and Vulnerable Code by Subtle Semantic Representation Learning and ExplanationChao Ni, Xin Yin, Kaiwen Yang, Dehai Zhao 等FSE 2023 · 42 次引用
  3. CREF: An LLM-Based Conversational Software Repair Framework for Programming TutorsBoyang Yang, Haoye Tian, Weiguo Pian, Haoran Yu 等ISSTA 2024 · 26 次引用
  4. Pre-training Code Representation with Semantic Flow Graph for Effective Bug LocalizationYali Du, Zhongxing YuFSE 2023 · 18 次引用
  5. LogSD: Detecting Anomalies from System Logs through Self-Supervised Learning and Frequency-Based MaskingYongzheng Xie, Hongyu Zhang, Muhammad Ali BabarFSE 2024 · 14 次引用

它引用的 Paper7

  1. CodeBERT: A Pre-Trained Model for Programming and Natural LanguagesZhangyin Feng, Daya Guo, Duyu Tang, Nan Duan 等EMNLP Findings 2020 · 2,828 次引用
  2. CC2Vec: distributed representations of code changesThong Hoang, Hong Jin Kang, David Lo, Julia LawallICSE 2020 · 169 次引用
  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. Evaluating SZZ Implementations Through a Developer-informed OracleGiovanni Rosa, Luca Pascarella, Simone Scalabrino, Rosalia Tufano 等ICSE 2021 · 42 次引用

相关 Paper

  1. JIT-Smart: A Multi-task Learning Framework for Just-in-Time Defect Prediction and LocalizationXiangping Chen, Furen Xu, Yuan Huang, Neng Zhang 等FSE 2024 · 11 次引用
  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. ReDef: Do Code Language Models Truly Understand Code Changes for Just-in-Time Software Defect Prediction?Doha Nam, Taehyoun Kim, Duksan Ryu, Jongmoon BaikFSE 2026
  4. NeuroJIT: Improving Just-In-Time Defect Prediction Using Neurophysiological and Empirical Perceptions of Modern DevelopersGichan Lee, Hansae Ju, Scott Uk-Jin LeeASE 2024
  5. PyExplainer: Explaining the Predictions of Just-In-Time Defect ModelsChanathip Pornprasit, Chakkrit Tantithamthavorn, Jirayus Jiarpakdee, Michael Fu 等ASE 2021 · 52 次引用
黄昏的海面,两侧是细线勾勒的悬崖