Deciding Whether a New Ads Ranking Model Can Retire the Old One
Machine LearningModel answerLast updated
Judge whether a new ad-ranking model is ready to replace production: pre-launch checks, resolving a CTR vs revenue conflict, experiment design, and an executive-ready readout.
Scenario
A social platform's advertising team has trained a new model that scores which ads to show, and the plan is to shut down the existing production model once the new one takes over.
You are asked to lead the go/no-go analysis.
Questions
- Readiness. Before the old model is fully retired, what needs to be examined? Think about model quality, business results, the people affected (users and advertisers), operations, and risk.
- Conflicting metrics. In the experiment, click-through rate drops for the new model while revenue (or another business metric) goes up. How do you decide which model to ship?
- Experiment procedure. Describe, step by step, how you would run the online experiment, from pre-launch checks to the final decision.
- Executive readout. How would you visualise and present the final results to the CFO?
What is expected
Give a structured answer with concrete metrics, thresholds or numbers where they help, explicit trade-offs, and the typical pitfalls. Touch on offline evaluation, guardrails, statistical significance, rollout and rollback, and stakeholder-facing reporting.
Hints
Hint 1
In ads, a model is not just a classifier: its scores feed an auction and pricing. Think about what goes wrong if predicted probabilities are off even when ranking quality improves.
Hint 2
When CTR and revenue move in opposite directions, break revenue into its components (impressions, click rate, price per click, conversion quality) and ask which mechanism produced the gain, and whether it is good for users and advertisers.
Hint 3
Advertisers share budgets across both experiment arms, so a naive user-level split can overstate lift. Also plan for variance reduction, sample-ratio checks, a staged ramp, and a long-term holdout.
Hint 4
For the CFO, lead with dollars and confidence intervals, explain the CTR paradox with a single decomposition chart, and show risk as a simple pass/fail scorecard.
Model answer
Hard Try it yourself first — then compare your approach, complexity and edge cases.
Framing
A model swap is a business decision under uncertainty, not a comparison of AUC values. The answer should show that I can validate quality offline, resolve metric conflicts with a pre-agreed rule, run a statistically sound staged experiment, and translate the result into money and risk.
1. What to evaluate before retiring the old model
Offline quality
- Discrimination and loss on recent held-out data: AUC and log loss (or normalized cross-entropy).
- Calibration (predicted rate / observed rate), overall and per segment. Auction ranking and pricing use something like
bid × pCTR × pCVR, so a miscalibrated model misprices ads even if AUC rises. - Slice analysis: country, platform, ad format, new vs. returning users, small vs. large advertisers, cold-start ads. A global gain can hide a regression in a valuable slice.
- Feedback-loop bias: the logs were produced by the old model's choices, so offline results favour the incumbent. Use inverse-propensity or other counterfactual estimates, and exploration traffic if available.
Online business outcomes
- Revenue, eCPM, CTR, conversion rate, conversions.
- Advertiser value: cost per acquisition, return on ad spend.
Ecosystem guardrails
- Users: ad hides, reports, negative feedback, session length, retention, ad load.
- Advertisers: CPA, budget delivery and pacing, churn, spend concentration.
Engineering and operations
- p99 latency and timeout rate, compute and memory cost per million requests, feature freshness, monitoring coverage.
Risk and compliance
- Fairness across groups (especially housing, jobs, credit ads), sensitive feature usage, policy-violating exposure.
Reversibility
- Old model stays deployable behind a feature flag, a long-term holdout exists, and a rollback runbook has explicit trigger thresholds.
2. CTR down, revenue up: which model ships?
First decompose:
Revenue = Impressions × CTR × CPC = Impressions × eCPM / 1000
Then determine the mechanism:
| Mechanism | Reading | Verdict |
|---|---|---|
| Fewer but higher-intent clicks, conversions per dollar up | Better relevance, advertisers gain | Likely ship |
| Higher bids win more, advertiser CPA up and ROAS down | Short-term extraction, advertisers will cut budgets | Risky |
| More ad load or impressions | Revenue bought with user experience | Check guardrails and retention |
| Calibration drift inflating prices | Artifact | Do not ship; fix calibration |
Decision rule
- Pre-register an Overall Evaluation Criterion (for example long-term revenue or total advertiser value). CTR is diagnostic, not the goal.
- Guardrails are hard constraints: e.g. negative feedback must not rise by more than a set margin (statistically bounded), advertiser ROAS must be non-inferior, latency within SLA.
- Look at the long term. Ad fatigue and advertiser reactions emerge over weeks, so run 2-4 weeks plus a post-launch holdout. Surrogate models predicting long-term value are a supplement.
- Make trade-offs explicit in dollars. If revenue is +2% but retention is -0.1%, convert lost-user lifetime value into dollars and let the decision owners choose with numbers.
3. Experiment procedure
Pre-launch
- Shadow mode: score live traffic without serving, comparing score distributions, calibration, and latency.
- A/A test to validate randomization and metric pipelines.
Design
- Write down the primary metric, secondary metrics, guardrails, and decision rules before looking at data.
- Randomization unit: users, for a consistent experience. But advertisers share budgets across arms, so treatment can consume budget control would have used and inflate lift. Mitigate with budget-split experiments (each advertiser's budget divided between arms) or advertiser/cluster randomization.
- Power: per-arm n ≈ 16σ²/δ² (α=0.05, power 0.8). Revenue per user is heavy-tailed; with σ/μ = 5 and a 0.5% relative MDE, n ≈ 16 × (5/0.005)² = 16M per arm. Reduce variance with CUPED (pre-period spend as covariate) and winsorization.
Ramp
- 1% for 1-2 days to catch bugs and latency problems, then 5-10% for an early guardrail read, then 50/50 for full power.
- Run at least two full weeks to cover weekly seasonality and novelty decay.
Analysis
- Check sample-ratio mismatch (chi-square on arm sizes).
- Use the delta method or bootstrap for ratio metrics (CTR, eCPM), since the analysis unit differs from the randomization unit.
- Report effect sizes with 95% CIs, not just p-values.
- Correct for multiple comparisons (Benjamini-Hochberg) across secondary metrics and slices.
- Examine heterogeneous effects and plot daily lift to see novelty or decay.
Monitoring and rollback
- Automated alerts with auto-kill thresholds on latency, errors, negative feedback, and spend anomalies. The old model remains warm so rollback takes minutes.
Post-launch
- Keep a 1-5% holdout on the old model for 1-3 months to confirm the lift persists, and only then deprecate it.
4. Presenting to the CFO
The CFO cares about dollars, confidence, and risk, not AUC.
- Headline: "New model increases ad revenue by +1.8% (95% CI +1.2% to +2.4%), about $X-Y M annualized, with no significant harm to user or advertiser health."
- Revenue waterfall: baseline, then contributions from impressions, CTR (negative), and price/conversion quality (positive), ending at new revenue. This resolves the CTR paradox visually.
- Daily lift with a CI band: shows stability rather than a novelty spike.
- Guardrail scorecard: green/yellow/red rows for retention, ad hides, advertiser ROAS, latency, infra cost, each with delta and CI.
- Risk and decision slide: what could go wrong, rollback triggers, the holdout plan, and the recommended rollout schedule with a clear ask.
Keep technical detail in an appendix.
Common mistakes
- Treating CTR or AUC as the goal.
- Ignoring calibration and its effect on pricing.
- Ignoring budget interference between arms, which overstates lift.
- Peeking at results and stopping early without sequential corrections.
- Declaring victory after a short test that only captures novelty.
- Showing a metrics wall to executives instead of a dollar-denominated recommendation with risks.