Skip to main content
QUICK REVIEW

[Paper Review] Automatically detecting data drift in machine learning classifiers

Samuel Ackerman, Orna Raz|arXiv (Cornell University)|Nov 10, 2021
Anomaly Detection Techniques and ApplicationsComputer Science12 references7 citations
TL;DR

This paper proposes a novel, label-free method for automatically detecting data drift in machine learning classifiers using only the model's predicted labels and confidence scores. By applying sequential change-point detection to these confidence values, the approach identifies performance degradation earlier and with lower false positives than non-sequential methods, demonstrating effectiveness across three diverse datasets without requiring input data or ground truth labels.

ABSTRACT

Classifiers and other statistics-based machine learning (ML) techniques generalize, or learn, based on various statistical properties of the training data. The assumption underlying statistical ML resulting in theoretical or empirical performance guarantees is that the distribution of the training data is representative of the production data distribution. This assumption often breaks; for instance, statistical distributions of the data may change. We term changes that affect ML performance `data drift' or `drift'. Many classification techniques compute a measure of confidence in their results. This measure might not reflect the actual ML performance. A famous example is the Panda picture that is correctly classified as such with a confidence of about 60\%, but when noise is added it is incorrectly classified as a Gibbon with a confidence of above 99\%. However, the work we report on here suggests that a classifier's measure of confidence can be used for the purpose of detecting data drift. We propose an approach based solely on classifier suggested labels and its confidence in them, for alerting on data distribution or feature space changes that are likely to cause data drift. Our approach identities degradation in model performance and does not require labeling of data in production which is often lacking or delayed. Our experiments with three different data sets and classifiers demonstrate the effectiveness of this approach in detecting data drift. This is especially encouraging as the classification itself may or may not be correct and no model input data is required. We further explore the statistical approach of sequential change-point tests to automatically determine the amount of data needed in order to identify drift while controlling the false positive rate (Type-1 error).

Motivation & Objective

  • To address the critical challenge of detecting data drift in deployed ML systems where ground-truth labels are often unavailable or delayed.
  • To define a new class of 'auditors'—specifically, the classifier confidence auditor—that can detect drift using only model outputs.
  • To develop a framework for simulating data drift without altering data semantics, enabling controlled evaluation of drift detection methods.
  • To apply sequential change-point analysis to control false positive rates in drift detection while maintaining sensitivity to performance degradation.
  • To demonstrate that confidence scores, despite being unreliable indicators of correctness, can serve as effective signals for detecting distributional shifts.

Proposed method

  • The classifier confidence auditor monitors the distribution of prediction confidence scores over time to detect significant shifts indicating data drift.
  • A sequential change-point detection method (CPM) is applied to confidence scores to identify the onset of drift with statistical rigor.
  • Drift is simulated in a controlled manner by modifying feature distributions in production-like data without altering semantic meaning.
  • The framework evaluates auditor performance using metrics like detection delay and false positive rate across multiple classifiers and datasets.
  • Statistical control of Type-I error (false positive rate) is achieved through sequential hypothesis testing, ensuring reliability in real-time monitoring.
  • The method operates without requiring access to input features or ground-truth labels, making it suitable for real-world business applications.

Experimental results

Research questions

  • RQ1Can classifier confidence scores serve as a reliable signal for detecting data drift without access to input data or labels?
  • RQ2How effective is sequential change-point analysis in detecting drift with controlled false positive rates in real-time monitoring?
  • RQ3Can data drift be simulated in a way that preserves data semantics while enabling systematic evaluation of detection methods?
  • RQ4How does the confidence auditor compare to non-sequential detection methods in terms of detection speed and accuracy?
  • RQ5What is the impact of different types of data drift (e.g., feature distribution shifts) on the performance of the confidence-based auditor?

Key findings

  • The classifier confidence auditor successfully detected data drift across three diverse datasets and multiple classifier models, even when the model’s predictions were not necessarily correct.
  • Sequential change-point detection (CPM) enabled faster detection and significantly lower false positive rates compared to non-sequential T-test methods.
  • The CPM-based approach detected drift within a few samples after the true change-point (around sample 50), with detection distributions concentrated shortly after the shift.
  • Non-sequential methods either triggered false alarms before the true change-point ('pairs') or detected drift too late ('splits'), highlighting the advantage of sequential analysis.
  • The method achieved reliable drift detection without requiring labeled data or input features, making it practical for real-world, unlabeled production environments.
  • The framework demonstrated that confidence scores—despite being poor indicators of model correctness—can be powerful signals for detecting distributional shifts.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.