KatInterview

Diagnosing a Spike in Harassment Policy Violations

Statistics & ExperimentsModel answer
MediumModel answerStatistics & Experimentscontent-moderationcausal-inferenceexperiment-design

Last updated

A monthly moderation report shows harassment violations rising sharply — determine whether the surge is real or a measurement artifact, then design and evaluate a mitigation.

Background

You're a Data Scientist on a content integrity team. At your monthly review, you notice that the Harassment category jumped sharply compared to the prior month. A post is flagged as violating when its model score exceeds 0.5, and the monthly counts are based on distinct posts that were viewed during each calendar month. A single post can be tagged under multiple violation categories simultaneously.

Work through the five parts below. For each part, reason out loud: state your assumptions, flag what you'd need to look up, and call out the statistical traps.


Part 1 — Define what moved

Before investigating causes, nail down the metric. Distinguish between a volume increase (more harassment posts exist) and a rate increase (a larger proportion of content is harassing). Which prevalence definitions and denominators would you compute? Over which time windows would you compare them?

Part 2 — Generate hypotheses

List the most plausible explanations, covering both genuine behavioral changes and measurement artifacts. Your list should include at minimum:

  • A true rise in abusive behavior
  • Shifts in traffic composition across surfaces, regions, languages, or creator cohorts
  • Seasonality or external real-world events
  • Coordinated campaigns or repeat offenders
  • Changes to the policy definition
  • Changes to the model version, decision threshold, or score calibration
  • Data pipeline, logging, or backfill issues

Part 3 — Investigate: real signal or artifact?

Lay out a concrete, prioritized investigation plan. Specify:

  • Which metrics and segments you'd pull
  • Which external datasets you'd request (human-review labels, user reports, enforcement logs, model-version metadata)
  • How you'd address denominator effects, Simpson's paradox, selection bias, label drift, and model calibration — do not just name them; explain how each one could fool you here and how you'd control for it
  • How you'd validate model-scored metrics against human-reviewed ground truth

Part 4 — Propose mitigations (assume the surge is real)

Recommend a set of interventions spanning product, ranking, policy, operations, and ML. Separate short-term containment actions from longer-term structural fixes.

Part 5 — Evaluate a mitigation

Pick one intervention and design an experiment or quasi-experiment to test it. Specify: primary metric, guardrail metrics, unit of randomization (or rollout design if a clean experiment isn't feasible), and how you'd handle the tradeoffs between false positives, fairness, and user experience.

Hints

Hint 1

Start with the denominator before the numerator. If total viewed posts grew 30% month-over-month, raw violation counts can rise while the prevalence rate is flat or even falling. Write out the exact metric formula before forming any hypothesis.

Hint 2

To separate a model artifact from a real behavioral change, overlay your daily time series with model deployment dates and threshold-change events. A sharp step function aligned with a deploy is a red flag. Then re-score a frozen random sample from both months using a single pinned model version — if the gap collapses, the classifier is the culprit.

Hint 3

When drawing a sample for human review, do not pull from flagged or reported posts — that population over-represents high-confidence and high-visibility cases. Use a stratified random sample across score bins and apply inverse-probability weights to recover an unbiased prevalence estimate.