Problem
Profile photos at Badoo and Bumble pass automatic models first, then human moderators. The team wants to replace the production Model A with Model B (in-house or third-party) to automate more moderation without letting unsafe photos through. About 97% of photos are safe, and Model B is not deployed on production infrastructure, so it can score only a limited number of requests. A random sample of 10,000 photos holds roughly 300 unsafe ones, too few and too specific to trust.
Example from the article: Model A and Model B are compared on 10,000 photos. The naive confusion matrix favors Model B, yet on production traffic it is worse (numbers are invented for illustration).
Solution in brief
Build the test set so that every cell of Model A's confusion matrix (TN, FP, TP, FN) has the same number of photos. Run Model B on it, record where each group of photos goes, then weight each group back to its real production share. The production-level rates of automation and missed unsafe photos come from these weighted numbers, not from the raw matrix.
Questions this case answers
- How to compare two classifiers on a rare-class production stream when the candidate can score only a small sample and a random sample holds too few positives
- How to convert error counts measured on an artificially rebalanced test set into the error rates the model would have on the real traffic distribution
- How to compare a candidate classifier with the production model when the positive class is under 3% of traffic and the candidate can only score a limited number of requests?
- How to read production precision, recall and automation rate from a test set that was deliberately rebalanced?
Tools and methods
- Model-based stratified sampling — collect equal counts per Model A outcome cell, so rare cells (FN, TP) get enough samples.
- Error transfer chart with re-weighting — show how each Model A cell splits into Model B outcomes, then scale to production shares.
Google or a one-time email code. No password.