Professional Machine Learning Engineer
Model degradation occurs when a deployed machine learning model experiences a decrease in prediction accuracy over time due to changes in real-world environments. Training-serving skew arises when the data used to train a model differs from the live data it encounters during production inference. This discrepancy typically happens because of inconsistent data preprocessing pipelines, differences in feature generation code, or time delays between feature capture and prediction. In contrast, data drift represents a statistical shift in input feature distributions over time, while concept drift occurs when the relationship between input features and the target label changes. Left unmanaged, both drift and skew cause the model to make inaccurate inferences without throwing explicit software runtime errors.
Production AI solutions face operational, ethical, and adversarial risks that threaten system reliability and integrity. Adversarial attacks introduce subtly modified inputs designed to mislead a model into producing incorrect high-confidence predictions. Data poisoning risks occur during retraining cycles when unverified or malicious data enters the training pipeline. Fairness risks involve unintentional demographic bias, where model performance varies across sensitive groups. Teams evaluate feature attributions using Vertex Explainable AI to identify whether models rely on inappropriate feature correlations, utilizing methods such as Shapley values for tabular models or Integrated Gradients for deep neural networks.
Vertex AI Model Monitoring is a managed service that automatically detects feature skew and feature drift for models deployed to Vertex AI endpoints. For skew detection, the service compares incoming production request payloads against the original baseline training data stored in Cloud Storage or BigQuery. For drift detection, the service samples production traffic over consecutive rolling time windows and compares the current distribution against a baseline of historical serving data. Vertex AI Model Monitoring calculates statistical distance metrics—such as the Jensen-Shannon divergence or L-infinity distance—for each feature and emits an alert through Cloud Monitoring when a metric exceeds a user-configured threshold.
+-------------------------------------------------------------+
| Vertex AI Endpoint |
| [ Live Serving Requests ] ----> [ Vertex AI Model ] |
+------------------------------------+------------------------+
| (Request-Response Logs)
v
+--------------------------------------+
| Vertex AI Model Monitoring |
+--------------------------------------+
| |
(Compare vs. Baseline) (Compare Rolling Windows)
v v
[ Skew Detection ] [ Drift Detection ]
| |
+----------+-----------+
| (Distance > Threshold)
v
[ Cloud Monitoring Alert ]
|
v
[ Vertex AI Retraining ]
Infrastructure observability and model logging provide the diagnostic data necessary to isolate errors across the machine learning serving lifecycle. An endpoint writes operational metrics—including CPU utilization, GPU memory consumption, request latency, and HTTP error codes—directly to Cloud Monitoring. Enabling request-response payload logging exports raw prediction inputs and outputs to BigQuery tables for offline analysis, auditing, and continuous evaluation against delayed ground-truth labels. When feature drift or accuracy loss is detected, automated workflows triggered through Vertex AI Pipelines run data validation checks, trigger retraining jobs on updated datasets, and deploy the resulting candidate model using a canary traffic split to verify stability before full rollout.
Prepare and test your skills
Prepare and test your skills
Data drift represents a statistical shift in input feature distributions over time, whereas concept drift occurs when the underlying relationship between input features and the target label changes. Left unmanaged, both forms of drift cause models to generate inaccurate inferences without triggering runtime software errors.
Vertex AI Model Monitoring identifies feature skew by comparing incoming inference request payloads against baseline training data stored in Cloud Storage or BigQuery, whereas it identifies feature drift by comparing rolling time windows of production traffic against historical serving distributions. It computes statistical distance metrics like Jensen-Shannon divergence or L-infinity distance and emits alerts via Cloud Monitoring when configured thresholds are exceeded.
Vertex Explainable AI uses Shapley values for tabular models and Integrated Gradients for deep neural networks to evaluate feature attributions. These methods help teams detect whether predictions rely on inappropriate correlations or result in unintentional demographic bias across sensitive groups.
When Cloud Monitoring receives an alert indicating drift or degradation, it triggers an automated workflow in Vertex AI Pipelines that performs data validation checks and executes model retraining on updated datasets. The resulting candidate model is subsequently deployed to the serving endpoint using a canary traffic split to verify stability before completing a full rollout.