Target-Aware Data Augmentation (TADA) for Cross-Project Defect Prediction
Software defect prediction (SDP) is key to software reliability, yet Cross‑Project Defect Prediction (CPDP) remains hindered by intertwined challenges: imbalance and distribution shifts. Existing methods treat these in isolation—either aligning features while ignoring imbalance, or rebalancing data with severe manifold distortion. Consequently, models produce excessive false alarms or fall into conservative “null‑prediction” traps. To bridge this gap, we propose Target‑Aware Data Augmentation (TADA), a model‑agnostic framework jointly optimizing class balance and distribution alignment. TADA leverages Target‑Aware Genetic Search (TAGS) to adaptively compose sampling strategies, guided by predictive utility and a maximum mean discrepancy (MMD) penalty to prevent structural distortion. Extensive experiments across 10 project‑level datasets (AEEEM, NASA) and commit‑level Just‑In‑Time (JIT) repositories (OpenStack, Qt) demonstrate that TADA outperforms traditional samplers, identifying sparse defects while mitigating false‑alarm explosion. Crucially, TADA acts as a powerful orthogonal pre‑processor for advanced feature adaptation models. By rescuing deep models from extreme class‑imbalance conservatism, TADA yields up to a 269% relative improvement in F1‑measure with deep transfer learners. Overall, by providing balanced, target‑aligned, structurally sound training manifolds, TADA establishes a scalable, robust, interpretable augmentation paradigm for practical CPDP deployment.
Authors
- Xiao‐Yuan Jing (ORCID: https://orcid.org/0000-0002-0392-8475)
- Yongchang Ding (ORCID: https://orcid.org/0000-0002-4736-1845)
- Rong Peng (ORCID: https://orcid.org/0000-0003-2330-9409)
- Zhiqiang Li (ORCID: https://orcid.org/0000-0001-5999-3658)
- Linjun Chen (ORCID: https://orcid.org/0000-0002-4755-0064)
- Yunting Yu (ORCID: https://orcid.org/0009-0009-4551-0833)
Institutions
- Wuhan University (CN)
- Guangdong University of Petrochemical Technology (CN)
- Shaanxi Normal University (CN)
Publication Details
- Journal
- ACM Transactions on Software Engineering and Methodology
- Published
- 2026-11-30
- DOI
- https://doi.org/10.1145/3872431
- Primary Topic
- Software Engineering Research
- Type
- article
- Field-Weighted Citation Impact
- 0.00