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

Abstract

Stable matching algorithms, such as Gale-Shapley, are vital for school assignments and medical residency placements. However, real-world markets are dynamic, and re-calculating matchings from scratch after minor changes can lead to massive, disruptive re-assignments. This paper explores the Incremental Stable Marriage (ISM) problem, seeking new stable matchings that minimize changes from the original. We demonstrate that while maintaining perfect stability is often "invasive," allowing minimal instability (blocking pairs) significantly preserves the existing structure. We provide a comprehensive complexity analysis and empirical evidence for these trade-offs.

Introduction

A matching is "stable" if no two participants would both prefer each other over their assigned partners. In dynamic environments—where students move or hospital priorities shift—maintaining this stability is challenging. Simply re-running a matching algorithm can cause a "ripple effect," where a single change forces a large percentage of the population to switch partners. This paper addresses how to update matchings "minimally invasively."

Theoretical Framework and Complexity

The authors first establish a Theoretical Equivalence between different types of market changes: Swapping adjacent preferences, Replacing a preference list, Deleting an agent, and Adding an agent. An algorithm capable of solving one of these incremental problems can be adapted to solve the others.

The study then applies Parameterized Complexity to categorize the difficulty of finding the most similar matching under various constraints.

Summary of complexity results for incremental matching problems with and without ties.

As shown in the table above, finding the most similar stable matching (ISM) without ties is computationally efficient (in P). However, the introduction of ties in preferences or the goal of finding an "Almost Stable" matching (IASM) with a limited number of blocking pairs often leads to NP-hardness or W[1]-hardness, requiring more sophisticated optimization techniques like Integer Linear Programming (ILP).

Experimental Methodology

To validate these theories, the authors conducted simulations using:

  • Random Preferences: Uniformly generated lists for 100 agents.
  • Mallows Model: Structured preferences ranging from highly correlated to random.
  • Hospital Residents Instances: Many-to-one matching scenarios.

The "best" (most similar) matchings were found using an ILP formulation solved via the Gurobi optimizer, which was then compared against the standard Gale-Shapley algorithm.

Key Insights and Results

The Fragility of Stability

In random markets, stability is surprisingly fragile. Deleting a single agent in a 100-person market requires, on average, 38% of the remaining participants to change partners to restore perfect stability. Similarly, a 1% change in preferences (one swap per agent) necessitates a 28% change in the overall matching.

The Stability-Similarity Trade-off

The most impactful finding is the benefit of "Almost Stable" solutions. By permitting a very small number of blocking pairs (e.g., 0.5% instability), the number of required re-assignments drops by approximately 20 percentage points. This suggests that in many real-world scenarios, a slight compromise on perfect stability can drastically improve system continuity.

Heuristic Performance

Interestingly, the standard Gale-Shapley algorithm serves as an excellent heuristic. When re-run on updated preferences, it often produces a matching remarkably close to the mathematically optimal "most similar" stable matching, providing a practical path for implementers.

Conclusion

While maintaining perfect stability in changing markets is computationally feasible for simple cases, it is often socially disruptive due to the high volume of re-matching required. Allowing for "almost stable" matchings offers a powerful tool for minimizing disruption. Future work should extend these empirical tests to real-world datasets and investigate "robust" initial matchings that are inherently resistant to future market fluctuations.

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