Bidirectional Program Dependency–Guided Attention for Improved Method‐Level Software Defect Prediction

ABSTRACT 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.

Authors

Institutions

Publication Details

Journal
Journal of Software Evolution and Process
Published
2026-05-01
DOI
https://doi.org/10.1002/smr.70115
Primary Topic
Software Engineering Research
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Bidirectional Program Dependency–Guided Attention for Improved Method‐Level Software Defect Prediction

Chun‐Yao Huang, Jing-Rong Lin, Chih‐Chiang Fang
Journal of Software Evolution and Process
Software Engineering Research
article

Bidirectional Program Dependency–Guided Attention for Improved Method‐Level Software Defect Prediction

Chun‐Yao Huang, Jing-Rong Lin, Chih‐Chiang Fang
article en

Abstract

ABSTRACT 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.

Journal of Software Evolution and ProcessVol. 38(5)
National Tsing Hua University (TW)
Ministry of Science and Technology, Taiwan
Openalex Percentile: Top 3%
Software Engineering Research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.