KatInterview

Build a Multimodal Pipeline to Flag and Handle Unsafe Videos

Machine LearningModel answer
HardModel answerMachine Learningml-system-designcontent-moderationmultimodal

Last updated

Design an ML-driven system that screens uploaded and already-published videos for policy violations, blends automation with human reviewers, supports appeals, and resists evasion.

Problem

You are asked to design the machine-learning system that keeps a large video-sharing platform safe. It must find videos that break policy, decide what to do with them, and let people challenge those decisions.

Requirements

  • Cover several policy areas, for example graphic violence, self-harm, hateful conduct, and sexual content.
  • Work in two modes: when a video is uploaded, and on videos that are already live (for example after a user report, a sudden spike in views, a new model, or a policy change).
  • Combine automated actions with human reviewers.
  • Keep both kinds of error low: harmful videos that slip through, and legitimate videos that get wrongly taken down.
  • Support appeals by creators and keep a trustworthy audit trail of every decision.

What to cover

  1. Scope and scale. State your assumptions (volume, video length, latency targets).
  2. Architecture. Data flow from upload to final action, and how already-published content is re-checked.
  3. Model strategy. How you use video, audio, text, and context signals together, and how you keep compute cost under control.
  4. Labeling and review. Queues, prioritization, label quality, and feedback into training.
  5. Metrics. What you measure offline and online, and how you handle very low prevalence.
  6. Appeals and auditability.
  7. Adversarial evasion. How bad actors try to get around the system and how you respond.

Hints

Hint 1

Start by writing down numbers (uploads per day, average length, frames sampled per second). They will justify a cascade where cheap checks run on everything and expensive models only on a small, uncertain slice.

Hint 2

Not all harms are equal. Think about which categories need recall at almost any cost, which need high precision, and how graduated actions (restrict, reduce reach, remove) plus configurable thresholds let you handle both without retraining.

Hint 3

For metrics, remember that violations are rare. Plain accuracy is useless, and you need an unbiased random sample to estimate true prevalence and recall. For evasion, think about re-encoding, cropping, overlays, and adversarial probing, and how hashing, augmentation, and red-teaming address them.