Markovian Interference in Experiments

Vivek F. Farias, Andrew A. Li, Tianyi Peng, Andrew Zheng

Abstract

We consider experiments in dynamical systems where interventions on some experimental units impact other units through a limiting constraint, such as limited inventory. Despite outsize practical importance, the best estimators for this "Markovian" interference problem are largely heuristic in nature, and their bias is not well understood. We formalize the problem of inference in such experiments as one of policy evaluation. Off-policy estimators, while unbiased, apparently incur a large penalty in variance relative to state-of-the-art heuristics. We introduce an on-policy estimator: the Differences-In-Q's (DQ) estimator. We show that the DQ estimator can in general have exponentially smaller variance than off-policy evaluation. At the same time, its bias is second order in the impact of the intervention. This yields a striking bias-variance tradeoff so that the DQ estimator effectively dominates state-of-the-art alternatives. From a theoretical perspective, we introduce three separate novel techniques that are of independent interest in the theory of Reinforcement Learning (RL). Our empirical evaluation includes a set of experiments on a city-scale ride-hailing simulator.

Introduction

In the ecosystem of online marketplaces and ride-hailing platforms, A/B testing serves as the primary mechanism for feature validation. However, these environments frequently violate the Stable Unit Treatment Value Assumption (SUTVA), which posits that the treatment of one unit does not affect the outcomes of others. In a "closed-loop" system, giving a discount to one group of users may deplete available inventory, thereby indirectly affecting the control group. This phenomenon is known as Markovian interference: the treatment alters the state of the system (e.g., inventory levels or driver distributions), which subsequently influences the rewards of all participants.

The Challenge: Bias vs. Variance

Practitioners currently face a difficult choice between two suboptimal approaches:

  1. The Naive Estimator: Treating the experiment as a standard A/B test. While this approach offers low variance, it is highly biased because it ignores the systemic spillover effects of the treatment.
  2. Off-Policy Evaluation (OPE): Utilizing Reinforcement Learning (RL) techniques to obtain an unbiased estimate. While theoretically sound, the authors prove a "Cramér-Rao" lower bound showing that any perfectly unbiased estimator in these systems suffers from variance that grows exponentially with the system size, rendering it practically unusable.

The Differences-In-Q’s (DQ) Estimator

To bridge this gap, the researchers introduce the Differences-In-Q’s (DQ) estimator. By framing the experiment as a Markov Decision Process (MDP), the DQ estimator shifts the focus from immediate rewards to the $Q$-function, or the "reward-to-go."

The $Q$-function represents the immediate reward plus the expected future rewards from a specific state onward. Rather than simply subtracting the average rewards of the control and treatment groups, the DQ estimator subtracts their estimated $Q$-functions. This allows the estimator to account for the future costs of current actions—for instance, recognizing that a sale today might prevent a more valuable sale tomorrow due to inventory constraints.

Theoretical Innovations

A key contribution of the paper is the use of a Taylor-like expansion to analyze the treatment effect. The authors demonstrate that the bias of the DQ estimator is "second-order" ($O(\delta^2)$). In most practical tech applications where treatment effects ($\delta$) are small, the square of that effect becomes negligible. This allows for a massive reduction in variance (exponentially lower than OPE) in exchange for a tiny, controlled amount of bias.

Additionally, the paper introduces the Entrywise Non-expansive Lemma, a technical breakthrough that explains why the DQ estimator’s variance remains stable. It proves that the mathematical mapping used in the estimator does not amplify errors from rarely visited states, ensuring robustness in complex environments.

Empirical Evaluation

The DQ estimator was tested in two distinct environments:

  1. Synthetic 1D Queue: A simulated $M/M/N/N$ queue (Erlang B model) representing a marketplace with 5,000 inventory units. In this setting, the DQ estimator reduced the bias of naive A/B tests by several orders of magnitude.
  2. City-Scale Ride-Hailing Simulator: A high-fidelity model of Manhattan’s ride-hailing market using NYC Taxi & Limousine Commission (TLC) data. This environment involved approximately 300,000 requests and 7,000 drivers daily. Due to the massive state space, the researchers employed linear function approximation to estimate the $Q$-functions.

Key Results and Insights

  • Performance Dominance: In the ride-hailing simulation, the DQ estimator was the only method tested that consistently identified the correct sign of the treatment effect across all scenarios.
  • Efficiency: The DQ estimator outperformed "Two-Sided Randomization" (TSR), a sophisticated experimental design specifically engineered for marketplace interference, despite the DQ estimator requiring a much simpler experimental setup.
  • On-Policy Advantage: The authors demonstrate that by using "on-policy" data (data collected during the actual experiment) to estimate $Q$-functions, one can solve off-policy problems with significantly higher efficiency than traditional OPE methods.

Limitations and Future Directions

While the DQ estimator represents a significant advancement, its performance in massive systems depends on the quality of function approximation. If the features used to estimate the $Q$-function are poor, additional bias may be introduced. Furthermore, the theory assumes the system "mixes" (returns to steady state) relatively quickly; systems with extremely long-term dependencies may pose challenges. Future work may explore higher-order corrections to the Taylor expansion to further refine accuracy in cases where treatment effects are large.

Summary updated

BibTeX
@inproceedings{farias2022markovian,
  author = {Vivek F. Farias and Andrew A. Li and Tianyi Peng and Andrew Zheng},
  title = {{Markovian Interference in Experiments}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=AOSIbSmQJr},
}
Figure