26/31
Part 6 of 6 · What interviewers ask nextLearn and do
The offline metric and the online metric disagree
A reported Airbnb ML experience round asked exactly this: "What do you do when the offline metric and the online metric disagree?" (1 report). Work through the likely causes before you pick a side:
- The offline set only covers what the old ranker showed. Offline you re-rank logged results, and online the model ranks everything. Airbnb's 2020 paper describes hitting this. A model with an extra price objective, tuned until its offline NDCG matched the baseline, lost 0.67% of bookings online. Their offline analysis had only re-ranked the top results that were in the logs.
- The labels carry position bias. Clicks from the top of the old ranking look like relevance. Weight them by propensity, or evaluate on randomized traffic.
- The offline metric isn't the goal. NDCG on clicks can rise while bookings don't move. Label with the action you care about.
- The online test is the noisy one. Check its power and its duration, and look for novelty effects, before you blame the offline metric.
Then say what you'd do: trust the online result for the launch, and fix the offline setup until it agrees with the online results you already have.
Before you trust an offline number, check how much of the new page your logs can grade. In the editor, write judged_share(ranking, labeled, k): the share of the new ranker's top k that has a label in the logs.