Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started

Design Hate-Speech Comment Detection

Hard
HardSystem DesignFeature StoreFeature DriftModel ServingAsked 2 times

Problem

Product Context

Meta wants to detect and act on hateful text comments across Facebook and Instagram. The system should score comments in real time for enforcement and also support downstream human review, user reporting, and policy analytics.

Scale

SignalValue
DAU impacted1.8B users across Facebook + Instagram
New text comments/day9B
Peak comment creation QPS220K
Peak comment-view QPS needing precomputed safety scores1.2M
Supported languages120+
p99 latency budget for write-time decision120ms end-to-end
Human review queue capacity~8M comments/day

Task

Design an end-to-end ML system for hate-speech detection on text comments. Your design should address:

  1. How you define the prediction target, policy tiers, and product actions (allow, downrank, send to review, remove).
  2. The full architecture from data collection and labeling to online serving, including a multi-stage pipeline rather than a single model.
  3. Model choices for fast filtering, ranking, and high-precision re-scoring under strict latency and cost constraints.
  4. Offline and online evaluation, including how you handle delayed labels, policy changes, and multilingual performance.
  5. Monitoring, failure modes, and rollback plans, especially for feature drift, training-serving skew, adversarial evasion, and fairness across languages/dialects.

Constraints

  • False positives are costly: incorrect removals harm user trust and creator experience.
  • False negatives are also costly: missed hate speech creates safety and regulatory risk.
  • Some actions must happen synchronously at comment creation; others can be asynchronous within minutes.
  • Labels are noisy and partially delayed: user reports, reviewer decisions, and appeals may arrive hours or days later.
  • The system must support policy updates without requiring a full retrain for every threshold change.
  • Raw text retention is limited in some regions, so feature logging and compliance constraints matter.
Practicing as: Machine Learning Engineer interview at Meta

Hi, I'll play your Meta interviewer for the Machine Learning Engineer role. Candidates describe these interviews as mostly positive and moderately difficult, so expect me to be friendly and conversational. Take your time with the question above and answer like we're in the room.

Take this as a live interview session →

You are practicing as a guest. Sign up free to get your answer graded with AI feedback. Your draft stays right here.

Sign up freeI have an account
Sign up to unlock solutions
Meta Research Scientist Interview QuestionsMeta Machine Learning Engineer Interview QuestionsTop 50 Feature Drift Interview Questions
Next questions
MetaReal-Time Hate Speech DetectionHardMetaDesign Facebook Feed RecommenderHardMetaDesign ML Network Repair PipelineHard