Real-Time Detection of Fake Engagement From Like and Follow Farms
Last updated: November 29, 2026
Quick Overview
Design an ML system that detects accounts and devices producing fake likes, follows and views on TikTok in near real time, removes the fake engagement from ranking signals and creator metrics, and actions the accounts without hurting genuine users.
TikTok
November 29, 20260
0
0 solved
Design an ML system that detects accounts and devices producing fake likes, follows and views on TikTok in near real time, removes the fake engagement from ranking signals and creator metrics, and actions the accounts without hurting genuine users.
Fake engagement pollutes TikTok's recommendation signals and creator monetization, and the integrity team faces adaptive adversaries running device farms and scripts. The interviewer checks layered defenses, graph-based detection of coordinated behavior, label scarcity, and the precision cost of false positives.
What the Interviewer Expects
- Layer cheap real-time rules, per-event models and offline graph detection
- Use device, network and behavioral features, not just counts
- Detect coordination with graph or clustering methods
- Explain how labels are obtained and kept fresh
- Separate soft actions (discount the signal) from hard actions (ban)
- Plan for adversarial adaptation and measurement
Key Topics to Cover
How to Approach This
- Start by mapping the business objective to a concrete ML objective and metric.
- Cover the full pipeline: data collection, feature engineering, model selection, training, serving.
- Discuss online vs offline evaluation. Plan an A/B test to validate real-world impact.
- Address the serving latency budget and whether batch or real-time inference is needed.
- Think about the data flywheel: how user feedback improves the model over time.
Possible Follow-up Questions
- How would you measure recall when you do not know how much fake engagement exists?
- A creator's views drop 40% after you discount farm traffic and they complain publicly. How do you handle it?
- How do you detect farms that use real phones with human operators?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice ML System Design ProblemsSample Answer
Requirements
- Score engagement events in under a second so ranking can discount them immediately.
- Detect coordinated campaigns within hours and clean historical counts.
- Very high precision for hard actions (b...
High-Level Design
- Ingestion: like, follow, view, comment events with device ID, IP and ASN, app integrity attestation, session features.
- Real-time layer: velocity rules and a lightweight per-event model s...