Abstract
Deep Neural Networks (DNNs) often suffer from performance degradation due to distribution shifts and adversarial attacks in real-world deployments. This paper proposes a lightweight, post-hoc accuracy monitoring framework that estimates a model's real-time inference accuracy using only its softmax outputs. By leveraging a three-phase pipeline involving a secondary monitor network, active learning for domain adaptation, and Monte-Carlo dropout for uncertainty estimation, the system provides reliable accuracy estimates with minimal human labeling (1%).
1. Introduction
While Deep Neural Networks (DNNs) achieve state-of-the-art performance on static benchmarks, their reliability in production environments remains a significant concern. Deployed models frequently encounter distribution shifts—where real-world data differs from training data—or adversarial attacks designed to induce misclassification. In such scenarios, the lack of ground-truth labels makes it impossible to detect performance drops in real-time.
Existing solutions, such as Out-of-Distribution (OOD) detection, identify anomalous data but fail to provide quantitative accuracy estimates. Calibration methods often require access to internal model weights or original training data, which may be unavailable to end-users. This paper addresses these gaps by introducing a model-agnostic, post-hoc accuracy monitor.
2. Methodology
The proposed framework utilizes a secondary, lightweight neural network—the "Monitor"—to predict the success or failure of the primary deployed model. The monitor does not process raw input data; instead, it operates on the softmax probability vectors produced by the primary DNN.
The system operates in three distinct phases:
- Training Phase: A monitor model is trained to classify the primary model's predictions as "correct" or "wrong" based on the signature of the softmax distribution.
- Transfer Phase (Active Learning): To adapt to new environments, the monitor is fine-tuned using Entropy-based Active Learning. By labeling only the most uncertain 1% of the new dataset, the monitor effectively calibrates to the new domain.
- Monitoring Phase: During inference, Monte-Carlo (MC) Dropout is applied to an ensemble of monitors. This provides both a mean accuracy estimate and a standard deviation, quantifying the system's uncertainty.
3. Experimental Evaluation
The framework was evaluated across diverse benchmarks, including CIFAR-10, CINIC-10, and STL-10 for 10-class classification, and ImageNet2012 for 1000-class classification. Safety-critical scenarios were tested using the German Traffic Sign Detection (GTSD) dataset and adversarial sets (AD-10, GTSD-AD) generated via DeepFool attacks.
4. Results and Discussion
The monitor consistently outperformed standard baselines such as Maximum Probability (MP) and Temperature Scaling (TS).
- Distribution Shift: When a model trained on CIFAR-10 was tested on STL-10, the true accuracy was 63.04%. The monitor estimated 63.43%, whereas Temperature Scaling overestimated accuracy at 88.03%.
- Adversarial Robustness: On the AD-10 dataset (True Accuracy: 37.80%), the monitor provided a near-accurate estimate of 38.66%, while most baselines remained above 50%.
- Efficiency: The "1% solution" proved highly effective; labeling just 1 out of 100 samples in a new domain was sufficient to maintain high estimation accuracy.
The monitor's effectiveness stems from its use of the softmax vector as a signal. The distribution of these scores contains inherent signatures of model uncertainty that the monitor learns to recognize, even when raw pixel data is unavailable.
5. Conclusion
This work demonstrates that post-hoc accuracy monitoring is a viable path toward trustworthy AI. By focusing on softmax outputs and utilizing active learning, the system provides a scalable way to track performance in the field. Future work will explore extending this approach to high-dimensional softmax vectors in 1000-class models and applying similar logic to regression and object detection tasks.
Summary updated