Skip to main content
QUICK REVIEW

[Paper Review] Detection of data drift and outliers affecting machine learning model performance over time

Samuel Ackerman, Eitan Farchi|arXiv (Cornell University)|Dec 16, 2020
Machine Learning and Data ClassificationComputer Science21 citations
TL;DR

This paper proposes a nonparametric, confidence-based method for detecting data drift and outliers in deployed machine learning models without requiring ground-truth labels. By applying Change Point Models (CPMs) to model prediction confidence, it detects distributional shifts over time while controlling Type-1 error, and uses local density outlier detection to identify suspicious instances—demonstrating high recall for unseen classes in MNIST-based experiments with minimal false alarms.

ABSTRACT

A trained ML model is deployed on another `test' dataset where target feature values (labels) are unknown. Drift is distribution change between the training and deployment data, which is concerning if model performance changes. For a cat/dog image classifier, for instance, drift during deployment could be rabbit images (new class) or cat/dog images with changed characteristics (change in distribution). We wish to detect these changes but can't measure accuracy without deployment data labels. We instead detect drift indirectly by nonparametrically testing the distribution of model prediction confidence for changes. This generalizes our method and sidesteps domain-specific feature representation. We address important statistical issues, particularly Type-1 error control in sequential testing, using Change Point Models (CPMs; see Adams and Ross 2012). We also use nonparametric outlier methods to show the user suspicious observations for model diagnosis, since the before/after change confidence distributions overlap significantly. In experiments to demonstrate robustness, we train on a subset of MNIST digit classes, then insert drift (e.g., unseen digit class) in deployment data in various settings (gradual/sudden changes in the drift proportion). A novel loss function is introduced to compare the performance (detection delay, Type-1 and 2 errors) of a drift detector under different levels of drift class contamination.

Motivation & Objective

  • To detect data drift in deployed ML models when ground-truth labels are unavailable during deployment.
  • To control Type-1 error rates in sequential change detection, ensuring reliable false positive control.
  • To identify anomalous data instances likely belonging to a new, unseen class (e.g., a previously untrained digit in MNIST) without prior knowledge of the drift type.
  • To evaluate drift detection performance using a novel loss function that balances detection delay, Type-1, and Type-2 errors.
  • To generalize drift detection across domains by relying on model confidence rather than input feature representations.

Proposed method

  • Uses model prediction confidence as a univariate performance metric to detect distributional changes over time.
  • Applies Change Point Models (CPMs) to nonparametrically test for shifts in the confidence distribution, enabling sequential, statistically sound change detection.
  • Implements a local density-based outlier detection method to identify suspicious post-change observations with high likelihood of being from the drift class.
  • Introduces a novel loss function to compare drift detector performance across varying levels of drift contamination and detection speed.
  • Estimates the changepoint using CPMs and then applies outlier detection only on post-change observations to avoid bias.
  • Compares the fraction of drift class instances in detected outliers (θ′) against a random sample of post-change data (θ) to validate outlier detection effectiveness.

Experimental results

Research questions

  • RQ1Can prediction confidence be used as a reliable, domain-agnostic signal to detect data drift in deployed ML models without ground-truth labels?
  • RQ2How well can CPMs control Type-1 error rates in sequential drift detection under varying drift conditions?
  • RQ3Can nonparametric outlier detection methods effectively identify instances from a previously unseen class in the deployment data?
  • RQ4To what extent does the proposed method improve detection delay and error rates compared to baseline approaches?
  • RQ5How does the performance of the drift and outlier detection pipeline vary across abrupt versus gradual drift scenarios?

Key findings

  • The method successfully detects data drift in MNIST-based experiments with unseen digit classes, achieving high detection power even with low drift contamination.
  • The CPM-based approach maintains low Type-1 error rates, ensuring reliable false positive control across all tested scenarios.
  • Outlier detection identifies post-change observations with a mean drift fraction (θ′) of 60% or higher in abrupt drift scenarios, significantly outperforming random sampling (θ).
  • The method demonstrates robustness across both abrupt and gradual drift settings, with higher detection accuracy in sudden shifts.
  • The inclusion of outlier detection significantly improves the identification of drift-class instances, as shown by the higher θ′ values in the right column of Figure 12 compared to the middle column.
  • The approach generalizes across model types and data domains by relying solely on model confidence, avoiding assumptions about input data distribution or dimensionality.

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.