A new ranking model improves offline NDCG by 6%. Design the online experiment and decide what result would justify launch.
Design an online test that turns a ranking model’s offline improvement into a defensible product launch decision.
Problem
Context. A proposed ranking model improves offline NDCG by 6%, but its effect on user outcomes has not been established.
Task. Choose randomization and analysis units, a primary outcome, guardrails, a minimum worthwhile effect, and an explicit release rule. Specify power assumptions, exposure logging, ramp stages, and how validity failures or inconclusive results will be handled.
Constraints. Predeclare thresholds and stopping rules, account for interference and repeated observations, and stop unacceptable harm. Offline relevance and statistical significance alone do not establish a practically valuable or safe launch.
Learning objective: Apply validity, practical-effect, and guardrail gates in order so a statistically significant result is not mistaken for a ship decision.
Reference drawing
Preserve assignment; require valid evidence, worthwhile gain, and safe outcomes
Derivation
Start with the decision
Clarify before choosing metrics:
- What product behavior should improve, and through what mechanism?
- What is the minimum effect worth the engineering and serving cost?
- What user harms must not regress?
- Is launch reversible, staged, or permanent?
- Does the model change latency, content supply, or downstream systems?
A test design that survives review
- Hypothesis: what mechanism connects the model change to user value?
- Unit: user, account, device, query, session, or geographic cluster?
- Assignment vs exposure: when is treatment assigned, and when is the model actually seen?
- Metrics: one primary outcome, a small set of guardrails, and diagnostic slices.
- Power and duration: minimum detectable effect, variance, traffic, seasonality, and novelty.
- Validity threats: interference, carryover, sample-ratio mismatch, instrumentation, peeking, and multiple comparisons.
- Decision rule: ship, iterate, stop, or expand only to a safer segment.
What an L4 answer sounds like
“Randomly split traffic 50/50, compare click-through rate, and launch if the result is statistically significant.”
It knows the shape of an experiment but leaves the decision, guardrails, exposure, and validity threats unspecified.
What an L5 answer adds
An L5 answer defines the randomization unit and ties the primary metric to the product objective. It adds guardrails for latency, complaints, retention, diversity, safety, and cost. Power uses a minimum worthwhile effect. Exposure analysis catches assignment dilution, and the launch rule weighs practical significance against uncertainty.
What an L6 answer adds
An L6 answer asks whether a user-level A/B test identifies the right effect. Marketplace or social interference may require cluster randomization. Ranking changes can alter future training data, novelty can fade, and heavy users can dominate aggregates. A positive engagement result may still harm ecosystem health.
Tells that get you a strong-hire vote
- You distinguish assignment from exposure.
- You name the randomization unit and defend it.
- You fix a minimum worthwhile effect before seeing results.
- You include sample-ratio checks and instrumentation validation.
- You discuss heterogeneous effects and guardrails without fishing across dozens of slices.
- You state an operational rollout and rollback plan.
Tells that get you down-leveled
- “Statistically significant means ship.”
- CTR chosen because it is easy to move, not because it represents value.
- No treatment of latency or serving cost.
- No interference or carryover discussion.
- Peeking repeatedly and stopping when .
- Inventing new metrics after seeing the data.
Common follow-ups
- What if assignment is user-level but users switch devices?
- What if only 30% of assigned users see the new model?
- What if CTR rises but seven-day retention falls?
- How would you test a model where users affect one another?
- What if the treatment changes the data used to retrain next month’s model?
Related: A/B testing for ML, How would you A/B test a chatbot?, and precision, recall, and F1.