[Paper Review] Local search for stable marriage problems
This paper proposes a local search algorithm for solving the stable marriage (SM) and stable marriage with ties and incomplete lists (SMTI) problems. By exploiting problem-specific constraints to reduce neighborhood size and accelerate local moves, the approach efficiently finds stable matchings—achieving O(n log n) runtime for SM and producing high-cardinality matchings for SMTI despite NP-hardness.
The stable marriage (SM) problem has a wide variety of practical applications, ranging from matching resident doctors to hospitals, to matching students to schools, or more generally to any two-sided market. In the classical formulation, n men and n women express their preferences (via a strict total order) over the members of the other sex. Solving a SM problem means finding a stable marriage where stability is an envy-free notion: no man and woman who are not married to each other would both prefer each other to their partners or to being single. We consider both the classical stable marriage problem and one of its useful variations (denoted SMTI) where the men and women express their preferences in the form of an incomplete preference list with ties over a subset of the members of the other sex. Matchings are permitted only with people who appear in these lists, an we try to find a stable matching that marries as many people as possible. Whilst the SM problem is polynomial to solve, the SMTI problem is NP-hard. We propose to tackle both problems via a local search approach, which exploits properties of the problems to reduce the size of the neighborhood and to make local moves efficiently. We evaluate empirically our algorithm for SM problems by measuring its runtime behaviour and its ability to sample the lattice of all possible stable marriages. We evaluate our algorithm for SMTI problems in terms of both its runtime behaviour and its ability to find a maximum cardinality stable marriage.For SM problems, the number of steps of our algorithm grows only as O(nlog(n)), and that it samples very well the set of all stable marriages. It is thus a fair and efficient approach to generate stable marriages.Furthermore, our approach for SMTI problems is able to solve large problems, quickly returning stable matchings of large and often optimal size despite the NP-hardness of this problem.
Motivation & Objective
- Address the computational challenge of finding stable matchings in two-sided markets with preference lists.
- Tackle the NP-hard SMTI variant where preferences are incomplete and allow ties, aiming to maximize matching size.
- Develop a local search framework that efficiently explores the solution space while respecting stability constraints.
- Evaluate the algorithm’s performance in terms of runtime scalability and sampling quality across all stable matchings.
Proposed method
- Formulate the SM and SMTI problems as local search optimization tasks over stable matchings.
- Define a neighborhood structure based on man- and woman-oriented exchanges (e.g., rotating partners in cycles) that preserve stability.
- Apply pruning techniques to exclude unstable or invalid moves, reducing neighborhood size without sacrificing completeness.
- Use iterative improvement: at each step, select a neighboring stable matching that improves a defined objective (e.g., cardinality or fairness).
- Leverage the lattice structure of stable matchings to guide search and enhance sampling uniformity.
- Implement tie-breaking and incomplete list handling via restricted matching constraints to ensure only valid pairs are considered.
Experimental results
Research questions
- RQ1Can local search efficiently navigate the space of stable matchings in the classical SM problem?
- RQ2How well does the local search approach scale in terms of runtime as the problem size increases?
- RQ3To what extent can the algorithm sample the full lattice of stable matchings in SM instances?
- RQ4Can local search effectively find high-cardinality stable matchings in the NP-hard SMTI problem?
- RQ5How does the algorithm perform on large-scale SMTI instances despite the problem’s computational hardness?
Key findings
- For the stable marriage (SM) problem, the local search algorithm exhibits O(n log n) growth in the number of steps, indicating strong scalability.
- The algorithm samples the lattice of all stable marriages very effectively, demonstrating fairness and uniformity in solution distribution.
- In SMTI problems, the algorithm quickly returns stable matchings of large and often optimal size, even on large instances.
- Despite the NP-hard nature of SMTI, the local search approach efficiently handles large-scale problems, outperforming traditional exact methods in practice.
- The use of problem-specific pruning reduces neighborhood size significantly, enabling faster convergence without sacrificing solution quality.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.