NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Theory of and Experiments on Minimally Invasive Stability Preservation in Changing Two-Sided Matching Markets

Niclas Boehmer, Klaus Heeger, Rolf Niedermeier

Introduction

Matching markets, such as those pairing students with schools or medical residents with hospitals, are inherently dynamic. Participants frequently enter or leave the market, and preferences evolve over time. While the Gale-Shapley algorithm provides a robust framework for finding stable matchings—where no two agents prefer each other over their assigned partners—re-running such algorithms from scratch after a minor market change often results in a "butterfly effect." This phenomenon, where a single change triggers a cascade of reassignments, creates significant administrative and logistical challenges. This paper investigates the Incremental Stable Matching problem: how to update a stable matching to accommodate market changes while minimizing the number of partner reassignments.

Problem Definition and Methodology

The authors define the core challenge as finding a new matching $M_2$ that is stable under updated preferences and maximizes similarity to the original matching $M_1$. The research employs a multi-pronged approach:

  1. Theoretical Equivalence: The authors prove that four fundamental market operations—swapping preferences, replacing an agent's list, deleting an agent, and adding an agent—are mathematically equivalent. This unification allows for generalized algorithmic solutions.
  2. Complexity Analysis: The study explores the computational limits of finding minimally invasive matchings. While the basic problem is tractable, the authors demonstrate that adding ties in preferences or seeking "almost stable" matchings (allowing a fixed number of blocking pairs $b$) makes the problem NP-hard.
  3. Simulations: Using Integer Linear Programming (ILP) to identify optimal "minimally invasive" matchings, the authors simulate market dynamics across various preference models, including Random, Identical, and Mallows models, using 200 instances of 50x50 markets.

Key Insights and Results

The Fragility of Perfect Stability

A primary finding is the extreme sensitivity of stable systems to minor perturbations. In markets with random preferences, deleting a single agent forces an average of 38% of the remaining participants to change partners to maintain perfect stability.

Similarity of matchings under random (a) and identical (b) preference models. The 'Best' line represents the theoretical limit of minimal invasiveness.

As shown in Figure 4, the "Best" possible stable matching (the one with minimum changes) still requires significant reorganization as the fraction of market changes increases. Interestingly, the standard Gale-Shapley algorithm performs remarkably well, often producing matchings within 5% of the theoretical "Best" similarity, despite not being designed for incremental updates.

The "Almost Stable" Loophole

The most significant practical insight involves relaxing the requirement for perfect stability. By allowing a negligible fraction of "blocking pairs"—pairs of agents who would prefer each other but are not matched—the "administrative chaos" of re-matching can be drastically reduced.

Impact of allowing a small number of blocking pairs on matching similarity. Allowing even 0.5% (0.005) or 5% (0.05) blocking pairs significantly lowers the normalized symmetric difference between matchings.

Figure 5 illustrates this trade-off. When perfect stability is required (solid lines), the number of changes grows rapidly. However, introducing a tolerance for "almost stable" matchings (dotted and dashed lines) allows the system to remain much closer to the original state. For instance, a 5% tolerance for blocking pairs can keep a matching nearly identical to its predecessor even after substantial preference shifts.

Conclusion

This research highlights a fundamental tension in market design between stability and continuity. While perfect stability is a desirable economic property, its pursuit in dynamic environments can be disruptive. The authors demonstrate that "almost stable" matchings offer a powerful compromise, providing a path toward minimally invasive updates that preserve the core benefits of the matching while avoiding systemic upheaval. Future work remains to evaluate the social and psychological costs of these minor instabilities in real-world human-centric markets.

Summary updated

BibTeX
@inproceedings{boehmer2022theory,
  author = {Niclas Boehmer and Klaus Heeger and Rolf Niedermeier},
  title = {{Theory of and Experiments on Minimally Invasive Stability Preservation in Changing Two-Sided Matching Markets}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i5.20413},
}
Figure