Problem
A team testing many variants of one ML service at once hits conflicts between tests, because two tests on the same users contaminate each other. Avoiding them needs documentation and cross-team alignment before each launch. Every test also adds a behavior branch to the code, and these scattered branches depend on each other. Setup, analysis and teardown of each test are slow. At Coinbase this limited testing capacity and bottlenecked development.
Example from the article: when the ML Notification Engine was moved to universes, the separate service that rate-limited notifications had to support them too. Limits must be proportional across experiment groups, or one group takes all the bandwidth and the comparison breaks.
Solution in brief
Split users into a fixed number of slots and give each slot to one test. Keep all experiment logic in one configuration file: components, composers (named combinations of components) and a router. A new experiment then means putting a composer into a free slot, often without new code.
Questions this case answers
- How to run many overlapping experiments on one decision service without cross-test interference when every test needs its own clean user population
- How to decouple experiment routing from business logic so that launching and cleaning up a test is a configuration change
- How to run many simultaneous A/B tests on one ML-driven service without the tests contaminating each other?
- How to keep experiment branching out of the service code so that new tests need little or no new code?
Tools and methods
- AB universe — users split into slots, one test per slot
- Components and composers — swappable service parts and named combinations of them, one per treatment
- Composer manager with matchers — deterministic routing of a request to a composer
- Holdout group — a long-running user group kept on the old behavior to measure long-term improvement
Google or a one-time email code. No password.