A multiagent reinforcement learning framework for off-policy evaluation in two-sided markets

Chengchun Shi, Runzhe Wan, Ge Song, Shikai Luo, Hongtu Zhu, Rui Song

Abstract

The two-sided markets, such as ride-sharing companies, often involve a group of subjects who are making sequential decisions across time and/or location. With the rapid development of smart phones and internet of things, they have substantially transformed the transportation landscape of human beings. In this paper we consider large-scale fleet management in ride-sharing companies that involve multiple units in different areas receiving sequences of products (or treatments) over time. Major technical challenges, such as policy evaluation, arise in those studies because: (i) spatial and temporal proximities induce interference between locations and times, and (ii) the large number of locations results in the curse of dimensionality. To address both challenges simultaneously, we introduce a multiagent reinforcement learning (MARL) framework for carrying policy evaluation in these studies. We propose novel estimators for mean outcomes under different products that are consistent despite the high dimensionality of state-action space. The proposed estimator works favorably in simulation experiments. We further illustrate our method using a real dataset obtained from a two-sided marketplace company to evaluate the effects of applying different subsidizing policies.

Introduction

In two-sided markets like Uber, Lyft, or Didi, platform decisions—such as driver subsidies or passenger coupons—create ripples across both space and time. Evaluating new strategies in these complex, interconnected environments is challenging because standard causal inference assumptions often fail. Specifically, two major hurdles exist:

  1. Spatiotemporal Interference: Standard causal inference usually assumes the Stable Unit Treatment Value Assumption (SUTVA), where one unit's treatment does not affect another's outcome. In ride-sharing, this is violated; subsidizing drivers in one region may cause a shortage in another as drivers relocate.
  2. The Curse of Dimensionality: Treating an entire city as a single state leads to an astronomical number of state-action combinations, making effective learning from historical data nearly impossible.

This paper introduces a Multi-Agent Reinforcement Learning (MARL) framework for "off-policy evaluation" (OPE), allowing researchers to estimate the performance of a new policy using historical data without risky real-world experimentation.

Methodology

The researchers treat each spatial region of a city as an individual agent in a MARL system. The framework explicitly models the interactions and dependencies between these agents over time.

Causal diagram of the multiagent reinforcement learning framework showing dependencies across time and agents.

The approach hinges on three key technical innovations:

  • Mean-Field Approximation: To mitigate the curse of dimensionality, the authors assume an agent’s reward and state transitions depend only on its own actions and the average (mean-field) behavior of its neighbors.
  • Doubly Robust (DR) Estimator: They propose a value estimator combining a "density ratio" (accounting for state distribution changes) and a "Q-function" (modeling expected long-term rewards). The estimator is "doubly robust," meaning it remains unbiased if either the density ratio or the Q-function is correctly specified.
  • Statistical Testing for Mean-Field Validity: The authors provide a formal statistical test based on conditional independence to verify if the mean-field assumption holds for a given dataset.

Empirical Evaluation

The framework was validated using both synthetic simulations and real-world data.

Hexagonal spatial partitioning of a city into distinct agents for MARL modeling.
  1. Synthetic Simulation: A 5x5 grid (25 regions) simulating ride-sharing dynamics, where drivers move between regions based on attraction rates influenced by subsidies and demand.
  2. Real-World Marketplace Data: An anonymized dataset from Didi Chuxing consisting of 8 irregular spatial units. The data includes driver supply, passenger demand, and Gross Merchandise Volume (GMV) over 30-minute intervals.

In simulations, the proposed DR and Importance Sampling (IS) estimators achieved significantly lower Mean Squared Error (MSE) than baselines that ignored spatial dependencies. When applied to the Didi dataset, the model successfully evaluated complex, spatiotemporally adaptive subsidy policies.

Discussion and Key Insights

The MARL framework transforms interference from a statistical nuisance into a modeled feature. By focusing on local neighborhoods (mean-fields), the complexity of city-wide dynamics becomes mathematically tractable. Unlike many RL applications that use discounted rewards, this work utilizes an "average reward" setup, which better reflects the steady-state nature of daily urban traffic.

However, the model relies on the Sequential Randomization Assumption (SRA), assuming all variables influencing both policy and outcome are recorded. Future work may involve using neural networks to learn more complex mean-field representations or extending the framework to purely observational settings where the original policy was not randomized.

Source: Shi, C., et al. (2023). "A multiagent reinforcement learning framework for off-policy evaluation in two-sided markets." Annals of Applied Statistics.

Summary updated

BibTeX
@article{shi2023multiagent,
  author = {Chengchun Shi and Runzhe Wan and Ge Song and Shikai Luo and Hongtu Zhu and Rui Song},
  title = {{A multiagent reinforcement learning framework for off-policy evaluation in two-sided markets}},
  journal = {The Annals of Applied Statistics},
  year = {2023},
  doi = {10.1214/22-aoas1700},
}
Figure