Model monitoring is the continuous process of tracking machine learning models in production to ensure they maintain performance as real-world data evolves. Drift detection identifies when the statistical properties of data or relationships between inputs and outputs change over time, signaling potential model degradation. Understanding the types of drift, detection methods, and monitoring strategies is essential for maintaining reliable ML systems—catching performance issues before they impact users requires both statistical rigor and operational infrastructure.
What This Cheat Sheet Covers
This topic spans 12 focused tables and 71 indexed concepts, 70 flashcards. Below is a complete table-by-table outline of this topic, spanning foundational concepts through advanced details.
A jump-to index of every table row in this cheat sheet.
An interactive map of every table and concept in this topic.
Table 1: Types of Drift in ML Production
Drift in machine learning occurs when the data or relationships your model relies on change over time, degrading predictions. Understanding these distinct drift types helps you pinpoint root causes and apply targeted fixes rather than blindly retraining.
| Type | Example | Description | |
|---|---|---|---|
$P(X)$ changes but $P(Y|X)$ remains constant; image resolution changes in production but object labels stay the same | • Input distribution shifts while the relationship between features and target stays intact • Most common drift type in production • Detected via distribution distance metrics on features | ||
$P(Y|X)$ changes; customer preferences shift, spam evolves, fraud patterns change | • Relationship between inputs and outputs evolves • Requires relabeling or model retraining • Hardest drift to detect without ground truth | ||
$P(Y)$ changes but $P(X|Y)$ stays constant; class imbalance shifts from 50/50 to 80/20 in production | • Target variable distribution changes independent of feature values • Often caused by seasonality or sampling bias • Impacts model calibration and decision thresholds | ||
Model outputs shift unexpectedly; predicted probabilities cluster at extremes or flatten | • Model's output distribution changes over time • Can signal data drift, concept drift, or model degradation • Early warning signal when ground truth is delayed | ||
Individual feature values shift; average income increases, age distribution skews younger | • Specific input features change in distribution or scale • Subset of data drift focused on per-feature analysis • High-importance features drifting cause more impact | ||
Model accuracy drops instantly after system upgrade or policy change | • Abrupt change in data or relationships • Easiest drift pattern to detect • Often caused by external events or upstream system changes | ||
Slow decline in model accuracy over weeks or months as user behavior evolves | • Smooth, continuous change over extended period • Harder to detect than sudden drift • Requires trend-based detection with historical baselines | ||
Step-wise changes in model performance; accuracy drops slightly every few weeks | • Sequential small shifts that accumulate over time • Middle ground between sudden and gradual • Detected via change-point algorithms | ||
Patterns cycle with time; holiday shopping behavior, quarterly business cycles | • Periodic patterns that repeat at regular intervals • Requires time-aware detection • Models can be adapted to expect seasonal shifts |