Learning Metrics that Maximise Power for Accelerated A/B-Tests
Olivier Jeunen, Aleksei Ustimenko
TL;DR
The paper tackles the inefficiency of relying on delayed North Star metrics in online experimentation by learning short-term signals that maximise statistical power toward the North Star. It introduces a linear metric transformation $\omega = \boldsymbol{\mu} w^{\intercal}$ and optimises the weight vector $w$ to improve $z$-scores or $\log p$-values, with corrections for multiple testing and sequential peeking. A gradient-based objective combines known outcomes, inconclusive outcomes, and A/A controls, and a spherical regularisation term speeds up convergence for scale-free objectives without changing optima. Empirical results on large-scale ShareChat and Moj datasets show that learnt metrics can boost statistical power by up to $210\%$ and reduce required sample sizes to as low as $12\%$ of the North Star’s, enabling faster, cheaper, and more reliable A/B testing. The work also provides practical guidance on avoiding ratio-metric pitfalls and highlights the value of per-user aggregations, with the learnt metrics already deployed in production. $\,$
Abstract
Online controlled experiments are a crucial tool to allow for confident decision-making in technology companies. A North Star metric is defined (such as long-term revenue or user retention), and system variants that statistically significantly improve on this metric in an A/B-test can be considered superior. North Star metrics are typically delayed and insensitive. As a result, the cost of experimentation is high: experiments need to run for a long time, and even then, type-II errors (i.e. false negatives) are prevalent. We propose to tackle this by learning metrics from short-term signals that directly maximise the statistical power they harness with respect to the North Star. We show that existing approaches are prone to overfitting, in that higher average metric sensitivity does not imply improved type-II errors, and propose to instead minimise the $p$-values a metric would have produced on a log of past experiments. We collect such datasets from two social media applications with over 160 million Monthly Active Users each, totalling over 153 A/B-pairs. Empirical results show that we are able to increase statistical power by up to 78% when using our learnt metrics stand-alone, and by up to 210% when used in tandem with the North Star. Alternatively, we can obtain constant statistical power at a sample size that is down to 12% of what the North Star requires, significantly reducing the cost of experimentation.
