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
Machine Learning
Machine Learning Engineer
Amazon
November 29, 2026
Machine Learning Engineer
Onsite
Machine Learning
Hard

0

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
Positive-unlabeled learning
Class prior estimation
Selection bias
Precision at k
Adversarial ML
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 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 Prep
Sample Answer
Clarify
  • Labeled set PP: confirmed fakes, a few tens of thousands. Unlabeled set UU: millions of reviews, some fraction π\pi of which are fake.
  • How were positives selected? If investigators focus on cer...
Approach

Naively labeling UU 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...


Submit Your Answer
Markdown supported