Test Whether a New Google Photos Classifier Beats the Baseline

Last updated: November 29, 2026

Quick Overview

On the same 5,000 labeled photos, a new face clustering classifier is 0.4 points more accurate than the current one. Explain how to test whether the improvement is real, using the fact that both models were scored on identical examples.

Google
Machine Learning
Machine Learning Engineer
Google
November 29, 2026
Machine Learning Engineer
Onsite
Machine Learning
Hard

0

0

0 solved


On the same 5,000 labeled photos, a new face clustering classifier is 0.4 points more accurate than the current one. Explain how to test whether the improvement is real, using the fact that both models were scored on identical examples.

Google Photos teams compare candidate models on shared golden sets before launch reviews. The interviewer probes whether you exploit pairing (both models see the same items), know McNemar's test or the paired bootstrap, and can explain why an unpaired test is wrong here.

What the Interviewer Expects
  • Recognizes the paired structure and why an unpaired two-proportion test is wrong
  • Builds the 2x2 disagreement table and explains only discordant pairs matter
  • Implements or computes McNemar's exact test correctly
  • Offers a paired bootstrap as a metric-agnostic alternative
  • Discusses practical significance and slicing alongside statistical significance
Key Topics to Cover
McNemar test
paired comparison
statistical significance
golden set evaluation
multiple comparisons
How to Approach This
  1. Understand the bias-variance trade-off. High training accuracy but low test accuracy signals overfitting.
  2. Choose evaluation metrics carefully based on the problem. Accuracy alone is often insufficient.
  3. Feature engineering is often more impactful than model selection.
  4. Know when to use tree-based models (tabular data) vs neural networks (unstructured data).
  5. Handle class imbalance with SMOTE, class weights, or appropriate loss functions.
Possible Follow-up Questions
  • How would you compare models on F1 or NDCG instead of accuracy?
  • What if you tested 20 candidate models on the same golden set?
  • How do you handle examples that are themselves correlated, such as many photos of one person?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Explore ML Interview Prep
Sample Answer
Clarify

Confirm both models were scored on exactly the same examples, the labels are fixed, and the metric is accuracy. Ask how many candidates were tried on this set, because repeated testing affects how we ...

Approach

When both models see the same items, examples where both are right or both are wrong carry no information about which is better. Only discordant pairs matter: let bb be items model A gets right and B...


Submit Your Answer
Markdown supported