Variance reduction on steroids... introducing MLRATE

Chris Kelly11 Mar 2022

Problem

Wayve compares driving models on real roads. Conditions differ a lot between runs: weather, traffic density, pedestrians, road layout. This noise hides real differences, so a plain comparison of means needs a very large amount of driving. Paired tests on the same route do not fix it, because other cars, cyclists and traffic lights still differ. Fixed test routes would over-fit the models to them.

Example from the article: two driving models are compared across runs where right turns, roundabouts and traffic differ, and the team wants a verdict with fewer driven kilometres.

Solution in brief

Train an ML model that predicts the outcome from the known covariates, then use its calibrated out-of-sample prediction as a covariate in a regression. This is MLRATE (machine-learning-adjusted treatment effect estimator, from Meta). It absorbs non-linear covariate effects and shrinks the standard error. Wayve adds weights so results match the target routes' mix of conditions.

Questions this case answers
  • How to reduce the variance of a treatment-effect estimate when many non-linear covariates drive the outcome and samples are expensive to collect
  • How to compare two variants that were run on different, uncontrolled mixes of conditions and report the effect for a chosen target mix
  • How to detect a real difference between two models with far fewer test samples when trial conditions vary a lot?
  • How to adjust an experiment readout for many covariates with non-linear effects, where CUPED handles only a few linear ones?

Tools and methods

  • MLRATE — two-step estimator: ML prediction of the outcome, then a regression that adjusts the treatment effect with it
  • CUPED — the linear single-covariate baseline that MLRATE generalizes
  • Isotonic regression and cross-fitting — calibrated, out-of-sample predictions from a multi-layer perceptron
  • Generalized linear model (GLM) — returns the treatment effect and its standard error
  • Survey-style weights — re-weight trials to a target mix of conditions
Continue reading — it's free

Google or a one-time email code. No password.