KatInterview

Metrics, Monitoring, and Rollout for an Audio Moderation Pipeline

Machine LearningModel answer
HardModel answerMachine Learningmetrics-designml-monitoringexperimentation

Last updated

Design the full measurement stack for an ML-powered audio moderation system: product and model metrics, SLOs, alerting, and safe rollout strategy.

Measuring and Monitoring an Audio Moderation System

Your team ships an ML pipeline that listens to voice content, classifies short audio clips into violation categories (harassment, hate speech, sexual content, self-harm, off-platform solicitation, benign), and routes each clip to one of three outcomes: automatic enforcement, human review, or no action.

The system processes roughly 1 million hours of voice per day, supports multiple languages, and serves a large population of users under 13. A human review team handles around 50,000 items per day. Violations are rare relative to total volume, and the cost of missing a child-safety violation is significantly higher than the cost of a false mute.

Your task: design the complete measurement and monitoring strategy for this system. Your answer should cover:

  1. A metric hierarchy from business outcomes down to model outputs — what each metric measures and how you would actually compute it given that most audio is never labeled.
  2. ML metrics per class (precision, recall, false positive rate, calibration), including how you handle the labeled-only-on-flags bias problem.
  3. Human review metrics: yield, inter-rater agreement, reviewer accuracy, and queue operations.
  4. System SLOs: latency, throughput, queue health, reliability, cost, and drift detection.
  5. Alerting thresholds and dashboards: what pages vs. tickets, how you avoid diurnal false alarms.
  6. A rollout strategy for new models or threshold changes: offline gates, shadow mode, canary ramp, and A/B testing — with the right randomization unit and what to do when a metric fires.

State your assumptions. Name the trade-offs in each choice. Use concrete numbers wherever they help.

Hints

Hint 1

Recall is almost impossible to measure if you only label items the model flagged. How would you estimate the false negative rate on traffic the model never surfaced?

Hint 2

Think about what pages you at 2am versus what creates a support ticket. Flag-rate alerts against an absolute threshold will page constantly on Monday mornings — how do you fix that?

Hint 3

For a threshold change that affects auto-enforcement, the randomization unit matters a lot. Why is 'randomize by user' probably wrong here, and what unit makes more sense?