EUVIMEDEUVIMED entdecken
Open Access · CC BY 4.0

A Cross-Attention Gating Mechanism-Based Multimodal Feature Fusion Method for Software Defect Prediction

Renliang Wang, Feng Liu

Applied Sciences · 21.10.2025 · 15 (20) · 11259

DOI: 10.3390/app152011259 ↗

Kurz gefasst

Fachartikel in der Zeitschrift Applied Sciences, online erschienen am 21.10.2025. Verfasst von Renliang Wang und 1 weiteren Autor:innen. Die Arbeit wurde bisher 6-mal zitiert (Crossref) und nennt 46 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0). Gefördert von: China State Railway Group Co., Ltd., China Railway Information Technology Big Data Technology Co., Ltd..

AbstractBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

Early software defect prediction research primarily relied on software metric features. However, such features struggle to fully capture semantic information in source code. Consequently, methods based on semantic features have gradually become mainstream. Nevertheless, the empirical value of traditional metric features remains significant. To address this, this paper proposes a multi-modal feature fusion method based on a cross-attention gating mechanism for software defect prediction (GMCA-SDP). This method aims to effectively fuse multiple modal features of source code to improve defect prediction performance. Unlike previous approaches, GMCA-SDP can simultaneously integrate traditional metric features and various code semantic features. During the feature fusion stage, it considers both the contribution differences among different types of features and the information interaction between modalities. This paper selects three types of modal features as input for GMCA-SDP: traditional metric features, semantic features extracted from the abstract syntax tree, and structural features extracted from the control flow graph. Our experiments on nine open-source projects demonstrate that the GMCA-SDP method outperforms six mainstream defect prediction models, with average improvements of 18.7% in F1, 10.9% in AUC, and 14.1% in G-mean.

Förderung

  • China State Railway Group Co., Ltd.
  • China Railway Information Technology Big Data Technology Co., Ltd.

Zitieren

APA

Wang, R., & Liu, F. (2025). A Cross-Attention Gating Mechanism-Based Multimodal Feature Fusion Method for Software Defect Prediction. Applied Sciences, 15(20), 11259. https://doi.org/10.3390/app152011259

Vancouver

Wang R, Liu F. A Cross-Attention Gating Mechanism-Based Multimodal Feature Fusion Method for Software Defect Prediction. Applied Sciences. 2025;15(20):11259. doi:10.3390/app152011259

BibTeX
@article{Wang2025,
  author = {Wang, Renliang and Liu, Feng},
  title = {A Cross-Attention Gating Mechanism-Based Multimodal Feature Fusion Method for Software Defect Prediction},
  journal = {Applied Sciences},
  year = {2025},
  volume = {15},
  number = {20},
  pages = {11259},
  doi = {10.3390/app152011259}
}
Kostenlos starten →