KatInterview

Designing Metrics and A/B Tests for Harmful Feed Content

Statistics & ExperimentsModel answer
MediumModel answerStatistics & Experimentsab-testingmetricstrust-and-safety

Last updated

Define a severity-aware metric for harmful content exposure, then design a randomized experiment to test a feed intervention despite rare outcomes, costly labels, and adversaries.

You work on the data science team for a social platform with a content feed. The company wants to cut how much harmful user-generated content people see. The team is about to ship a change that demotes borderline harmful posts in feed ranking, and you have been asked to evaluate it.

Answer the following as you would in a technical screen:

  1. Clarify the problem. Which questions would you ask before designing anything?
  2. Measure harm. What primary metric would you use, and why? How would you estimate it when harmful content is rare and labeling is expensive? How would you account for different severity levels?
  3. Design the experiment. State the hypothesis, the randomization unit, the primary metric, the secondary metrics, and the guardrails. Explain what changes if the intervention is removal rather than demotion.
  4. Address statistical power. Harmful views might be around 0.1% of all views. How would you size the experiment, and how would you reduce labeling cost?
  5. Interpret the results. What risks (ethical, interference, adversarial, measurement) could undermine your conclusions?

A structured answer with concrete metrics, trade-offs, and rough numbers is expected.

Hints

Hint 1

Think about exposure rather than item counts: a violating post seen a million times matters more than one seen twice. Also ask why takedown counts are ambiguous as a metric.

Hint 2

Because harm is rare, uniform random labeling is wasteful. Consider oversampling impressions that a classifier scores as risky, then correcting with inverse-probability weights, and make sure the outcome labels come from humans rather than the model being tested.

Hint 3

Choose the randomization unit by asking where interference occurs. Demotion changes only one viewer's feed, while removal changes what everyone sees. Also consider which control arms are ethically unacceptable.