Experimental Design for Matching

Chonghuan Wang · DOI

Abstract

Matching mechanisms play a central role in operations management across diverse fields including education, healthcare, and online platforms. However, experimentally comparing a new matching algorithm against a status quo presents some fundamental challenges due to matching interference, where assigning a unit in one matching may preclude its assignment in the other. In this work, we take a design-based perspective to study the design of randomized experiments to compare two predetermined matching plans on a finite population, without imposing outcome or behavioral models. We introduce the notation of a disagreement set, which captures the difference between the two matching plans, and show that it admits a unique decomposition into disjoint alternating paths and cycles with useful structural properties. Based on these properties, we propose the Alternating Path Randomized Design, which sequentially randomizes along these paths and cycles to effectively manage interference. Within a minimax framework, we optimize the conditional randomization probability and show that, for long paths, the optimal choice converges to $\sqrt{2}-1$, minimizing worst-case variance. We establish the unbiasedness of the Horvitz-Thompson estimator and derive a finite-population Central Limit Theorem that accommodates complex and unstable path and cycle structures as the population grows. Furthermore, we extend the design to many-to-one matchings, where capacity constraints fundamentally alter the structure of the disagreement set. Using graph-theoretic tools, including finding augmenting paths and Euler-tour decomposition on an auxiliary unbalanced directed graph, we construct feasible alternating path and cycle decompositions that allow the design and inference results to carry over.

Introduction

Matching mechanisms are the backbone of modern operations, from ride-sharing platforms and dating apps to organ exchanges and school admissions. Naturally, platforms constantly develop new matching algorithms and want to A/B test them against their status quo.

However, standard A/B testing assumes that treating one unit doesn't affect another (the SUTVA assumption). In matching markets, this assumption completely breaks down due to matching interference. If an experiment assigns Worker A to Job B (from the new algorithm), Job B is no longer available for Worker C (who would have gotten it under the old algorithm). Because of these hard capacity constraints, independent randomization for each user is impossible. Historically, researchers have bypassed this by relying on structural behavioral models or using switchback experiments. This paper introduces a design-based framework to compare two predetermined matching plans on the same finite population without imposing assumptions about user behavior or outcomes.

Methodology

The proposed Alternating Path Randomized Design (AP Design) relies on a structural observation of matchings.

The Disagreement Set and Decomposition

Instead of analyzing the entire market, the design isolates the disagreement set—the specific pairs of matches that appear in exactly one of the two algorithms (Treatment $\mathbb{M}^t$ or Control $\mathbb{M}^c$). In a 1-to-1 matching scenario, this disagreement set uniquely decomposes into disjoint "alternating paths and cycles." An alternating path is a sequence of matches that strictly alternates between the Treatment plan and the Control plan.

Visualizing the Disagreement Set and its decomposition into alternating paths and cycles.

Sequential Randomization

Because adjacent edges on these paths share a node, they cannot both be realized simultaneously. The AP design randomizes sequentially along the path: if a match is realized, the next adjacent match is skipped. If it is skipped, the next match is realized with a conditional probability $p$.

Many-to-One Extension

For many-to-one matchings (e.g., students to schools), the path decomposition is no longer unique and can violate capacity constraints. The author addresses this by mapping the disagreement set to an auxiliary unbalanced directed graph and using graph-theoretic algorithms, such as Edmonds-Karp max flow and Euler-tour decompositions, to extract a valid, capacity-respecting set of paths and cycles.

Empirical Validation

The theoretical findings were validated using a real-world workforce dataset from Revelio Labs. The study focused on mid-level software engineers in the US (2010–2015) to simulate a controlled job-worker matching environment. The primary outcome of interest was employment duration (specifically, whether a spell exceeds six months).

Key Insights

  • Optimal Randomization Probability: When optimizing the conditional randomization probability $p$ to minimize worst-case variance, the optimal choice for long alternating paths converges to $\sqrt{2}-1 \approx 0.414$. This value is less than 0.5 because the design must balance the variance of the current match with the cascading interference effects passed down the path.
  • Structural Elegance: Decomposing differences into independent alternating paths and cycles isolates the exact boundaries of interference, providing a powerful conceptual tool for causal inference in networks.
  • Handling Network Instability: The paper establishes a finite-population Central Limit Theorem (CLT) that holds even when the network structure is highly unstable as the population grows.

Key Results

  • Asymptotic Variance Reduction: The variance of the AP Design's estimator decreases at a rate of $O(1/N)$ as the population size $N$ grows. In contrast, a "naive design" (flipping a single coin for the entire matching) has a variance that does not vanish with population size.
  • Performance: In Revelio Labs simulations, the AP design's variance dropped from 0.898 (at $N=10$) to 0.184 (at $N=50$), while the naive design's variance remained stagnant at approximately 3.1.
  • Variance Estimation: The author derived a data-driven upper bound for the variance, which empirically tracks the true variance closely, allowing for accurate confidence intervals despite the inability to observe adjacent matches simultaneously.

Conclusion

The AP Design provides a model-free approach to A/B testing matching algorithms by leveraging the structural properties of disagreement sets. While it assumes static matching plans, it sets a rigorous foundation for future work in dynamic matching environments, which are prevalent in ride-hailing and other real-time platforms.

Summary updated

BibTeX
@misc{wang2026experimental,
  author = {Chonghuan Wang},
  title = {{Experimental Design for Matching}},
  year = {2026},
  eprint = {2601.21036},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2601.21036},
}
Figure