The interview problem
Two search rankers reorder similar candidates. Design a small online interleaving experiment and explain what its click preference can and cannot establish.
Original practice, not a reported company interview. All worked numbers are illustrative. Interview date: not applicable. Written October 3, 2026.
1. Scope and assumptions
Use the same eligible candidate universe and identical result presentation. Fix an interleaving and credit protocol before looking at outcomes. Interleaving tests relative preference within mixed lists, not the full product impact of deploying one ranker.
2. Architecture and decisions
Eligible query → two rankings → randomized balanced merge → provenance log → clicks → preference estimate
Construct a duplicate-free list by balanced team drafting, randomizing which team selects first when team sizes tie. Each selection takes the highest remaining item in that ranker’s list and records its owning team. Keep the random seed and complete assignment trace so attribution can be reproduced. Shared candidates require the predeclared algorithm’s treatment, not retrospective reassignment to the winning model.
For this exercise, define a request-level outcome as the sign of the difference in clicked items credited to A and B, with ties recorded separately. Aggregate at an appropriate independent unit, accounting for repeat users. Run an A/A test first to detect merge or attribution asymmetry. Confirm promising results with a conventional experiment on the final experience.
3. Work through the example
In a hypothetical 1,000-request sample, A wins 330, B wins 270 and 400 tie. Among the 600 non-ties, A’s preference share is 55%. Under an illustrative independent Bernoulli approximation, standard error is sqrt(0.55 × 0.45 / 600), about 2.03 percentage points. Repeated-user dependence can make that uncertainty estimate too optimistic.
4. Failure cases and trade-offs
Duplicate items, unequal visual treatment or missing click logs can bias credit. Excluding ties changes the estimand and must be disclosed. A click preference can reward curiosity without improving task completion. Interleaving is unsuitable when candidates or interfaces differ so much that a mixed list no longer represents either treatment.
5. Validation and acceptance
Replay merges from logged seeds, check duplicate suppression and verify balanced exposure. Evaluate A/A symmetry and missing-event rates. Predefine the stopping rule instead of repeatedly checking until a result looks favorable.
6. Follow-ups and self-review
Why might an interleaving winner lose a retention experiment? Reward reproducible attribution, uncertainty, dependence handling and a clear limit on causal interpretation.
Sources and related practice
Radlinski and colleagues describe team-draft interleaving in research on retrieval metrics; the sample and decision protocol here are illustrative.
Read the primary technical reference
Reference retrieved October 3, 2026. Retrieval date is not an interview or source publication date. The reference supports the named concept; scenario, architecture, examples and rubric are original.
Continue with How do you know a recommendation is good?; Search Ranking System Design: Retrieval, Ranking and Evaluation.
Continue your preparation
Choose a connected learning path or browse more ML fundamentals questions. Read our editorial method and attribution policy.