Why ROC AUC Misleads When Scoring Rare Integrity Violations

Last updated: November 29, 2026

Quick Overview

An integrity classifier for policy-violating Facebook posts reports a ROC AUC of 0.97, but reviewers say most flagged posts are benign. Explain why ROC AUC hides this and which metric you would report instead.

Meta
Machine Learning
Data Scientist
Meta
November 29, 2026
Data Scientist
Onsite
Machine Learning
Medium

0

0

0 solved


An integrity classifier for policy-violating Facebook posts reports a ROC AUC of 0.97, but reviewers say most flagged posts are benign. Explain why ROC AUC hides this and which metric you would report instead.

Integrity teams at Meta score billions of posts where the violating base rate can be well under 1%. The interviewer wants to see that you understand how class imbalance interacts with ROC and precision-recall curves, and that you tie the metric to the reviewer queue that actually consumes the scores.

What the Interviewer Expects
  • Explain that ROC AUC is invariant to the base rate while precision is not
  • Compute precision at a realistic operating point from FPR, TPR and prevalence
  • Recommend PR AUC or precision at fixed recall for the business decision
  • Connect the metric to reviewer capacity and user harm
  • Mention reporting metrics per violation type and surface
Key Topics to Cover
ROC AUC
Precision-recall curve
Class imbalance
Operating point
Prevalence
How to Approach This
  1. Understand the bias-variance trade-off. High training accuracy but low test accuracy signals overfitting.
  2. Choose evaluation metrics carefully based on the problem. Accuracy alone is often insufficient.
  3. Feature engineering is often more impactful than model selection.
  4. Know when to use tree-based models (tabular data) vs neural networks (unstructured data).
  5. Handle class imbalance with SMOTE, class weights, or appropriate loss functions.
Possible Follow-up Questions
  • How would your answer change if prevalence doubled during an election?
  • How do you compare two models whose PR curves cross?
  • How would you estimate prevalence itself without labeling everything?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Explore ML Interview Prep
Sample Answer
Clarify

I would confirm the base rate of violating posts in the scored population (say 0.2%), how scores are consumed (auto-action versus human review queue), and the reviewer capacity per day. The metric sho...

Approach

ROC AUC measures the probability that a random positive outranks a random negative. Both axes, TPR and FPR, are normalized within their own class, so the curve does not change when negatives vastly ou...


Submit Your Answer
Markdown supported