Measuring a Messenger Spam Filter's Recall When Blocked Messages Are Never Seen

Last updated: November 29, 2026

Quick Overview

A new Messenger spam filter blocks suspected spam before delivery. Users report less spam, but the team needs to know how much spam the filter catches and how many legitimate messages it wrongly blocks, since nobody sees blocked messages.

Meta
Analytics & Experimentation
Data Scientist
Meta
November 29, 2026
Data Scientist
Technical Screen
Analytics & Experimentation
Medium

0

0

0 solved


A new Messenger spam filter blocks suspected spam before delivery. Users report less spam, but the team needs to know how much spam the filter catches and how many legitimate messages it wrongly blocks, since nobody sees blocked messages.

Integrity measurement at Meta has a selective-labels problem: the system's own decisions hide outcomes. The interviewer checks whether you can design sampling that recovers precision and recall, and use small randomized pass-through to estimate what is missed.

What the Interviewer Expects
  • Identifies that user reports only measure spam the filter let through
  • Proposes sampling blocked messages for human review to estimate precision
  • Uses a small random pass-through or shadow mode to estimate recall
  • Applies sampling weights to turn labeled samples into prevalence estimates
  • Respects privacy constraints for end-to-end encrypted chats
Key Topics to Cover
Selective labels
Precision and recall
Stratified sampling
Shadow mode
Integrity metrics
How to Approach This
  1. Define success metrics carefully. A good metric is measurable, actionable, and aligned with business goals.
  2. Run experiments long enough to account for novelty effects and weekly seasonality.
  3. Use funnel analysis to identify where users drop off for maximum optimization impact.
  4. Segment results by key dimensions (platform, country, user cohort) to catch hidden patterns.
  5. Consider network effects and interference between treatment and control groups.
Possible Follow-up Questions
  • How large should the review sample be?
  • What ethical limits apply to letting some spam through for measurement?
  • How would you measure false positives for messages between existing friends?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Browse Analytics Questions
Sample Answer
Clarify

Which messages does the filter see: message requests from non-contacts, or all chats? Is content available for review (not for end-to-end encrypted messages, where filters may rely on metadata and use...

Approach

Three quantities: precision (share of blocked that is spam), recall (share of all spam that is blocked), and false positive rate on legitimate messages.

  1. Precision: sample blocked messages, stratifi...

Submit Your Answer
Markdown supported