Bidirectional Program Dependency–Guided Attention for Improved Method‐Level Software Defect Prediction
Journal of Software: Evolution and Process · 2026-05 · 38 (5)
DOI: 10.1002/smr.70115 ↗Kurz gefasst
Fachartikel in der Zeitschrift Journal of Software: Evolution and Process, online erschienen am 06.05.2026. Verfasst von Jing‐Rong Lin und 2 weiteren Autor:innen. Die Arbeit nennt 49 Literaturangaben. Gefördert von: Ministry of Science and Technology, Taiwan.
Abstract (Originalsprache)
Software defect prediction (SDP) is an active area of research in software engineering, with numerous approaches proposed over the years to assist practitioners in identifying potential software defects. However, most existing SDP approaches predict software defects at a coarse‐grained level. Practitioners must still invest considerable time and effort to manually inspect large code segments. Another critical issue lies in the contextual understanding affected by code structures. Some SDP approaches attempt to learn the context from consecutive lines of code, which may not always constitute a meaningful semantic unit. Furthermore, the data preprocessing techniques employed in many SDP studies raise concerns about preserving code semantics. In this study, we propose bidirectional program dependency–guided attention for defect prediction (BiPDG‐DP), a hierarchical Transformer‐based language model that learns the contextual information of a method‐level PDG considering both the control and data dependencies in the directions of both source‐to‐target and target‐to‐source for method‐level SDP. Based on the comparative experimental results on the 32 releases of nine Java projects, our proposed approach outperforms other baseline approaches with significant relative improvements of 11.8%–35.7% in terms of the non‐effort‐aware evaluation metrics and 14.2%–218.5% in terms of the effort‐aware evaluation metrics, respectively.
Förderung
- Ministry of Science and Technology, Taiwan
Zitieren
APA
Lin, J., Huang, C., & Fang, C. (2026). Bidirectional Program Dependency–Guided Attention for Improved Method‐Level Software Defect Prediction. Journal of Software: Evolution and Process, 38(5). https://doi.org/10.1002/smr.70115
Vancouver
Lin J, Huang C, Fang C. Bidirectional Program Dependency–Guided Attention for Improved Method‐Level Software Defect Prediction. Journal of Software: Evolution and Process. 2026;38(5). doi:10.1002/smr.70115
BibTeX
@article{Lin2026,
author = {Lin, Jing‐Rong and Huang, Chin‐Yu and Fang, Chih‐Chiang},
title = {Bidirectional Program Dependency–Guided Attention for Improved Method‐Level Software Defect Prediction},
journal = {Journal of Software: Evolution and Process},
year = {2026},
volume = {38},
number = {5},
doi = {10.1002/smr.70115}
}
EUVIMED