The Complexity of Finding Fair Many-To-One Matchings

Niclas Boehmer, Tomohiro Koana

Abstract

This paper investigates the computational complexity of finding fair many-to-one bipartite matchings. In this setting, items on one side of a bipartite graph (e.g., students or voters) possess specific attributes or "colors" that must be balanced when assigned to the other side (e.g., schools or districts). The authors map the boundary between polynomial-time solvability and NP-hardness, demonstrating that while the problem is generally hard for three or more colors, it is Fixed-Parameter Tractable (FPT) with respect to the number of recipients. A key theoretical contribution is the "touching separation theorem" for submodular functions, which facilitates the design of efficient integer linear programming (ILP) formulations.

Introduction

Resource allocation often requires balancing competing interests or ensuring diversity. Consider the task of assigning students to schools: each student may belong to a specific socioeconomic or linguistic group, and the goal is to ensure that no school receives a disproportionately high or low number of students from any single group. This is formalized as the Fair Many-to-One Matching problem.

In a bipartite graph $G = (U \cup V, E)$, every vertex in $U$ (the items) must be matched to exactly one vertex in $V$ (the recipients). The challenge arises from fairness constraints imposed on the sets of items assigned to each recipient. While standard bipartite matching is solvable in polynomial time, the introduction of color-based balance constraints significantly alters the complexity landscape.

Fairness Criteria

The research focuses on two primary measures of fairness:

  1. Margin of Victory (MoV): For each recipient, the difference between the count of the most frequent color and the second-most frequent color cannot exceed a threshold $\ell$.
  2. Max-Min: For each recipient, the difference between the counts of the most frequent and least frequent colors cannot exceed a threshold $\ell$.

These criteria are particularly relevant in contexts like political redistricting, where one might wish to prevent any single demographic from overwhelmingly dominating a district, or in school choice, where diversity is a mandated goal.

Theoretical Contributions and Methodology

The Touching Separation Theorem

The paper’s most significant theoretical advancement is a new separation result for (super)modular functions. Inspired by Frank’s 1982 theorem, the authors prove a "touching separation theorem." This theorem allows a modular function to "touch" a lower-bound function at a specific point, which is critical for proving that a matching exists if certain Hall-like conditions are satisfied. This result serves as the backbone for the paper's algorithmic proofs.

Parameterized Complexity

Recognizing that the number of recipients ($k = |V|$) is often much smaller than the number of items ($n = |U|$) in real-world scenarios (e.g., 10 districts for 50,000 voters), the authors utilize parameterized complexity analysis. They design ILP formulations where the number of variables depends only on $k$ or the number of colors $|C|$, rather than $n$. By applying Lenstra’s algorithm, they demonstrate that the problem is Fixed-Parameter Tractable (FPT) relative to $k$.

Color Coding and Reductions

For the MoV criterion, the authors employ the color coding technique. This allows them to reduce the general problem to a "Targeted" version where the dominant colors for each recipient are pre-determined. To establish hardness results, they use graph theory reductions to the General Factor problem, which involves finding subgraphs that satisfy specific degree constraints.

Key Results and Complexity Dichotomies

The Three-Color Wall

A pivotal finding is that fairness is computationally "easy" (polynomial) when only two colors are present. However, as soon as a third color is introduced ($|C| \ge 3$), the problem becomes NP-hard. This hardness persists even in restricted cases, such as graphs where each vertex has a maximum degree of five.

Algorithmic Efficiency

  • FPT Results: The authors provide algorithms that solve both Max-Min and MoV variants in $f(k) \cdot n^{O(1)}$ time. This ensures that for a fixed number of schools or districts, the problem remains solvable even as the population size grows into the millions.
  • Degree-Based Dichotomies: The paper maps the complexity based on the maximum degrees of the vertices. For instance, the MoV variant is polynomial-time solvable if the right-side degree $\Delta_V \le 4$.
  • Complete Bipartite Graphs: In cases where any item can be matched to any recipient (a complete bipartite graph), the authors provide a linear-time characterization of "yes-instances," making the problem trivial to solve in unconstrained assignment environments.

Discussion and Future Work

While the paper provides a comprehensive map of the complexity of fair matchings, several avenues for future research remain. The current FPT algorithms rely on ILP solvers which, while polynomial in $n$, have high exponential dependencies on the parameter $k$. Developing more direct, combinatorial FPT algorithms (e.g., with $O^*(2^k)$ complexity) is a clear next step.

Additionally, the authors note that extending these results to handle arbitrary lower and upper bounds on the total number of items per recipient (beyond simple non-emptiness) is not yet straightforward. Finally, exploring alternative fairness definitions—such as proportionality or maximizing the size of a partial fair matching—could broaden the applicability of this framework to more diverse social choice problems.

Summary updated

Abstract

We analyze the (parameterized) computational complexity of "fair" variants of bipartite many-to-one matching, where each vertex from the "left" side is matched to exactly one vertex and each vertex from the "right" side may be matched to multiple vertices. We want to find a "fair" matching, in which each vertex from the right side is matched to a "fair" set of vertices. Assuming that each vertex from the left side has one color modeling its attribute, we study two fairness criteria. In one of them, we deem a vertex set fair if for any two colors, the difference between the numbers of their occurrences does not exceed a given threshold. Fairness is relevant when finding many-to-one matchings between students and colleges, voters and constituencies, and applicants and firms. Here colors may model sociodemographic attributes, party memberships, and qualifications, respectively. We show that finding a fair many-to-one matching is NP-hard even for three colors and maximum degree five. Our main contribution is the design of fixed-parameter tractable algorithms with respect to the number of vertices on the right side. Our algorithms make use of a variety of techniques including color coding. At the core lie integer linear programs encoding Hall like conditions. To establish the correctness of our integer programs, we prove a new separation result, inspired by Frank’s separation theorem [Frank, Discrete Math. 1982], which may also be of independent interest. We further obtain complete complexity dichotomies regarding the number of colors and the maximum degree of each side.
BibTeX
@article{boehmer2022complexity,
  author = {Niclas Boehmer and Tomohiro Koana},
  title = {{The Complexity of Finding Fair Many-To-One Matchings}},
  journal = {ACM Trans. Algorithms},
  year = {2022},
}
Figure