← Questions

Analyze the failures of a vision model

0
AppleAI/ML designLast asked Mar 2026

An AI/ML design interview question asked in Apple's AI/ML design round, last asked Mar 2026. It tests computer vision, error analysis and evaluation.

You work on a computer vision product. The discussion has three parts: the machine learning fundamentals that matter most in vision, a short probability question, and how you would diagnose a production vision model that started underperforming after launch.

Part 1: fundamentals

Explain bias versus variance, overfitting, class imbalance, evaluation metrics (precision, recall, ROC and PR curves), how to pick a decision threshold, calibration, and data leakage, each with a vision example.

Part 2: probability

5% of the images in a photo stream are truly blurry. A blur detector flags 90% of blurry images and also flags 10% of sharp ones. An image is flagged. What is the probability it is truly blurry?

P(blurry | flagged) = 0.05·0.90 / (0.05·0.90 + 0.95·0.10) = 0.045 / 0.14 ≈ 0.32

Part 3: diagnose a model that got worse after launch

Describe a structured process to find the root causes and decide on fixes. Consider data drift, label quality, train-serving skew, preprocessing bugs, feature problems, model capacity, thresholds, and offline metrics that don't match online results.

Clarifying questions

  • What does the model do (classify, detect, segment), and what does "underperforming" mean: which metric, by how much, since when?
  • Did anything change at the same time: app version, camera pipeline, user population?
  • Do we have labeled production data, or only proxy signals?
  • What does a false positive cost compared with a false negative?

What a strong answer covers

  • In Part 2, the low base rate as the reason a 90%-accurate detector is right only about a third of the time when it flags; what that means for the threshold.
  • Slicing failures by condition (lighting, device, region, class), looking at examples and confusion matrices, to tell data problems from model problems.
  • Checking the pipeline before the model: preprocessing parity between training and serving (resize, color space, normalization), then drift and label audits.
  • Matching each cause to a fix: more or better-labeled data, augmentation, recalibration or a new threshold, a larger model, or fixing the serving code.
  • Validating the fix offline on the failing slices and online before full rollout.

Follow-ups

  • How would you set up monitoring to catch the next drift before users do?
  • The fix improves the failing slice but hurts another. How do you decide?
  • When is retraining on production data risky?

Where it's asked

  • Apple · AI/ML design · Last asked Mar 2026

What it tests

computer vision · error analysis · evaluation

Your canvas
Draw your answer hereBoxes, arrows and notes, saved for you to come back to.Sign in to start drawing