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.
Data drift occurs when the statistical distribution of input features changes over time while the underlying relationship between inputs and output labels stays the same. Concept drift occurs when the fundamental relationship between input features and target labels changes, meaning the exact same input values now correspond to different correct predictions.
Use heuristic metrics like ROUGE or BLEU when evaluating tasks that have fixed reference outputs and require strict token overlap, such as structured translation. Use model-based evaluation when assessing open-ended text generation, conversational quality, factual grounding, or subjective criteria like tone and coherence where exact string matching is insufficient.
Explainable AI calculates feature importance scores for individual predictions, allowing teams to see which input variables drove a specific decision. When model performance drops, comparing production attribution distributions against baseline attributions reveals whether the model is over-indexing on noisy features or ignoring previously critical inputs.
Prepare and test your skills
Prepare and test your skills