In this article
  1. Before you start
  2. Why interviewers ask this
  3. ML pipeline metrics from first principles
  4. The Staff-level answer
  5. The rubric
  6. Three variants of this question
  7. Common mistakes
  8. Follow-up questions
  9. Sources

Before you start

This question belongs to the large language model (LLM) evaluation learning path; the ideas below apply to classic models and to language-model systems alike. If you want the model underneath most language-model systems first, read how transformers work.

Why interviewers ask this

The question separates candidates who know one metric from candidates who run a system. A model that is correct in a notebook can still fail in production through bad inputs, slow responses or a result nobody values, so a good answer covers more than the model.

A weak answer names accuracy and stops. A strong answer groups metrics by layer, picks the model metric from the cost of each kind of error, and says how each group is watched after launch. A Staff-level answer adds the monitoring side: which differences between training and serving to check, how to alert on trends, and how a new model is rolled out and compared with the old one. The question is open-ended on purpose, so the interviewer is listening for structure.

ML pipeline metrics from first principles

ML pipeline
An ML pipeline is the chain of data collection, feature computation, model training and model serving that turns raw inputs into predictions, so a fault in any stage can lower the quality of the final result even when the model itself is sound.

In plain words

Think of a restaurant. The ingredients are the data. The chef is the model. The kitchen's speed and uptime are the system. The customers' happiness is the business result. A great chef cannot save rotten ingredients or a broken oven. You need a check on each.

The analogy breaks in one place. A chef sees the plate go out. A model often learns the true outcome weeks later, or never.

In one precise sentence: you judge an ML pipeline by model quality, input health, serving health and delivered value, and you track each as a time series, not a one-off number.

An ML pipeline is judged on model, data, system and business layersFour stacked layers of metrics for an ML pipeline: model quality, data health, system health and business outcome. Each layer answers a different question, and a pipeline needs all four.Model metricsprecision, recall, F1Are predictions right?Data metricsmissing, drift, skewAre inputs healthy?System metricslatency, errors, costIs serving healthy?Business metricsoutcome and user valueDoes it help?Diagram: Interview Clozo, CC BY 4.0 ·interview.clozo.ai/blog/what-metrics-would-you-track-to-evaluate-the-performance.html

Each layer catches a failure the other three miss, so track all four.CC BY 4.0 — source: What metrics would you track to evaluate the performance of your ML pipeline?
Step-by-step description
  1. Precision and recall judge the predictions.
  2. Missing values, drift and skew judge the inputs.
  3. Latency, errors and cost judge the serving path.
  4. Outcome metrics judge the value delivered.
  • Model metrics such as precision and recall judge the quality of the predictions.
  • Data metrics such as missing values, drift and skew judge the inputs.
  • System metrics such as latency, errors and cost judge the serving path.
  • Business metrics judge whether the pipeline helps users and the company.

Step 1: Model metrics and why accuracy misleads on imbalanced data

Model metrics measure how right the predictions are, and the right metric depends on which mistake costs more. Precision is the share of flagged cases that were truly positive. Recall is the share of truly positive cases the model found. The F1 score is the harmonic mean of precision and recall, so it is high only when both are. Calibration is how well predicted probabilities match real frequencies: of cases scored at 0.8 (illustrative), about 80% should be positive.

Take an illustrative batch of 1,000 cases with a 12% positive rate: 80 true positives, 20 false positives, 40 false negatives and 860 true negatives.1 Accuracy is 0.94, but precision is 0.80, recall is 0.667 and F1 is 0.727.1 A model that always answers negative scores 0.88 accuracy with zero recall.1 Accuracy rewards the majority class; recall shows the 40 positives missed.

On imbalanced data accuracy (0.94) looks strongest while recall (0.667) shows that one positive case in three is missed.
MetricValue in the illustrative batch
Accuracy0.94
Precision0.80
Recall0.667
F1 score0.727
Balanced accuracy (mean of recall and specificity, the share of true negatives correctly cleared: 860 of 880 = 0.977)10.822
Accuracy of "always negative"0.88
Accuracy looks best while recall shows the missed casesBar chart for an illustrative classifier on imbalanced classes. Accuracy is 0.94, precision 0.80, recall 0.667, F1 0.727 and balanced accuracy 0.822. Accuracy is the highest bar and recall the lowest.Score00.51AccuracyPrecisionRecallF1BalancedMetric0.940.80.66670.72730.822Diagram: Interview Clozo, CC BY 4.0 ·interview.clozo.ai/blog/what-metrics-would-you-track-to-evaluate-the-performance.html
On imbalanced data accuracy is the highest bar and recall the lowest, so quote both.CC BY 4.0 — source: What metrics would you track to evaluate the performance of your ML pipeline?
Text description of the diagram
  • Accuracy is 0.94, but precision is 0.80, recall is 0.667 and F1 is 0.727.
  • A model that always answers negative scores 0.88 accuracy with zero recall.

Choose recall when a miss is costly (fraud, disease) and precision when a false alarm is costly (blocking a good customer). When scores drive decisions, add calibration.

Beyond one threshold: ROC-AUC, PR-AUC and regression errors

Precision, recall and F1 all depend on a decision threshold, and two measures avoid that choice. The area under the receiver operating characteristic curve (receiver operating characteristic (ROC)-area under the curve (AUC)) measures ranking quality across all thresholds, as the scikit-learn model-evaluation documentation defines it. The area under the precision-recall (PR) curve, called PR-AUC, is more informative than ROC-AUC when positives are rare (Saito and Rehmsmeier, 2015).

For a regression model, use the mean absolute error (MAE) or the root mean squared error (RMSE); scikit-learn describes both in the unit of the target. Report these beside the thresholded numbers, not instead of them, because a deployed system still has to choose one operating point from the cost of a missed positive against the cost of a false alarm.

Step 2: Data metrics catch problems before the model does

Data metrics measure whether the inputs look like what the model was built for, and they often warn earlier than model metrics because labels arrive late. Track the schema (types and columns), the missing-value rate per feature, value ranges, and each feature's distribution against a reference such as the training set. Google's Rules of Machine Learning say the best solution to skew is to monitor it explicitly so system and data changes do not slip in unnoticed. The ML Test Score paper (Breck et al., 2017) lists tests that data invariants hold and that training and serving are not skewed.

Measuring drift with the population stability index

The population stability index (PSI) is one common drift number: split a feature into bins that each hold an equal expected share (quantile bins), then sum (actual share minus expected share) times the natural log of their ratio.

PSI=∑i(ai−ei)lnaiei

Here ai is the actual share and ei the expected share of bin i. An empty bin needs a small floor value, because the logarithm of zero is undefined. With four bins that held a quarter of the data each in training and now hold 15%, 20%, 30% and 35% (illustrative), the PSI is about 0.105.1 No universal alert level exists; set the threshold from your own history.

Step 3: System metrics keep the pipeline usable

System metrics measure whether the pipeline answers quickly, reliably and affordably, because a correct answer that arrives late is still a failure. Track latency as percentiles, since the average hides the slowest requests that users notice. Add throughput (requests handled per second), error and timeout rate, and cost per request. The training and data side has its own health numbers: job success and failure rate, data freshness (how old the newest training or feature data is) and training time.

The ML Test Score paper adds checks specific to machine learning: that models are not too stale, that they are numerically stable, that computing performance has not regressed, and that dependency changes trigger a notification (Breck et al., 2017). Staleness matters because a model trained on old data drifts away from current behaviour.

Per-stage numbers help you locate faults: log latency and error rate for feature lookup, model call and post-processing separately, so a slow response points to a stage. You now have the three technical layers; the last one decides whether they matter.

Step 4: Business and online metrics prove the pipeline is worth running

Business metrics judge whether the pipeline helps users and the company. They measure whether the pipeline delivers the outcome it was built for, such as conversions, fraud losses avoided, time saved or user retention. A model metric is a proxy for that outcome, and the proxy can drift away from it, so the final check is a live one.

The usual method is a controlled online experiment: send a small share of traffic to the new model while the old one serves the rest, and compare outcome metrics. The ML Test Score paper describes a mitigation in which new models see only a small fraction of traffic, gradually increased as the new model is observed to behave sanely (Breck et al., 2017). When true labels arrive late, track proxy signals such as user corrections or complaints in the meantime. The trade between the two settings is covered in pre-deployment versus live evaluation.

Knowing it is half the job. Saying it is the other half.

Interview Clozo is an AI interview copilot for real interview rounds: it hears the question and puts a strong answer on your screen, and you say it in your own words. See the features or how it works.

Start Free Trial →

The Staff-level answer

Interviewer asks

What metrics would you track to evaluate the performance of your ML pipeline?

A strong answer

I group them by layer. For data, I track schema checks, missing-value rates and drift against the training distribution, plus a check that serving features match training features. For the model, I choose metrics from the cost of each error: precision, recall and F1 on imbalanced data, never accuracy alone, and calibration if scores drive decisions. For the system, I watch latency percentiles, error rate, throughput and cost per request. Then business metrics, such as conversion or fraud loss avoided, confirmed with a gradual online rollout. I alert on trends, and I keep a golden set to catch regressions after each retrain.

What makes it Staff-level: it ties each metric to a failure it catches, names the training-serving check and the rollout, and says how the metrics are watched after launch. The golden-set and regression-testing page covers the last habit.

The rubric

A strong answer groups metrics by layer; a Staff answer also says how each group is monitored and which failure it catches.
DimensionWeak answerStrong answerStaff answer
CoverageNames accuracy onlyCovers data, model, system and business groupsMaps each group to a failure it catches
Model metricsAccuracy for everythingPrecision, recall, F1 chosen by error costAdds PR-AUC, calibration, thresholds and slices of users
Data healthNot mentionedMissing values and driftChecks training-serving skew and input invariants
RolloutNot mentionedCompares old and new model onlineGradual traffic ramp with a rollback condition
CommunicationLists metric namesGroups them and explains whyGives the order to build them and the first alert

Three variants of this question

What metrics would you track for an LLM application instead of a classifier?

Keep the four layers, but swap the model metrics: measure groundedness, answer relevance and hallucination rate, often scored with a judge model against a golden set. See Ragas for retrieval-augmented generation (RAG) evaluation, LLM-as-a-judge and why LLMs hallucinate.

How would you monitor the model when the true labels arrive weeks later?

Lean on data metrics and proxies in the meantime: input drift, score distribution, and user feedback signals. Then compute the real metrics on the delayed labels and compare them with the proxies to see whether the proxies were trustworthy.

What would you do if accuracy is high but users complain?

Slice the metrics by user group and error type, because an average can hide a failing segment, and check recall for the cases users care about. Then compare serving inputs with training inputs for skew, and review the business metric the complaint touches.

Common mistakes

  • "I'd track accuracy." (wrong) It rewards the majority class. (right) "On imbalanced data I'd use precision, recall and F1, and say which error costs more."
  • "High validation accuracy means production is healthy." (wrong) Training-serving skew can make serving performance differ from training performance, as the Rules of Machine Learning explain. (right) "I monitor skew and input invariants as well as accuracy."
  • "Monitoring means model quality." (wrong) The ML Test Score paper also lists staleness, numerical stability and compute-performance checks. (right) "I monitor data, model and system health together."
  • "I'd alert whenever a metric moves." (wrong) Noise causes alert fatigue. (right) "I set thresholds from history and alert on sustained trends."

Follow-up questions

How do you detect training-serving skew?

Log the features used at serving time and compare their values with the training pipeline's values for the same cases. Google's Rule 29 goes further: save serving-time features and use them for training, so both phases see the same values.

How do you detect data drift in production?

Compare each feature's live distribution with a reference window using a drift measure such as the population stability index, and alert on a sustained move. Pick the threshold from your own history.

Which metric do you use when the classes are imbalanced?

Use precision, recall and F1, balanced accuracy or PR-AUC, and choose the lead metric from the cost of a miss against the cost of a false alarm. State the decision threshold, because every one of these depends on it.

How do you roll out a new model safely?

Run it beside the old model on a small share of traffic, compare outcome and health metrics, and grow the share only while it behaves. Keep a rollback condition written down before the ramp starts.

How do you guard the live outputs of a language-model system?

Check the output itself before it reaches the user: filter inputs and outputs for unsafe or off-policy content, run policy checks such as format, banned topics and grounding in the source text, and return a fallback response when a check fails. Log every blocked output so the block rate becomes a metric. These checks are covered in LLM guardrails; to design the whole evaluation, see how to design an eval for X.

Key takeaways
  • Track four layers: data, model, system and business metrics.
  • Choose the model metric from the cost of each error; accuracy alone misleads on imbalanced data.
  • Monitor training-serving skew and input drift, not only prediction quality.
  • Track latency percentiles, errors, staleness and cost for the serving path.
  • Confirm business impact with a gradual online rollout against the old model.

Sources

  1. Best Practices for ML Engineering (Rules of Machine Learning) — Google for Developers, 25 Aug 2025
  2. What's your ML Test Score? A rubric for ML production systems (Breck et al.) — Google Research (IEEE International Conference on Big Data, 2017), 11 Dec 2017
  3. Metrics and scoring: quantifying the quality of predictions (model evaluation) — scikit-learn documentation, 26 Oct 2026
  4. The Precision-Recall Plot Is More Informative than the ROC Plot When Evaluating Binary Classifiers on Imbalanced Datasets — PLOS ONE (Saito and Rehmsmeier), 4 Mar 2015