Evaluate a New Google Discover Ranking Policy Offline With Logged Data

Last updated: November 29, 2026

Quick Overview

Before running an online test, the Discover team wants to estimate how a new ranking policy would perform using logs from the current policy. Explain off-policy evaluation, its estimators, and when the offline estimate can be trusted for a launch decision.

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

0

0

0 solved


Before running an online test, the Discover team wants to estimate how a new ranking policy would perform using logs from the current policy. Explain off-policy evaluation, its estimators, and when the offline estimate can be trusted for a launch decision.

Google feeds generate huge logs, and offline evaluation saves scarce online experiment traffic. Interviewers check whether you understand counterfactual estimation from logged bandit feedback, the need for logged propensities, and variance problems.

What the Interviewer Expects
  • Explains that logged data only reveals rewards for items the old policy showed
  • Describes inverse propensity scoring, self-normalized IPS, and doubly robust estimators
  • Requires logged propensities and some exploration in the logging policy
  • Discusses variance from large importance weights and remedies (clipping, slate assumptions)
  • Positions OPE as a filter before online tests, validated against past online results
Key Topics to Cover
off-policy evaluation
inverse propensity scoring
doubly robust estimation
exploration
counterfactual learning
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 if the current policy is deterministic and logs no propensities?
  • How would you handle slates of ten cards instead of a single item?
  • How do you validate that OPE estimates agree with online results?
  • What bias does weight clipping introduce?
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
  • Logging policy π0\pi_0: the current ranker, which shows one top card per feed load (simplify to a single slot first).
  • New policy π1\pi_1: a candidate ranker that would show a different card for ma...
Approach

We want V(π1)=ExEa∼π1[r(x,a)]V(\pi_1) = E_x E_{a \sim \pi_1}[r(x, a)], but logs only show rewards for the action π0\pi_0 took.

  • IPS: V^=1n∑iπ1(ai∣xi)π0(ai∣xi)ri\hat V = \frac{1}{n}\sum_i \frac{\pi_1(a_i \mid x_i)}{\pi_0(a_i \mid x_i)} r_i....

Submit Your Answer
Markdown supported