ARFT-Transformer: Modeling Metric Dependencies for Cross-Project Aging-Related Bug Prediction
Preprint
Abstract
Software systems that run for long periods often suffer from software aging, which is typically caused by Aging-Related Bugs (ARBs). To mitigate the risk of ARBs early in the development phase, ARB prediction has been introduced into software aging research. However, due to the difficulty of collecting ARBs, within-project ARB prediction faces the challenge of data scarcity, leading to the proposal of cross-project ARB prediction. This task faces two major challenges: 1) domain adaptation issue caused by distribution difference between source and target projects; and 2) severe class imbalance between ARB-prone and ARB-free samples. Although various methods have been proposed for cross-project ARB prediction, existing approaches treat the input metrics independently and often neglect the rich inter-metric dependencies, which can lead to overlapping information and misjudgment of metric importance, potentially affecting the model's performance. Moreover, they typically use cross-entropy as the loss function during training, which cannot distinguish the difficulty of sample classification. To overcome these limitations, we propose ARFT-Transformer, a transformer-based cross-project ARB prediction framework that introduces a metric-level multi-head attention mechanism to capture metric interactions and incorporates Focal Loss function to effectively handle class imbalance. Experiments conducted on three large-scale open-source projects demonstrate that ARFT-Transformer on average outperforms state-of-the-art cross-project ARB prediction methods in both single-source and multi-source cases, achieving up to a 29.54% and 19.92% improvement in Balance metric.Keywords
All Related Versions
This publication has 22 references indexed in Scilit:
- Cross-Project Aging-Related Bug Prediction Based on Transfer Learning and Class Imbalance LearningIEEE Transactions on Dependable and Secure Computing, 2025
- SGT: Aging-related bug prediction via semantic feature learning based on graph-transformerJournal of Systems and Software, 2024
- Predicting Aging-Related Bugs Using Network Analysis on Aging-Related Dependency NetworksIEEE Transactions on Emerging Topics in Computing, 2023
- On the effects of data normalization for domain adaptation on EEG dataEngineering Applications of Artificial Intelligence, 2023
- Software Aging Prediction for Cloud Services Using a Gate Recurrent Unit Neural Network Model Based on Time Series DecompositionIEEE Transactions on Emerging Topics in Computing, 2023
- On the use of deep learning in software defect predictionJournal of Systems and Software, 2022
- Aging Related Bug Prediction using Extreme Learning Machines2017
- Focal Loss for Dense Object Detection2017
- Predicting aging-related bugs using software complexity metricsPerformance Evaluation, 2013
- Software Defect Prediction Using Regression via Classification2006