Professional Machine Learning Engineer
Continuous evaluation is the ongoing process of measuring a deployed machine learning model's inference performance against ground truth labels and baseline datasets. To set up continuous evaluation, a model deployed to an endpoint logs incoming inference requests and responses directly to Cloud Storage or a BigQuery table. Vertex AI Model Monitoring then reads these logged production samples at scheduled intervals and compares them against the training baseline dataset. When ground truth labels become available from human reviewers or downstream business outcomes, the evaluation service calculates objective quality metrics like precision, recall, and root-mean-square error to verify that model quality remains stable over time.
Alerting and automated pipelines connect monitoring signals to operational responses when production metrics degrade. A monitoring job calculates drift and accuracy metrics, and if a metric crosses a preconfigured numerical threshold, it sends an alert through Cloud Monitoring to trigger notifications. The alert can also publish a message to a Cloud Pub/Sub topic that starts an automated workflow in Vertex AI Pipelines. The pipeline ingests the newly labeled production data, runs a model retraining job, validates the updated model against a held-out test dataset, and deploys the new model to the production endpoint only after it outperforms the active model.
Data drift and training-serving skew are distribution anomalies that occur when incoming production feature values differ from the data used during model development:
To detect these issues, Vertex AI Model Monitoring uses statistical distance metrics such as Jensen-Shannon divergence and Chebyshev distance to compare production feature distributions against baseline training distributions. When the calculated distance score exceeds the defined anomaly threshold, the system flags the specific feature that drifted.
Concept drift and feature attribution drift describe shifts in how inputs relate to outputs rather than simple changes in input values:
Teams detect feature attribution drift by enabling Vertex Explainable AI on production endpoints, which computes feature importance scores (such as sampled Shapley values) for each incoming request. The monitoring service aggregates these individual attribution scores over a time window, compares the attribution rankings against baseline training explanations, and flags features whose explanatory influence has materially changed.
Generative AI evaluation assesses large language model responses across quality, factual alignment, and task success using both heuristic and model-based scoring:
In comparative evaluation workflows like AutoSxS, an evaluation pipeline sends identical prompt inputs to both a candidate model and a baseline model. The evaluator model scores both outputs side by side, determines a win-rate percentage, and generates natural language rationales explaining why one response outperformed the other.
Safety monitoring and guardrails protect generative AI systems from harmful content, prompt injection attacks, and data leakage in production. Incoming user prompts first pass through safety filters that evaluate the input text across harm categories, including hate speech, harassment, dangerous content, and sexually explicit material. If a prompt or generated response violates the configured probability or severity threshold, the system blocks the content before it reaches the end user and returns a fallback response. Operations teams monitor production guardrail telemetry through aggregated audit logs in Cloud Logging to identify recurring prompt attacks, track blocked request rates, and adjust filter thresholds.
Prepare and test your skills
Prepare and test your skills
Training-serving skew occurs immediately when the serving environment processes data differently than the training pipeline, such as through inconsistent preprocessing logic or differing feature store versions. In contrast, data drift occurs gradually as real-world input distributions shift over time without changing the fundamental relationship between input features and target labels.
Vertex AI Model Monitoring detects feature attribution drift by enabling Vertex Explainable AI on production endpoints to compute feature importance scores, such as sampled Shapley values, for each incoming request. The service aggregates these attribution scores over a time window and compares the rankings against baseline training explanations to identify features whose explanatory influence has materially shifted.
AutoSxS evaluates generative models by sending identical prompt inputs to both a candidate model and a baseline model within an automated evaluation pipeline. An evaluator foundation model scores both responses side by side, calculates a win-rate percentage, and generates natural language rationales explaining why one response outperformed the other.
When monitoring metrics cross a preconfigured numerical threshold, an alert from Cloud Monitoring publishes a message to a Cloud Pub/Sub topic that triggers an automated workflow in Vertex AI Pipelines. This pipeline ingests newly labeled production data, trains an updated model, validates it against a held-out test dataset, and deploys it to the production endpoint only after confirming it outperforms the active model.