Train a Fake Review Detector When Only Confirmed Fakes Are Labeled
Last updated: November 29, 2026
Quick Overview
You have a set of reviews confirmed as fake by investigators, and millions of unlabeled reviews that are mostly genuine but contain unknown fakes. How would you train and evaluate a classifier for fake reviews?
Amazon
November 29, 20260
0
0 solved
You have a set of reviews confirmed as fake by investigators, and millions of unlabeled reviews that are mostly genuine but contain unknown fakes. How would you train and evaluate a classifier for fake reviews?
Review integrity is a major Amazon trust problem, and labels come only from investigations, so the setting is positive-unlabeled (PU) learning. Interviewers check whether you recognize that treating unlabeled data as negative biases the model, and how you evaluate without clean negatives.
What the Interviewer Expects
- Recognize the positive-unlabeled setting
- Explain the bias of treating unlabeled as negative
- Describe a PU method and its assumptions
- Propose evaluation without a full labeled negative set
- Discuss features that resist adversarial adaptation
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 estimate the fraction of fakes in the unlabeled pool?
- What if investigators only label fakes from certain seller types?
- How would you use reviewer-graph features?
- How do you handle fraudsters adapting to the model?
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
- Labeled set : confirmed fakes, a few tens of thousands. Unlabeled set : millions of reviews, some fraction of which are fake.
- How were positives selected? If investigators focus on cer...
Approach
Naively labeling as negative teaches the model that hidden fakes look genuine. Under the selected completely at random (SCAR) assumption, a labeled fake is a random sample of all fakes with co...