English

Maximally Diverse Stable Matchings: Optimizing Arbitrary Institutional Objectives

Computer Science and Game Theory 2026-05-01 v1

Abstract

Stable matching theory is the foundation of centralized clearinghouses worldwide, from school choice programs to medical residency allocations. However, incorporating complex distributional goals-such as multi-dimensional diversity quotas or sibling co-assignment guarantees-often compromises stability or renders the problem computationally intractable. The existing literature typically addresses this tension by weakening stability to accommodate distributional constraints. In contrast, the reverse question remains largely unexplored: if we restrict attention to stable matchings, to what extent can such distributional objectives be achieved? In this paper, we resolve this tension by introducing a general, polynomial-time algorithmic framework to optimize arbitrary institutional (or even two-sided) objectives within the set of stable matchings. We prove that for any polynomial-time computable set functions gig_i evaluating the assigned students at institutions iIi \in I, a stable matching minimizing either the utilitarian objective iIgi\sum_{i\in I} g_i or the egalitarian objective maxiIgi\max_{i\in I} g_i can be found efficiently. Our approach leverages the structural properties of stable matchings, mapping arbitrary set functions to linear edge weights. We apply this theorem to efficiently solve major open practical problems: finding stable matchings that minimally violate overlapping diversity quotas (under both total and maximum violations) and maximizing the number of sibling families assigned to the same institution. Even when the distributional objective is prioritized, our algorithm helps to quantify the ``price of stability'', i.e., the gap between the maximally diverse matching and the maximally diverse stable matching.

Keywords

Cite

@article{arxiv.2604.27823,
  title  = {Maximally Diverse Stable Matchings: Optimizing Arbitrary Institutional Objectives},
  author = {Gergely Csáji and Zhaohong Sun},
  journal= {arXiv preprint arXiv:2604.27823},
  year   = {2026}
}
R2 v1 2026-07-01T12:43:32.604Z