arXiv:2608.27704cs.LGAug 2026

Manuscript Offprint

arXiv:2608.27704

RiskBlend: A Multi-Signal Framework for Test Input Prioritization in Machine Learning Regression Testing

Madhusudan Srinivasan, Namith Nishal Raphae

1st1^{st} Madhusudan Srinivasan

Department of Computer Science

East Carolina University

Greenville, USA

srinivasanm23@ecu.edu

2nd2^{nd} Namith Nishal Raphael

Department of Computer Science

East Carolina University

Greenville, USA

Abstract—When machine learning classifiers are retrained, inputs that were correctly classified by the previous model version may be misclassified by the updated version: regression faults that are costly to detect because verifying predictions against ground truth requires human annotation, expert review, or expensive simulation rather than cheap model inference. Test input prioritization addresses this by ranking inputs so that a limited verification budget surfaces as many regression faults as possible. Existing approaches rely predominantly on single-model confidence scores, which do not exploit how predictions, decision boundaries, and local neighborhoods change between model versions. We propose RiskBlend, a classifier-agnostic prioritization framework that fuses four complementary risk signals, historical failure patterns, prediction shift, decision-boundary shift, and neighborhood change, into a single score via validation-learned APFD-squared weighting. Across four datasets, five classifiers, four regression-update scenarios, and 15 random seeds (1,200 configurations per dataset), RiskBlend achieves the highest average APFD in all 80 classifier-scenario combinations, with margins of up to 0.32 APFD over the strongest baseline. Confidence-based methods remain competitive only on linear classifiers over sparse categorical features, a limitation we attribute to feature-space geometry. These results demonstrate that cross-version behavioral signals are essential complements to model-output confidence for robust prioritization in ML regression testing.

Index Terms—Regression Testing, Test input prioritization, Machine learning

I. INTRODUCTION AND MOTIVATION

Machine learning (ML) classifiers have become a critical component of modern software systems. They are increasingly deployed in high-stakes domains such as finance, security, and especially medicine, where predictive models support tasks that include disease diagnosis, prediction of patient readmission, and risk stratification. In such settings, ensuring the reliability of ML models is essential, as incorrect or biased predictions can directly impact safety, equity, and trust.

ML systems differ fundamentally from traditional software in that their behavior depends not only on the program logic but also on the continuously evolving data used to train them. Organizations regularly collect new data, refine feature pipelines, and train classifiers to improve accuracy or mitigate bias. Each such update requires regression testing and verifying that the updated model does not introduce new failures on inputs the previous version handled correctly. Unlike classical software regression testing, where executing a test and verifying its outcome are a single inseparable step, ML regression testing decouples these two costs. Running the updated model on a test input is computationally cheap, requiring only a single forward pass. However, determining whether that prediction is correct requires a comparison against ground truth, which is rarely available for free: it demands human annotation, delayed outcome observation, or expensive simulation. This asymmetry means that the dominant cost of ML regression testing is not model inference but oracle invocation, the process of verifying predictions against ground truth.

To motivate this problem, consider a hospital using an ML model to predict the risk of readmission from the ICU. After retraining with new patient data, the updated model must be verified against the previous version in thousands of records. Although prediction generation is computationally cheap, verifying each prediction requires the physician's review, often taking 10–15 minutes per case. With limited verification resources, only a small subset of records can be checked. Randomly selecting cases wastes valuable expert time, as most cases reveal no regression, whereas prioritizing high-risk input increases the likelihood of detecting newly introduced faults before deployment. This motivates the need for prioritization of test input in ML regression testing.

Previous work on ML test prioritization includes uncertainty, transformation, and mutation-based approaches. DeepGini [4] ranks inputs using prediction uncertainty but is based on a single-model confidence signal. Metamorphic-relation prioritization [10] orders fault-revealing transformations, but requires domain-specific MR design, while MLPrior [3] combines mutation-based features and learning-to-rank at additional mutation cost. Other neural-network approaches [1], [8] rely similarly primarily on confidence, uncertainty, or surprise measures. In contrast, RISKBLEND targets regression testing by combining four classifier-agnostic signals that capture historical and cross-version behavior. Their weights are learned from validation regression faults, avoiding classifier-specific tuning and mutation generation while prioritizing inputs likely to expose newly introduced faults.

Here are the main contributions of this work:

  1. We propose RiskBlend, a novel regression-aware test input prioritization framework for machine learning systems that prioritizes test instances using blended risk signals to improve early regression fault detection.

  2. We develop a validation-driven weight learning mechanism that automatically learns the contribution of each risk signal by optimizing APFD on a validation set, eliminating the need for manually tuned weights and improving adaptability across datasets and classifiers.

  3. We perform a comprehensive empirical evaluation on four benchmark datasets, four regression-update scenarios, five classifier families, and multiple random seeds.