Stability of the bipartite matching model

Ana Busic, Varun Gupta, Jean Mairesse

Introduction

In modern service systems, such as ride-sharing platforms or online marketplaces, matching transient supply with transient demand is a critical operational challenge. Unlike traditional queueing theory, where servers are permanent fixtures, these "bipartite matching models" treat both sides of the market as arrivals that wait in a buffer until a compatible match is found. This paper by Ana Bušić, Varun Gupta, and Jean Mairesse provides a rigorous mathematical foundation for understanding the stability of such systems.

The Bipartite Matching Problem

The core of the problem lies in the compatibility between different classes of items. Imagine a system where customers of type $i$ can only be matched with servers of type $j$ if there is an edge between them in a bipartite graph. When a match occurs, both items leave the system immediately. If no compatible match is available upon arrival, the item enters a queue.

A conceptual diagram of a bipartite matching system where multiple arrival streams are matched based on compatibility.

The central question is: under what arrival rates and matching rules (policies) does the system remain stable? A system is stable if the total number of items in the buffer does not grow to infinity over time.

Theoretical Framework and Stability Conditions

The authors define the system as a discrete-time Markov chain. To determine the boundaries of stability, they leverage Hall’s Marriage Theorem to derive a set of necessary conditions (NCond). For any subset of customer types, the aggregate arrival rate of compatible servers must exceed the arrival rate of those customers.

A bipartite graph representation of customer (C) and server (S) classes and their compatibility links.

As shown in Figure 2, the graph structure determines the "matching opportunities." If the arrival rates are balanced such that these conditions are met, there exists at least one policy that can keep the system stable. However, not all policies are created equal.

Matching Policies: The Superiority of "Match the Longest"

The most significant finding of the research is the universal optimality of the Match the Longest (ML) policy. Under ML, when an arriving item has multiple compatible matches in the buffer, it is matched with the one belonging to the class with the largest current queue.

The researchers prove that ML is "maximal," meaning it achieves stability whenever stability is theoretically possible (i.e., whenever NCond is satisfied). By prioritizing the largest queues, ML effectively prevents any single class from drifting toward infinity, acting as a self-correcting mechanism for the entire network.

In contrast, the Match the Shortest (MS) policy—which might seem intuitively "fair"—can lead to disaster. The authors demonstrate that MS can be "short-sighted," resolving small queues while allowing larger, less-connected queues to grow unchecked. This can lead to instability even when the arrival rates are well within the theoretical limits of the system.

Methodology

To reach these conclusions, the authors employed a variety of sophisticated mathematical techniques:

  • Facet Decomposition: The infinite state space was partitioned into "facets" based on which classes are currently buffered, allowing for a structured analysis of the Markov chain's behavior.
  • Lyapunov Functions: Quadratic Lyapunov functions were used to prove the stability of the ML policy, while linear functions helped establish general stability boundaries.
  • Network Flow Theory: By linking stability to the Max-Flow Min-Cut theorem, the authors provided a way to verify stability using standard graph algorithms.

Key Results and Implications

  1. ML is Universally Stable: For any bipartite graph, ML maximizes the stability region.
  2. MS and Fixed Priorities can Fail: Seemingly reasonable policies can cause system overflow in complex graphs like the "NN graph."
  3. Efficient Verification: The paper provides an $O((|C|+|S|)^3)$ algorithm to check if a system is stable under a given set of arrival rates.
  4. Universal Stability Condition (SCond): A stricter condition was identified under which any non-idling policy remains stable.

Conclusion

This research highlights that in complex matching markets, the choice of matching algorithm is as important as the balance of supply and demand. While "Match the Longest" provides a robust safeguard against instability, other common heuristics like "Match the Shortest" can inadvertently lead to system failure. Future work remains to prove the suspected maximality of First-In-First-Out (FIFO) and random matching policies.

Summary updated

Abstract

We consider the bipartite matching model of customers and servers introduced by Caldentey, Kaplan, and Weiss (Adv. Appl. Probab., 2009). There is a finite set C, resp. S, of customer, resp. server, classes. Time is discrete and at each time step, one customer and one server arrive in the system according to a joint probability measure ¼ on C×S, independently of the past. Allowed matchings are given by a fixed bipartite graph (C, S,E ? C × S), and customers/servers that cannot be matched are stored in a buffer. In this paper, we study the stability of the associated discrete time Markov chain under various admissible matching policies including: ML (Match-the-Longest), MS (Match-the-Shortest), FIFO (match the oldest), priorities. For the ML policy, we prove via a Lyapunov function argument that the stability region is maximal for any bipartite graph. On the other hand, we exhibit a bipartite graph for which the MS and priority policies have non-maximal stability regions. Finally, we prove that the stability of the bipartite model is implied by the stability of the associate fluid limits, and use this result to establish maximal stability region for the FIFO matching policy.
BibTeX
@inproceedings{busic2013stability,
  author = {Ana Busic and Varun Gupta and Jean Mairesse},
  title = {{Stability of the bipartite matching model}},
  booktitle = {Advances},
  year = {2013},
  doi = {10.1017/s0001867800006364},
}
Figure