Content Moderation & Fraud Detection - Patterns in Industry

Eugene Yan26 Feb 2023

Problem

Teams that moderate content or fight fraud usually start without labels. Labels that do exist are fuzzy, abusive items are a tiny share of traffic, and attackers change tactics quickly. A heavy model on every item is slow and costly. Wrong fraud decisions also hurt real people. The article collects five patterns companies repeat.

Example from the article: Stack Exchange blocks spam in layers: rate limits for impossible posting speed, regular expressions plus six user flags, and finally an ML system that casts automatic flags.

Solution in brief

Start from whatever ground truth you can get, then stretch it with synthetic data and similar samples. Put cheap rules in front of ML in a cascade. Pair supervised models with unsupervised anomaly detection for unseen abuse. Keep decisions explainable.

Questions this case answers
  • How to build the first labeled dataset for a rare, adversarial classification problem when labels are scarce and fuzzy
  • How to combine cheap rules, supervised models and unsupervised anomaly detection so that most traffic is handled early and only hard cases reach slow models or humans
  • How to collect enough trustworthy ground truth to start a content moderation or fraud detection system?
  • How to grow a small labeled set of abusive items without labeling everything by hand?

Tools and methods

  • Human-in-the-loop labeling — users, annotators and analysts supply and confirm ground truth
  • Active learning and nearest-neighbor expansion — pick the samples worth reviewing next
  • Synthetic data and text augmentation — add diverse, lower-quality training examples
  • Rule-based heuristics — remove the easy share of traffic before ML
  • Cascade of models — cheap stage first, expensive stage only for flagged items
  • Isolation forest — unsupervised detection of behavior unlike normal traffic
  • Permutation feature importance — explain which features drive predictions
  • Amazon Mechanical Turk, FastText — annotation service and text embeddings used in the cited cases
Continue reading — it's free

Google or a one-time email code. No password.