Authors: Huong Ha (RMIT University), Sunil Gupta, Santu Rana, and Svetha Venkatesh (Deakin University)
Introduction
When machine learning models transition from controlled environments to real-world applications, they often encounter "distribution shift," where operational data differs significantly from training data. To ensure reliability, engineers must test these models on site-specific data. However, obtaining human labels for large test sets is expensive and time-consuming. This paper addresses the "model-under-test" (MuT) problem: how can we estimate performance metrics accurately with the absolute minimum number of human labels? The authors propose ALT-MAS (Active Testing with Metric-Aware Sampling), a framework that treats model evaluation as an active learning task.
Methodology
ALT-MAS treats the model as a "black box," meaning it only requires access to the model's final predictions. The framework consists of three integrated components:
- Surrogate Bayesian Neural Network (BNN): A BNN is trained to approximate the ground truth. Its inherent uncertainty quantification is used to guide the sampling process, identifying which data points the system is most "confused" about.
- Pseudo-Labeling via Binary Classification: To improve data efficiency, a separate binary classifier predicts the likelihood of the MuT being correct. If the classifier is highly confident, the MuT's own predictions are used as pseudo-labels for the BNN, drastically reducing the need for human intervention.
- Metric-Aware Acquisition Function: Unlike traditional active learning that optimizes for overall model accuracy, ALT-MAS employs an information-theoretic strategy to select points that reduce uncertainty specifically for the metrics of interest (e.g., precision, recall, or accuracy for specific classes).
Experimental Results
The framework was evaluated on MNIST and FashionMNIST datasets using models of varying quality: a high-accuracy model (M-MNIST), a mediocre model (M-MNIST-ES), and a poorly matched model (M-FashionMNIST). The goal was to estimate a vector of 21 metrics simultaneously.
As illustrated in the performance plots above, ALT-MAS (blue line) consistently outperforms both random sampling ("Tradition") and the BALD active learning baseline. It reaches lower average relative error with significantly fewer oracle queries across all tested scenarios. Notably, the method remains robust even when the MuT is poorly matched to the data distribution.
Key Insights and Discussion
A primary insight from this work is that testing is fundamentally different from training. In active testing, the surrogate model does not require high classification accuracy to be an effective metric estimator; it only needs to be accurate enough to calculate the specific error rates required. In some tests, a BNN with only 80% accuracy was able to estimate the MuT's performance metrics with near 100% accuracy.
Conclusion and Future Work
ALT-MAS provides a robust, data-efficient solution for monitoring machine learning models in production. While currently validated on image classification tasks, the authors suggest that future research could extend this to more complex domains like object detection or natural language processing. Additionally, incorporating internal model confidence scores (grey-box access) could further enhance sampling efficiency.
Summary updated