KatInterview

Safely Retiring an Incumbent Ad-Ranking Model

Machine LearningModel answer
HardModel answerMachine Learningads-rankingoff-policy-evaluationab-testing

Last updated

Plan an end-to-end migration from a legacy ad-ranking model to a new one, covering offline validation, off-policy estimates, staged online rollout, conflicting-metric decisions and production risks.

Scenario

Your company runs a large advertising platform. The current ad-ranking model, M0, has been in production for years. A partner team has built a successor, M1, and leadership wants to decommission M0 once M1 has proven itself. You own the decision and the rollout plan.

Task

Write an end-to-end plan for replacing M0 with M1 that covers the five areas below. Be specific: name metrics, thresholds, estimators and decision rules rather than saying "we would monitor it".

  1. Offline validation

    • Which quality metrics will you use (for example calibrated CTR, AUC or PR-AUC, calibration error, expected revenue lift)?
    • How will you test for label or feature leakage?
    • How will you diagnose covariate shift and label shift?
    • How will you backtest over the most recent 28 days?
  2. Counterfactual (off-policy) evaluation

    • How would you estimate M1's expected CTR and revenue using only logs generated by M0?
    • Describe IPS and doubly robust estimators, propensity clipping, the assumptions required, and the bias/variance trade-off.
  3. Online experiment

    • Randomization unit, geo stratification, and guardrails (revenue, spend pacing, latency, integrity).
    • Checks for sample ratio mismatch and interference.
    • A ramp schedule of 1% → 10% → 25% → 50% → 100%, with explicit stop and rollback rules.
  4. Acceptance criteria when metrics disagree

    • Example: CTR is down 1.5%, but revenue per mille is up 3% and advertiser ROAS is up 2%.
    • Define the objective you optimize, how you weight its components, and the minimum guardrail thresholds that must hold.
  5. Productionization risks

    • Serving latency and SLA, feature freshness, replay and backfill, and the monitoring you would run after launch.

State your assumptions and clarifying questions up front.

Hints

Hint 1

Start by clarifying scope: does M1 replace only the click-probability model or the whole score used in the auction, and which downstream systems (pacing, bid shading, reserve prices) consume M0's scores?

Hint 2

For off-policy evaluation, ask whether M0 logged propensities at all. A deterministic ranker has no overlap with M1, so you need a small randomized exploration slice. Pick the clipping threshold using effective sample size and report how the estimate moves across a sweep of thresholds.

Hint 3

Treat CTR as a diagnostic and define a single overall evaluation criterion (revenue, advertiser value, user experience) with hard guardrail floors. Then decide in advance which combinations of results ship, hold or roll back, and remember that advertisers sharing budgets across arms create interference.