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

A Structural and Algorithmic Study of Stable Matching Lattices of Multiple Instances

Rohith Reddy Gangam, Tung Mai, Nitya Raju, Vijay V. Vazirani · OpenReview

Abstract

[MV18] introduced a fundamental new algorithmic question on stable matching, namely finding a matching that is stable under two "nearby" instances, where "nearby" meant that in going from instance $A$ to $B$, only one agent changes its preference list. By first establishing a sequence of structural results on the lattices of $A$ and $B$, [MV18] and [GMRV22] settled all algorithmic questions related to this case. The current paper essentially settles the general case. Assume that instance $B$ is obtained from $A$, both on $n$ workers and $n$ firms, via changes in the preferences of $p$ workers and $q$ firms. If so, we will denote the change by $(p, q)$. Thus [MV18] and [GMRV22] settled the case $(0, 1)$, since they adopt the convention that one firm changes its preferences. Let $\mathcal{M}_A$ and $\mathcal{M}_B$ be the sets of stable matchings of instances $A$ and $B$, and let $\mathcal{L}_A$ and $\mathcal{L}_B$ be their lattices. Our results are:

  1. For $(0, n)$, $\mathcal{M}_A \cap \mathcal{M}_B$ is a sublattice of $\mathcal{L}_A$ and of $\mathcal{L}_B$. We can efficiently obtain the worker-optimal and firm-optimal stable matchings in $\mathcal{M}_A \cap \mathcal{M}_B$. We also obtain the associated partial order, as promised by Birkhoff's Representation Theorem, and use it to enumerate these matchings with polynomial delay.
  2. For $(1, n)$, the only missing results are the partial order and enumeration.
  3. We give an example with $(2, 2)$ for which $\mathcal{M}_A \cap \mathcal{M}_B$ fails to be a sublattice of $\mathcal{L}_A$. In light of the fact that for $(n, n)$, determining if $(\mathcal{M}_A \cap \mathcal{M}_B) = \emptyset$ is NP-hard [MO19], a number of open questions arise; in particular, closing the gap between $(2, 2)$ and $(n, n)$.

Introduction

Stable matching, famously introduced by Gale and Shapley in 1962, is the backbone of many real-world systems, from residency placements to school choice. In the classic model, preferences are static. However, in practice, preferences often evolve. This paper explores "robust" stable matchings—assignments that remain stable under two different sets of preferences (Instance A and Instance B).

The authors investigate three primary goals for these robust sets: tractability (finding matchings in polynomial time), structure (determining if they form a distributive lattice), and geometry (checking if the fractional matching polytope is integral).

Methodology

The research employs a combination of combinatorial algorithm design, lattice theory, and linear programming:

  • Modified Deferred Acceptance (DA): To handle cases where one side changes preferences extensively (the $(1, n)$ case), the authors designed a "multi-room" version of the Gale-Shapley algorithm. Rejections are synchronized across both preference instances simultaneously.
  • Compound Instances: For one-sided changes, the researchers construct a "compound instance" that merges two preference lists into one, using indifference to represent conflicts between instances.
  • Linear Programming (LP): A robust stable matching LP was formulated, using randomized rounding to prove when the resulting polytope has integer corners.
  • XP-Time Algorithm: For the general case, an algorithm was developed that iterates through possible partner assignments for agents with changed preferences, then uses a truncation method to solve the remaining static market.

Key Results and the "Complexity Cliff"

The most striking finding is a sharp structural threshold at the $(2, 2)$ mark. If any number of workers change their minds, but only one firm does, the problem remains mathematically "nice" (it is a lattice and easy to solve). However, if just two firms also change their preferences, the distributive lattice structure collapses.

Summary of algorithmic and structural results for robust stable matchings under (p, q) preference changes.

As shown in the table above, the $(1, n)$ case is fully tractable and maintains both lattice structure and geometric integrality. In contrast, the $(2, 2)$ case loses its lattice structure and integrality, though it remains solvable in polynomial time. For the general case, the authors provide an $O(n^{p+q+2})$ algorithm, meaning the problem is solvable in polynomial time if the number of agents changing their minds is a small constant.

Conclusion and Future Work

While this study settles the general case and identifies the $(2, 2)$ threshold, a "complexity gap" remains. The problem is known to be NP-hard when everyone changes their preferences $(n, n)$, but the exact boundary where the problem transitions from polynomial time to NP-hard is still unknown. Additionally, efficiently computing the Birkhoff partial order for the two-sided $(1, n)$ case remains an open challenge.

Summary updated

BibTeX
@misc{gangam2023structural,
  author = {Rohith Reddy Gangam and Tung Mai and Nitya Raju and Vijay V. Vazirani},
  title = {{A Structural and Algorithmic Study of Stable Matching Lattices of Multiple Instances}},
  year = {2023},
  eprint = {2304.02590},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2304.02590},
}

Loading related content...

Figure