TL;DR
This paper introduces a Reinforcement Learning (RL) framework to conduct A/B testing in environments where a treatment today influences outcomes tomorrow—a phenomenon known as "carryover effects." By modeling these dynamics as a Markov Decision Process (MDP), the authors provide a rigorous sequential testing procedure that allows companies to evaluate long-term causal effects and terminate experiments early as soon as significant results emerge.
What Problem Does This Paper Address?
Standard A/B testing relies on the Stable Unit Treatment Value Assumption (SUTVA), which assumes that the treatment assigned to one unit doesn't affect the outcomes of others. However, in two-sided marketplaces like Uber or Lyft, this assumption breaks down.
Consider a new order-dispatching algorithm. Assigning a driver to a specific passenger doesn't just produce an immediate outcome (like wait time); it changes the spatial distribution of drivers in the city. This "interference in time" means that a treatment at time $t$ impacts the system's state at $t+1$, creating carryover effects that standard t-tests completely ignore. The authors aim to bridge the gap between RL and causal inference to measure these long-term impacts while allowing for "online updating"—the ability to monitor the experiment in real-time and stop early to save time and budget.
Methods
The authors frame the problem using a Markov Decision Process (MDP), consisting of states ($S_t$), actions ($A_t$), and outcomes ($Y_t$).
Key components of their approach include:
- Causal Estimand: Instead of looking at immediate rewards, they define the treatment effect as the difference between Value Functions ($V$), which represent the discounted cumulative gain from a given starting state.
- Estimation: They use Temporal Difference (TD) learning with linear function approximation (specifically, sieve estimators) to learn the $Q$-function and value functions from the data stream.
- Sequential Monitoring: They integrate an $\alpha$-spending function approach. This allows for multiple "interim analyses" throughout the experiment without inflating the Type-I error rate (false positives).
- Bootstrap-Assisted Boundary: Because carryover effects make the joint distribution of test statistics complex, they developed a computationally efficient bootstrap procedure to determine the statistical boundaries for stopping the experiment.
Datasets
The framework was evaluated using:
- Simulated Data: Synthetic environments specifically designed with delayed effects where the immediate reward is independent of the current action, but future states are highly dependent on it.
- Real-World Ride-Sharing Data: Data from a major technological company (ride-sharing platform) comparing a new dispatch strategy (dispatching to "almost finished" drivers) against a baseline (dispatching only to "completed" drivers).
Key Insights and Ideas
- Value Functions as Causal Metrics: The most elegant idea is using the RL Value Function as the primary metric for A/B testing. It naturally captures the "long-term" nature of business goals that simple averages miss.
- Robustness to Model Choice: A surprising theoretical finding is that when using sieve estimators for function approximation, "undersmoothing" is not required. The test is not overly sensitive to the exact number of basis functions chosen, making it more practical for engineers to implement.
- Failure of the t-test: The paper demonstrates that in systems with carryover effects, a standard t-test can have zero power, meaning it will never detect a better strategy no matter how long the experiment runs, because it only looks at immediate correlations.
Key Results
- Simulation Power: In scenarios with delayed effects, the proposed test achieved high power (e.g., 0.73 to 0.98), whereas the classical t-test and even Double Machine Learning (DML) methods hovered near the significance level (0.04 - 0.06), failing to detect any effect.
- Real-World Efficiency: When applied to the ride-sharing dataset, the proposed test reached significance by the 12th day of a 14-day experiment.
- Comparison: On the same real-world data, a standard two-sample t-test yielded a p-value of 0.18, failing to reject the null hypothesis. The RL framework correctly identified that the new strategy increased driver income by approximately 2% by accounting for the improved spatial distribution of the fleet.
Limitations and Future Work
- Unmeasured Confounders: The current framework assumes the Sequential Randomization Assumption (SRA)—that all variables influencing both treatment and outcome are observed. The authors note that "off-policy evaluation" with latent confounders (like unrecorded weather events or local festivals) remains a challenge for future research.
- High-Dimensional States: While the appendix discusses extensions to high-dimensional models using the Dantzig selector, the primary focus is on lower-dimensional state representations.
- Policy Optimization: The paper focuses on evaluating two fixed policies. A natural next step is integrating this into a framework that optimizes the policy online while maintaining valid statistical inference.
Summary updated