KatInterview

Build a Multimodal Content Moderation Pipeline

Machine LearningModel answer
MediumModel answerMachine Learningml-system-designmultimodalcontent-moderation

Last updated

Design an ML system to classify and filter harmful user-generated content across text, images, and video at high throughput with strict latency constraints.

You're building a content moderation system for a social platform that needs to evaluate user uploads for policy violations including hate speech, graphic violence, adult content, spam, and self-harm imagery.

Requirements

Your platform receives 100,000 uploads per second containing:

  • Images with text captions (majority of traffic)
  • Text-only posts
  • Short-form videos (under 60 seconds)

The system must:

  • Classify each upload and assign risk scores across multiple violation categories
  • Prevent harmful content from reaching other users
  • Complete classification within 200ms to avoid blocking the upload flow
  • Handle traffic spikes up to 3x normal volume
  • Maintain high precision (minimize false positives that frustrate legitimate users)

What to Cover

Design the end-to-end system including:

  1. Overall architecture: How you'll process different content types within the latency budget
  2. Model approach: How you'll handle multiple modalities (text, image, video) together
  3. Training pipeline: Where labels come from, how you handle edge cases, and how you ensure quality
  4. Production operations: Monitoring for model degradation, handling scale, and continuous improvement

Discuss trade-offs explicitly. A complete video analysis won't fit in 200ms—explain how you'd handle that constraint.

Hints

Hint 1

Most content is benign. Design a cascade where cheap filters handle the common case and expensive models only see flagged items.

Hint 2

Video processing is too slow for synchronous decisions. Consider what intermediate action you can take while deeper analysis runs in the background.

Hint 3

False positives create user friction and appeals. Think about how you'll set thresholds and measure precision across different violation types.