Answers are grounded in this paper and cite their sources.
Software defect prediction is a core means of software quality assurance and can reduce operation and maintenance costs by allocating testing resources in advance. However, in early project stages and cross-organizational reuse scenarios, defect labels are commonly scarce and classes are highly imbalanced. Most existing defect prediction methods assume sufficient training labels. Fixed model strategies have difficulty adapting to different label budgets, and evaluation based on random splitting can produce optimistic bias because duplicated samples leak across data subsets. This study proposes ProtoStar, a software defect prediction framework for label-scarce settings. Its core is a few-shot prototype engine that jointly trains with focal loss and supervised contrastive loss. The framework combines this engine with a label-budget-adaptive fusion mechanism selected through out-of-fold validation and an honest evaluation pipeline based on deduplicated grouped splitting, thereby achieving robust defect-risk ranking at low labeling cost. Systematic evaluation on 13 National Aeronautics and Space Administration Metrics Data Program (NASA MDP) datasets shows that the method significantly outperforms strong supervised baselines in k-shot few-shot and total-budget-constrained cold-start settings. Adaptive fusion effectively avoids ensemble overfitting. For cross-project prediction, the defect-hit enrichment among the top 20% high-risk modules reaches 1.28-1.76 times the base rate, providing a feasible technical approach to software quality assurance under limited labeling.
No takes yet. Share an insight, caveat, or question.
Chengang Zhang (2026) studied this question.
Synapse has enriched 10 related papers. Consider them for comparative context: