Worst- and Average-Case Robustness of Stable Matchings: (Counting) Complexity and Experiments

Kimon Boehmer, Niclas Boehmer

Abstract

Stable matching is a cornerstone of market design, yet the robustness of these matchings to preference changes is often overlooked. This paper shifts the focus from finding stable matchings to quantifying their resilience. We analyze the computational complexity of measuring robustness under adversarial and random perturbations. Our results show that while determining if a matching can be broken is often computationally feasible, counting the number of ways it can fail is generally #P-hard. Experimental evaluations using the Mallows Noise Model further demonstrate that most stable matchings are highly sensitive to even minor preference shifts.

Introduction

Stable matching frameworks, such as pairing students to schools or doctors to hospitals, rely on the assumption that no two agents prefer each other over their assigned partners. However, real-world preferences are dynamic; agents may update their rankings as they acquire new information. While previous literature has sought matchings that are inherently robust, this work addresses the inverse: how to measure the robustness of an existing matching. We evaluate robustness through two lenses: adversarial (worst-case) scenarios, identifying the minimum changes needed to break stability, and random (average-case) noise, calculating the probability of continued stability.

Methodology

The study employs a dual approach combining theoretical complexity analysis and experimental simulation.

Theoretical Framework

We define several computational problems categorized by the type of perturbation: Swap Robustness (reordering rankings) and Delete Robustness (removing agents). We analyze both decision variants (determining if stability can be broken within $k$ changes) and counting variants (quantifying the number of unstable profiles).

Experimental Setup

To assess average-case robustness, we utilize the Mallows Noise Model to generate preference profiles at varying distances from a central consensus. We introduce the 50%-stability-threshold—the noise level at which the probability of a matching remaining stable drops below 50%. Our experiments utilize a synthetic dataset of 544 instances across various statistical cultures, including Impartial Culture (IC), Euclidean models (1D, 2D), and Mallows models.

Key Results and Insights

Complexity of Robustness

Our theoretical analysis reveals a significant gap between decision and counting problems. While checking for the existence of a "blocking" perturbation is often in P, counting the number of such perturbations is typically #P-hard.

Table 1: Summary of complexity results for robustness problems across different perturbation types and granularities.

As shown in Table 1, the complexity varies depending on whether we consider the entire matching, specific pairs, or individual agents. To address the hardness of counting, we propose a Fully Polynomial-time Randomized Approximation Scheme (FPRAS) and a fast heuristic based on blocking pair proximity.

Fragility and Sensitivity

Experimental results indicate that stability is a "knife-edge" property. In most synthetic models, the standard Gale-Shapley "men-optimal" matching can be invalidated by a single adversarial swap. Under random noise, these matchings exhibit extreme sensitivity; the 50%-threshold for stability typically occurs at very low noise levels (0.002 to 0.003 norm-$\phi$).

Structural Observations

  • Algorithm Choice Matters: Matchings that minimize the "summed rank" of partners often exhibit higher robustness than the men-optimal matching.
  • Local vs. Global Resilience: While individual stable pairs may be robust, the matching as a whole is only as strong as its weakest link.
  • Model Variance: Interestingly, structured preferences (e.g., Euclidean models) are often less robust than purely random ones (IC).

Conclusion and Future Work

This research highlights the inherent fragility of stable matchings and provides tools to quantify this vulnerability. While we have mapped the complexity landscape, several open questions remain, such as the complexity of PAIR-DELETE-ROBUSTNESS (marked as '?' in Table 1). Future research should explore robustness in dynamic markets with arriving and departing agents and validate these findings against real-world preference data.

Summary updated

Abstract

Focusing on the bipartite Stable Marriage problem, we investigate different robustness measures related to stable matchings. We analyze the computational complexity of computing them and analyze their behavior in extensive experiments on synthetic instances. For instance, we examine whether a stable matching is guaranteed to remain stable if a given number of adversarial swaps in the agent’s preferences are performed and the probability of stability when applying swaps uniformly at random. Our results reveal that stable matchings in our synthetic data are highly unrobust to adversarial swaps, whereas the average-case view presents a more nuanced and informative picture.
BibTeX
@inproceedings{boehmer2024worst,
  author = {Kimon Boehmer and Niclas Boehmer},
  title = {{Worst- and Average-Case Robustness of Stable Matchings: (Counting) Complexity and Experiments}},
  booktitle = {ECAI},
  year = {2024},
  url = {https://openreview.net/forum?id=YM2JIaMgoS},
}
Figure