A/B Testing a Discovery-Oriented Feed Ranker
Statistics & ExperimentsModel answerLast updated
Plan an online experiment for a ranker that pushes users toward new content, define metrics for discovery, satisfaction and ecosystem health, and make a launch call before long-term results arrive.
Testing a Ranker That Encourages Discovery
Your team has built a new ranking model for a content feed. Its purpose is to help users find content and creators outside their usual tastes. Early offline checks suggest it may cost a little short-term engagement, for example a slightly lower like rate, in exchange for broader discovery.
You need to plan the online test and decide whether the model should ship, even though the test will end before you can see its full long-term effect.
Ground rules
- Randomize at the user level unless interference between users is serious enough to require clusters.
- Discovery must be useful. Serving random or unfamiliar content does not count.
- A short-term engagement loss is acceptable only if there is credible evidence of long-term value.
- Your plan must include guardrails for retention, satisfaction, the creator ecosystem and safety.
Questions you may want to raise first
- Which surfaces and which content pool does the ranker touch?
- How much short-term engagement loss would the business accept?
- What long-term outcomes have historically been tied to exploration?
- Are survey, retention and creator-side data available?
What to answer
- Experiment design. Describe the arms, eligibility, randomization unit, exposure definition, sample size, duration and analysis plan. State the launch decision rule up front, and explain how you would check data quality, novelty effects and segments.
- Metrics. Define how you would measure exploration, long-term satisfaction and ecosystem health.
- Decision under a short window. If long-term impact cannot be fully observed in the test period, how would you analyze the data and what would you recommend?
Hints
Hint 1
Define exploration so that it is gated on positive engagement (for example, a qualified interaction with a topic or creator the user has not touched in a long time), and then check whether those discoveries are repeated later.
Hint 2
Size the test on the most demanding guardrail, such as short-horizon retention, not on the like rate. Write the ship rule as a mix of one superiority test on the primary metric and non-inferiority tests on guardrails, before looking at data.
Hint 3
For the missing long-term signal, think in terms of surrogates validated on past experiments, effect-by-days-since-exposure curves for novelty versus learning, and a staged ramp that keeps a long-term holdout.
Model answer
Hard Try it yourself first — then compare your approach, complexity and edge cases.
Framing
The core tension is that exploration can cost short-term engagement while building long-term value. A good answer separates valuable discovery from random novelty, fixes the decision rule before the test, and says how to decide while uncertain.
Working assumptions
- The ranker only affects the main recommendation feed; search and following feeds are untouched.
- Leadership tolerates about a 1% relative drop in like rate but no measurable retention loss.
- Past analyses link adopting new interests to higher 60-day retention, but this is correlational and needs causal validation.
- Surveys, retention, creator-side logs and safety labels are all available.
Part 1: Experiment design
Arms. Control is the current ranker. Treatment is the exploration-aware ranker. Adding a second treatment with a lower exploration weight gives a dose-response curve, which helps choose a safe operating point.
Eligibility. Active users on supported app versions. Exclude bots, internal accounts and users enrolled in conflicting ranking experiments. Analyze new users as their own stratum since their interest profiles are thin.
Randomization. User-level, hashed, sticky assignment. Interference arises through sharing (control users see treatment-discovered content) and through creators (both arms feed the same creators). To gauge whether it matters, run a small cluster-randomized arm (by social-graph cluster or geography) and compare effect estimates. For creator outcomes, add a creator-side or two-sided design, because user randomization cannot show whether new creators build sustainable audiences.
Exposure and analysis population. Primary analysis is intent-to-treat among users who open the feed after assignment. Log ranker version on every impression to confirm treatment delivery.
Sample size. Power on the hardest guardrail, D7 retention. With baseline 0.60, minimum detectable effect 0.2 percentage points, α = 0.05 two-sided and 80% power:
n per arm ≈ 2 · (1.96 + 0.84)² · 0.6 · 0.4 / 0.002² ≈ 940k users
CUPED with pre-period covariates typically removes 30–50% of variance, so the real requirement is smaller. Like rate needs far fewer users; retention sets the size.
Duration. At least 3–4 full weeks to cover weekly cycles. Exploration is prone to novelty and learning effects, so plot the treatment effect by days since first exposure and see whether it decays, stabilizes or grows.
Analysis plan.
- SRM chi-square on assignment counts overall and by platform; halt and debug at p < 0.001.
- Logging parity checks across arms, and a prior A/A test to validate the pipeline.
- Delta method for ratio metrics such as likes per impression, with user-level clustered errors.
- One pre-registered primary metric; multiplicity correction on secondaries.
- Segments: new vs tenured, heavy vs light, region, and breadth of prior interests. Narrow-interest users have the most to gain and the most risk.
Decision rule (fixed in advance). Ship only if:
- The primary exploration metric is significantly positive.
- Like rate and watch time pass non-inferiority (margins around −1% and −0.5% relative).
- D7 and D14 retention are non-inferior.
- Negative feedback, safety violations and revenue do not regress beyond agreed margins.
Part 2: Metrics
Exploration (gated on quality).
- Engaged discovery rate (primary): share of user-days with a qualified engagement (completion above 50%, like, follow or share) with a topic cluster or creator the user has not engaged with in the last 60 days.
- Interest diversity: entropy over topic clusters computed on engaged, not merely served, impressions.
- Distance between engaged content and the user's historical interest centroid in embedding space.
- Discovery durability: fraction of newly discovered interests or creators re-engaged 7–28 days later. This best separates real discovery from curiosity clicks.
Long-term satisfaction.
- D7/D14/D28 retention and active days per week.
- Survey satisfaction, corrected for non-response bias.
- Session quality, such as natural session endings versus rapid skip-outs.
- Negative signals: "not interested," sub-2-second swipes, unfollows, reports.
Ecosystem health.
- Concentration of impressions across creators (Gini).
- New and small creator traction: view share, follower growth, continued posting.
- Average content quality score.
- Safety: violations per thousand impressions and borderline-content exposure. Exploration pulls in less-vetted content, so this guardrail matters.
- Revenue: ad revenue per user and advertiser outcomes.
Part 3: Deciding with a short window
- Validated surrogates. Build a surrogate index predicting 60–90 day retention from short-term signals (discovery durability, active days, negative feedback). Validate on past experiments: did short-term effects predict the measured long-term effects? Use the prediction error to widen the interval on the projected impact.
- Effect-trajectory extrapolation. Fit the effect by days since exposure. A shrinking like-rate gap suggests adaptation; a growing retention gap is a red flag.
- Early cohorts. Follow the earliest-enrolled users, who have the longest observation, as a preview of later behavior.
- Quantify downside. Report the worst plausible long-term retention effect (e.g., the lower bound of the projected interval) and translate it into user and revenue terms.
- Recommendation by threshold.
- Ship if guardrails pass and the projected long-term effect is positive with a lower bound above the tolerated loss.
- Ramp gradually if guardrails pass but the projection is uncertain; this is the usual outcome.
- Extend if the trajectory is still moving or the interval is too wide.
- Do not ship if retention, safety or ecosystem guardrails fail, or the surrogate points to a long-term loss.
- Keep learning after launch. Ramp in stages (for example 10% → 25% → 50%) and hold out a small long-term control group for several months to measure the true long-term effect and recalibrate the surrogate.
Common mistakes
- Counting any novelty as exploration, which rewards random content.
- Powering the test on the primary engagement metric instead of the retention guardrail.
- Choosing the decision rule after seeing results.
- Treating correlations between exploring users and retention as causal.
- Ignoring creator-side interference and safety exposure.
- Reading week-one effects as steady state.