SpotifySpotify EngineeringExplainer
When Can You Ship on Offline Evals Alone?
Summary
The post examines whether teams building AI features can skip A/B tests and make shipping decisions based solely on offline evals while bounding the risk of harming online metrics. It formalizes the problem as needing the conditional distribution of the true online treatment effect given the observed offline eval effect, which requires strong assumptions about homogeneity and exchangeability across changes. A simplified working model assumes bivariate normality and known measurement errors, but ignoring measurement error can severely underestimate the correlation, as shown where naive R² is 24% versus true 60%. The post describes constructing a decision gate with thresholds that depend on the strength of the surrogate relationship, and notes that drift must be monitored via an audit pool of randomly selected A/B tests. The conclusion is that while possible in principle, the assumptions are hard to verify and maintain, so Spotify continues to pair offline evals with online experiments.
Context
The post addresses the common desire among AI product teams to accelerate iteration by relying on offline evaluations instead of slower A/B tests, and formalizes the conditions under which this is safe.
Approach / What changed
The post proposes constructing a decision gate that uses the estimated conditional distribution of the true online treatment effect given the observed offline eval effect, under assumptions of homogeneity, bivariate normality, and known measurement errors. It also recommends an audit pool of randomly selected A/B tests to monitor drift in the relationship over time.
Takeaways
Offline evals can replace A/B tests only if the relationship between offline and online effects is strong and stable, requiring homogeneous changes and exchangeability over time.
Measurement error in both offline eval scores and online treatment effects can severely attenuate the observed correlation; ignoring it can make a strong relationship appear weak (e.g., naive R² of 24% vs true 60%).
Once a decision gate is deployed, drift in the offline-online relationship must be monitored via an audit pool of randomly selected A/B tests, because ground truth is lost in the shipping and killing regions.
FAQ
What assumptions are needed to ship on offline evals alone?
Strong assumptions are required: homogeneous pool of paired changes, bivariate normality of true effects, known measurement errors, and exchangeability between historical and future changes. These are hard to verify and maintain.
How does measurement error affect the correlation between offline and online results?
Measurement error dilutes the observed correlation. Ignoring it can lead to a naive R² of 24% when the true R² is 60%, making a strong relationship appear weak.
How can drift in the offline-online relationship be detected after deploying a decision gate?
The post recommends an audit pool where a small fraction of decisions that would be shipped or killed based on offline evals are still A/B tested, providing paired observations to validate the gate and detect drift.
Source and freshness
- Source
- engineering.atspotify.com
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.