Introduction
Standard A/B testing, a cornerstone of product development in tech and pharmaceuticals, often relies on the Stable Unit Treatment Value Assumption (SUTVA). This assumes that a treatment's effect is immediate and isolated to the treated unit. However, in complex two-sided marketplaces like ride-sharing or delivery platforms, this assumption is frequently violated. A dispatch algorithm change at one moment can alter the spatial distribution of drivers an hour later, creating "interference in time" or carryover effects.
This paper introduces a Reinforcement Learning (RL) framework to address these challenges, allowing for the evaluation of long-term causal effects while enabling sequential monitoring and online updates.
The Problem: Beyond the T-Test
In environments with carryover effects, traditional statistical methods like t-tests or Double Machine Learning often fail. These methods typically focus on immediate rewards, effectively ignoring how a treatment influences future states. In scenarios where a treatment has purely delayed effects—meaning zero immediate impact but significant long-term consequences—standard tests have nearly zero statistical power.
A Reinforcement Learning Solution
The authors propose modeling the experimental environment as a Markov Decision Process (MDP). This shift allows researchers to compare Value Functions—the expected discounted cumulative reward—rather than simple arithmetic means.
Key Methodological Components:
- Temporal-Difference (TD) Learning: The framework utilizes TD learning with linear function approximation (specifically a sieve method) to estimate value functions from experimental data.
- Sequential Alpha-Spending: Adapted from clinical trial methodologies, this allows for periodic data checks and early termination of experiments if a clear winner emerges, optimizing resource allocation.
- Bootstrap-Assisted Boundaries: To handle the temporal correlation inherent in RL data, the authors developed a computationally efficient bootstrap method to determine stopping boundaries, as standard canonical distributions do not apply.
Experimental Validation
The framework's efficacy was demonstrated through both synthetic simulations and real-world applications.
Synthetic Simulations
In tests designed with purely delayed effects, the RL-based approach achieved a rejection power of 0.73, whereas the standard t-test hovered at 0.04, failing to detect any treatment effect.
Real-World Ride-Sharing Application
Applying the framework to a large-scale ride-sharing dataset, the researchers evaluated a new order dispatching strategy. The RL test successfully identified a 2% increase in driver income. Crucially, the sequential monitoring feature reached statistical significance by Day 12 of a planned 14-day trial, demonstrating the potential for significant time and cost savings.
Conclusion and Future Directions
By bridging causal inference and reinforcement learning, this framework provides a robust tool for modern online experiments. It is particularly valuable for platforms where temporal interference is a primary concern. While the current model assumes a Markovian system and fixed state dimensions, future work aims to extend these methods to high-dimensional states and the comparison of complex, state-dependent policies.
The implementation of this framework is available as an open-source Python package, CausalRL.
Summary updated