Off-Policy Evaluation of a Notification Ranking Policy Before Testing

Last updated: November 29, 2026

Quick Overview

The Facebook notifications team has a new ranking policy and wants an estimate of its effect from existing logs before running an A/B test. Explain how off-policy evaluation works here and when it can be trusted.

Meta
Analytics & Experimentation
Machine Learning Engineer
Meta
November 29, 2026
Machine Learning Engineer
Onsite
Analytics & Experimentation
Hard

0

0

0 solved


The Facebook notifications team has a new ranking policy and wants an estimate of its effect from existing logs before running an A/B test. Explain how off-policy evaluation works here and when it can be trusted.

Meta ML loops for recommendations increasingly expect knowledge of counterfactual evaluation. The interviewer checks whether you understand inverse propensity scoring, the need for logged randomization, and how to use offline estimates as a filter, not a replacement for online tests.

What the Interviewer Expects
  • Explains why naive replay on logs is biased
  • Describes inverse propensity scoring with logged action probabilities
  • Notes the need for exploration in the logging policy
  • Discusses variance, clipping and doubly robust estimators
  • Positions offline estimates as a screen before an online test
Key Topics to Cover
Off-policy evaluation
Inverse propensity scoring
Doubly robust estimators
Exploration logging
Notification ranking
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
  • What happens if the old policy was deterministic?
  • How would you reduce the variance of the IPS estimate?
  • What metrics cannot be estimated with this method?
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

Ask: does the current system log the probability of each action it took (for example, which notification candidate was sent among several)? Is there any randomization in the logging policy? What rewar...

Approach

Naive replay (use logs where the new policy would have done what the old one did) is biased: the old policy chose actions based on what it predicted users liked, so the matched log subset is not rando...


Submit Your Answer
Markdown supported