Setting the Auto-Removal Threshold for a Hate Speech Classifier
Last updated: November 29, 2026
Quick Overview
A hate speech classifier outputs a score per Instagram comment. Explain how you would choose one threshold for automatic removal and another for sending to human review, given the costs of each type of error.
Meta
November 29, 20260
0
0 solved
A hate speech classifier outputs a score per Instagram comment. Explain how you would choose one threshold for automatic removal and another for sending to human review, given the costs of each type of error.
This tests whether you can turn a model score into a policy decision, which is core to how Meta integrity teams operate with mixed automation and human review. The interviewer looks for explicit costs, capacity constraints and an evaluation plan for each band.
What the Interviewer Expects
- Define costs for false removals, missed violations and review effort
- Use calibrated probabilities so thresholds map to expected precision
- Pick an auto-action threshold from a precision target and a review band from capacity
- Plan for appeals data and sampled audits to monitor each band
- Address fairness across languages and dialects
Key Topics to Cover
How to Approach This
- Understand the bias-variance trade-off. High training accuracy but low test accuracy signals overfitting.
- Choose evaluation metrics carefully based on the problem. Accuracy alone is often insufficient.
- Feature engineering is often more impactful than model selection.
- Know when to use tree-based models (tabular data) vs neural networks (unstructured data).
- Handle class imbalance with SMOTE, class weights, or appropriate loss functions.
Possible Follow-up Questions
- How would you set thresholds differently for a language with little training data?
- What happens to your review band when reviewer capacity drops by half?
- How do appeals outcomes feed back into the thresholds?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Explore ML Interview PrepSample Answer
Clarify
I would ask about the cost of wrongly removing a comment (user harm, appeals load, creator trust), the cost of leaving a violating comment up (harm scales with views), reviewer capacity per day, and w...
Approach
Treat it as two decisions on a calibrated score . For auto-removal, remove when the expected cost of leaving it exceeds the expected cost of removing: , giving $s > ...