Detect Prohibited and Counterfeit Listings With Scarce Labels

Last updated: November 29, 2026

Quick Overview

Build a classifier that flags newly uploaded product listings likely to be prohibited or counterfeit using titles, images, seller history and price, when confirmed positives are rare and labels come from slow manual review.

Temu
Machine Learning
Machine Learning Engineer
Temu
November 29, 2026
Machine Learning Engineer
Onsite
Machine Learning
Medium

0

0

0 solved


Build a classifier that flags newly uploaded product listings likely to be prohibited or counterfeit using titles, images, seller history and price, when confirmed positives are rare and labels come from slow manual review.

Temu lists enormous numbers of new items from many sellers and faces regulatory pressure (for example the EU Digital Services Act and product safety rules) to keep illegal or unsafe goods off the platform. The interviewer checks how you handle extreme imbalance, label noise, adversarial sellers and the precision versus review-capacity trade-off.

What the Interviewer Expects
  • Frame the output as a risk score feeding a review queue, not a hard ban
  • Combine text, image, seller and price features
  • Handle imbalance with weighting or sampling and evaluate with PR curves
  • Choose thresholds from reviewer capacity and harm cost
  • Use active learning to get labels where the model is unsure
  • Plan for adversarial drift
Key Topics to Cover
imbalanced classification
multimodal features
active learning
precision recall
adversarial drift
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 do you catch a counterfeit whose title is clean but whose image shows a famous logo?
  • How would you set different thresholds for high harm categories like children's products?
  • How do you measure recall when you only label what the model flags?
  • What would you do if sellers start using misspellings to dodge the text 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

Positives might be 0.1 percent of uploads. Labels come from human reviewers, brand complaints and takedown requests, so they are delayed and biased toward what was already flagged. Actions: auto-block...

Approach

Features: title and description embeddings from a multilingual text encoder; image embeddings plus a logo and brand detector; perceptual hashes matched against known bad images; seller features (age, ...


Submit Your Answer
Markdown supported

Related Questions