Query-Level Versus User-Level Randomization for Facebook Search Ranking
Last updated: November 29, 2026
Quick Overview
A Facebook Search team wants to randomize each query to the old or new ranker to get more power. Discuss the trade-offs against user-level randomization and recommend a design.
Meta
November 29, 20260
0
0 solved
A Facebook Search team wants to randomize each query to the old or new ranker to get more power. Discuss the trade-offs against user-level randomization and recommend a design.
Search experiments at Meta often tempt teams to randomize finer units. The interviewer checks whether you can weigh power against consistency, learning effects and metrics that span multiple queries.
What the Interviewer Expects
- Explains why query-level randomization has more independent units
- Identifies inconsistent experience and user learning issues
- Notes that session and user metrics cannot be measured under query randomization
- Discusses reformulation chains that span arms
- Recommends a design matching the metric, possibly both
Key Topics to Cover
How to Approach This
- Define success metrics carefully. A good metric is measurable, actionable, and aligned with business goals.
- Run experiments long enough to account for novelty effects and weekly seasonality.
- Use funnel analysis to identify where users drop off for maximum optimization impact.
- Segment results by key dimensions (platform, country, user cohort) to catch hidden patterns.
- Consider network effects and interference between treatment and control groups.
Possible Follow-up Questions
- What metric could you still trust under query-level randomization?
- How do you compute variance if a user has queries in both arms?
- When would interleaving be better than either?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Browse Analytics QuestionsSample Answer
Clarify
Ask the primary metric: click-through on the first page (query-level), successful search sessions (a click with dwell over 30 seconds and no reformulation), or searches per user per week (user-level)....
Approach
Query-level randomization gives many more units and smaller variance for query-level metrics. But it brings problems:
- Inconsistency: the same user sees different ranking styles query to query, w...