PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/Machine Learning/Meta

Detect and Reduce Spammy Friend Requests Effectively

Last updated: Mar 29, 2026

Quick Overview

This question evaluates a data scientist's applied machine learning competencies for abuse detection on social platforms, covering feature engineering, label generation strategies, handling class imbalance, model calibration, interpretability, and product integration.

  • medium
  • Meta
  • Machine Learning
  • Data Scientist

Detect and Reduce Spammy Friend Requests Effectively

Company: Meta

Role: Data Scientist

Category: Machine Learning

Difficulty: medium

Interview Round: Technical Screen

##### Scenario A social media platform wants to detect and reduce spammy friend-requests in order to protect user experience. ##### Question How would you define a spammy friend request on our platform? What key features or signals would you engineer to identify such requests? Describe how you would build a classification model for this task. If no labeled data exist, what strategies would you use to obtain or generate labels? Once the model is live, how would you use it to improve the overall user experience? How do you determine and monitor the appropriate precision-recall trade-off for this problem? ##### Hints Discuss heuristic labeling, human-in-the-loop, semi-supervised learning, A/B tests, threshold tuning, and business impact of false positives vs. false negatives.

Quick Answer: This question evaluates a data scientist's applied machine learning competencies for abuse detection on social platforms, covering feature engineering, label generation strategies, handling class imbalance, model calibration, interpretability, and product integration.

Related Interview Questions

  • Implement 1NN Embeddings and Forward Pass - Meta (hard)
  • Design and evaluate an ads ranking algorithm - Meta (easy)
  • How would you design a Shop Ads ranking algorithm? - Meta (easy)
  • Derive Linear Regression Solution - Meta (medium)
  • Explain key ML metrics and techniques - Meta (medium)
Meta logo
Meta
Aug 4, 2025, 10:55 AM
Data Scientist
Technical Screen
Machine Learning
1
0

Detecting Spammy Friend Requests

Context

Assume a consumer social platform where users can send friend requests (optionally with a short message). The goal is to protect user experience by reducing spammy requests while preserving legitimate connections, especially for new users.

Tasks

  1. Definition
    • Clearly define what constitutes a "spammy" friend request on this platform.
  2. Feature Engineering
    • List the key features/signals you would engineer to identify spammy requests (sender, recipient, pairwise, graph, content, device, temporal, and feedback signals).
  3. Modeling Approach
    • Describe how you would build an initial classification model, including data splitting, handling class imbalance, model choice, interpretability, and calibration.
  4. Labels When None Exist
    • If no labeled data exist, explain strategies to obtain/generate labels (heuristics, human-in-the-loop, semi-/weak supervision, and positive–unlabeled learning).
  5. Product Integration
    • Once live, how would you use the model to improve user experience (interventions and experimentation)?
  6. Precision–Recall Trade-off
    • How would you determine, set, and monitor the appropriate precision–recall trade-off for this problem?

Solution

Show

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...

Browse More Questions

More Machine Learning•More Meta•More Data Scientist•Meta Data Scientist•Meta Machine Learning•Data Scientist Machine Learning
PracHub

Master your tech interviews with 8,000+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.