Evaluation
Offline Metrics Are a Hypothesis, Not a Result
An offline number is a prediction about what will happen online. Treat it like one, and start scoring how often it is right.
An offline metric is not a measurement of your model's quality. It is a prediction: if we ship this, the online number will improve.
That reframing is small and it changes how you work. A prediction can be scored. You can go back afterwards and ask how often your offline metric correctly called the online outcome.
I started keeping that record. The first dozen entries were humbling, the offline winner won online slightly more than half the time. Barely better than shipping at random, after weeks of careful evaluation.
The reasons were not exotic.
Population mismatch. The offline set was dominated by users with deep histories. Production traffic was mostly thin-history users. Two different populations, one number.
No concept of time. Offline evaluation does not know that the better model takes 70 ms longer, and that some users will have scrolled past before it renders.
No feedback loop. Offline data was collected under the old ranker. The new model is evaluated on a world its own deployment would change.
Position bias. Labels inherited from the previous system's ordering. You are partly measuring agreement with yourself.
None of this means offline evaluation is useless. It is the only way to compare twenty candidate models in an afternoon, and A/B testing all twenty is not an option.
But it is a filter, not a verdict. Its job is to stop obviously bad ideas reaching an experiment, cheaply. The verdict comes from traffic.
The practical habit: keep a log with one row per shipped model. Offline delta, online delta, and whether the sign matched. When the agreement rate is poor, fix the offline metric rather than the model: reweight it to the production traffic mix, add a latency penalty, bucket by history depth.
An evaluation harness that does not predict production is not a quality gate. It is a ritual.