Accelerating our A/B experiments with machine learning

Michael G. Wilson24 Jan 2023

Problem

Dropbox sells subscriptions, so the revenue effect of a product change shows up over months. Waiting 90 days for a trial user to convert and stay is too slow. Metrics available on day one, such as the number of files uploaded, may not track user satisfaction. Slow readouts cap the number of experiments per year.

Example from the article: the team wants to measure a change in how a new trial user is onboarded on the first day of the trial, without waiting for the 90-day outcome.

Solution in brief

Train a model that predicts each trial user's two-year revenue a few days after the trial starts. Call the prediction expected revenue (XR). Sum XR over all users in each variant and compare variants by the ratio of the sums. The ratio cancels most of the model's bias, and back-tests on finished experiments put the remaining error at about 3%.

Questions this case answers
  • How to read out a randomized experiment quickly when the outcome that matters is realized only after months and the early signals are weak proxies
  • How to use a per-user predictive model as an experiment metric while keeping its systematic error from biasing the comparison
  • How to read out an A/B test in days when the revenue effect of a subscription product takes months to observe?
  • How to choose an experiment metric that is available early and still tracks revenue, not just activity?

Tools and methods

  • Expected revenue (XR) model — per-user prediction: probability to spend times predicted two-year amount
  • Gradient boosted trees (TensorFlow) — conversion and revenue models per segment
  • Offset calibration — correction by the average training residual
  • XR lift — ratio XRB/XRA of summed XR between variants, used as the experiment readout
  • Back-testing on finished experiments — estimates the method's systematic error
  • Airflow, Hadoop on AWS, Hive, Spark — daily scoring pipeline
Continue reading — it's free

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