Matching with Couples Revisited

Itai Ashlagi, Mark Braverman, Avinatan Hassidim

Introduction

Matching markets are a cornerstone of modern economic design, most notably seen in the assignment of medical residents to hospitals. These systems rely on the concept of stability: a matching is considered stable if no pair (e.g., a doctor and a hospital) would both prefer to leave their current assignments to be with each other. In their seminal 1962 work, Gale and Shapley demonstrated that for markets consisting only of individuals, a stable matching always exists and can be found using the Deferred Acceptance (DA) algorithm.

However, the introduction of couples—who submit joint preferences such as "we both want to be in the same city"—fundamentally changes the mathematical landscape. Couples introduce "complementarities" that can break the standard DA mechanism. In markets with couples, a stable matching might not exist at all, and finding one is computationally NP-complete. This paper introduces the Sorted Deferred Acceptance (SoDA) algorithm to address this challenge, providing a new theoretical foundation for why large-scale matching markets succeed in practice.

The Gap Between Theory and Practice

Previous theoretical research, specifically by Kojima et al. (2010), suggested that stable matchings exist with high probability only if the number of couples is very small—specifically, proportional to the square root of the number of singles ($O(\sqrt{n})$).

This theoretical limit, however, contradicts real-world observations. For instance, the National Resident Matching Program (NRMP) successfully handles approximately 800 couples alongside 16,000 singles—a ratio significantly larger than the square root of the participant pool. This paper seeks to close this gap by proving that stable matchings are much more robust than previously thought.

The Sorted Deferred Acceptance (SoDA) Algorithm

The authors propose a new mechanism called Sorted Deferred Acceptance (SoDA). The algorithm operates in two primary phases:

  1. Initial Match: The standard DA algorithm is run for all single doctors, temporarily ignoring the couples.
  2. Couple Insertion: Couples are inserted into the match one by one according to a specific permutation order ($\pi$). When a couple is placed, they may "evict" single doctors from their current hospital slots. These evicted doctors then apply to their next-best choices, potentially triggering a "chain reaction" of rejections and re-assignments.

What makes SoDA unique is the "Sorted" twist: If a couple is evicted during a chain reaction, the algorithm does not simply terminate in failure. Instead, it adjusts the insertion order—moving the evicted couple earlier in the sequence—and restarts the process. This iterative re-sorting allows the algorithm to navigate the complex dependencies created by joint preferences.

Theoretical Framework: Influence Trees and Couples Graphs

To analyze the behavior of SoDA, the authors developed a novel theoretical framework using two primary tools:

  • Influence Trees: These track the "path of rejections" initiated when a couple enters the market, mapping how one displacement leads to another.
  • Couples Graphs: These map the interdependencies between different couples. The authors demonstrate that in large random markets, these dependencies form a Directed Acyclic Graph (DAG) with high probability. If there are no cycles of evictions, a stable matching is guaranteed to exist.

Key Insights and Results

Near-Linear Growth

The paper's most significant contribution is the proof that stable matchings exist with high probability even as the number of couples grows at a near-linear rate ($n^{1-\epsilon}$). This is a substantial improvement over the previous $O(\sqrt{n})$ limit and provides a theoretical explanation for the success of the NRMP.

The Linear Phase Transition

The authors identify a critical "phase transition." If the number of couples grows at a strictly linear rate ($\alpha n$), there is a constant probability that no stable matching exists, regardless of the algorithm used. This suggests that while markets are more resilient than previously thought, there is an ultimate limit to how many couples a stable system can support.

Incentive Compatibility

In many matching systems, participants might try to "game the system" by misreporting their preferences. The authors prove that in SoDA, the probability that any doctor or hospital can gain an advantage through such manipulation converges to zero as the market size increases.

Computational Performance

In simulations mimicking the NRMP (16,000 singles and 800 couples), SoDA found stable matchings with near-100% success. Even when couples comprised 10% of the total population, the success rate remained high and stable as the market scaled, with the algorithm running in "almost linear" polynomial time.

Limitations and Future Work

While the SoDA algorithm provides a robust solution, the study notes certain requirements for its success. The proof assumes excess capacity—meaning there are more hospital positions available than there are doctors. In extremely tight markets where every slot is filled, these results might not hold. Additionally, the proofs rely on preferences being somewhat random. While the authors tested "fitness-based" models where certain hospitals are universally preferred, extremely structured or adversarial preference lists could still challenge the algorithm's stability.

Future research may explore the exact boundary where stability vanishes in non-random, real-world markets and whether specific hospital distributions can further extend the limits of linear-rate stability.

Summary updated

BibTeX
@inproceedings{ashlagi2011matching,
  author = {Itai Ashlagi and Mark Braverman and Avinatan Hassidim},
  title = {{Matching with Couples Revisited}},
  booktitle = {EC},
  year = {2011},
  doi = {10.1145/1993574.1993628},
}
Figure