Abstract
We study the problem of dynamic matching in heterogeneous networks, where agents are subject to compatibility restrictions and stochastic arrival and departure times. In particular, we consider networks with one type of easy-to-match agents and multiple types of hard-to-match agents, each subject to its own compatibility constraints. Such a setting arises in many real-world applications, including kidney exchange programs and carpooling platforms. We introduce a novel approach to modeling dynamic matching by establishing the ordinary differential equation (ODE) model, which offers a new perspective for evaluating various matching algorithms. We study two algorithms, namely the Greedy and Patient Algorithms, where both algorithms prioritize matching compatible hard-to-match agents over easy-to-match agents in heterogeneous networks. Our results demonstrate the trade-off between the conflicting goals of matching agents quickly and optimally, offering insights into the design of real-world dynamic matching systems. We provide simulations and a real-world case study using data from the Organ Procurement and Transplantation Network to validate theoretical predictions.
Introduction
Dynamic matching systems, ranging from ride-sharing platforms to organ transplant registries, face the challenge of maximizing successful matches among agents who arrive and depart at random intervals. Two primary hurdles complicate this task: agent heterogeneity and analytical complexity. In systems like kidney exchanges, some participants are "easy-to-match" (e.g., universal recipients), while others are "hard-to-match" due to rare antibodies or blood types.
Traditional discrete-time models are often too mathematically cumbersome to analyze long-term system performance effectively. This research addresses these challenges by introducing a continuous-time mathematical framework. By modeling the evolution of agent pools using Ordinary Differential Equations (ODEs), we can predict the performance of different matching strategies in diverse markets.
Methodology: The ODE Framework
The core innovation of this work is the establishment of an asymptotic equivalence between discrete-time matching processes and continuous ODEs. By considering infinitesimally small time steps as the market size grows, the stochastic process is transformed into a deterministic system of equations. This allows for the use of tools like the Poincaré–Bendixson Theorem to prove that these systems reach stable states.
The study evaluates two primary algorithms:
- Greedy Algorithm: Matches an agent immediately upon arrival if a compatible partner exists, prioritizing hard-to-match partners.
- Patient Algorithm: Matches agents only when they are about to "perish" (leave the market), also prioritizing hard-to-match partners.
Results and Key Insights
The analysis reveals a fundamental performance gap between the two strategies. While both algorithms benefit from increased network density, the Patient Algorithm achieves an exponential decrease in unmatched agents ("loss"), whereas the Greedy Algorithm only achieves a linear decrease. Specifically, the Greedy loss scales as $\Theta(1/d)$, while the Patient loss scales as $e^{-\text{constant} \cdot d}$, where $d$ represents network density.
However, this efficiency comes at a cost. The Patient Algorithm creates a "burden of waiting," where easy-to-match agents remain in the pool significantly longer than they would under a Greedy regime. Additionally, the Patient Algorithm exhibits a "phase transition" — a tipping point where system behavior changes abruptly when the proportion of hard-to-match agents crosses a specific threshold. Notably, the presence of easy-to-match agents significantly aids hard-to-match agents in finding partners, though the reverse effect is negligible.
Validation using synthetic simulations (up to 8,000 agents) and real-world data from the Organ Procurement and Transplantation Network (OPTN) — comprising over 1 million patient-donor pairs — confirmed these theoretical predictions. The OPTN data specifically validated that the Patient Algorithm consistently yields a smaller loss in practical settings.
Conclusion and Future Directions
This work provides a robust theoretical foundation for analyzing dynamic matching in heterogeneous networks. While the Patient Algorithm maximizes social welfare through superior match rates, the trade-off in waiting times suggests that real-world systems must balance these conflicting goals. Future research will explore incorporating continuous "costs of waiting" (e.g., health decline) into the loss functions and analyzing the transient, short-term behavior of these systems using Lyapunov function methods.
Summary updated