On the Complexity of Fair House Allocation
Naoyuki Kamiyama, Pasin Manurangsi, Warut Suksompong
Introduction
We consider the classical setting of house allocation, also known as assignment (Hylland and Zeckhauser 1979; Zhou 1990; Abdulkadiroglu and Sönmez 2003). In this setting, there are houses to be allocated among agents, with no two agents sharing the same house. The agents have possibly different preferences over the houses, and each agent should be assigned exactly one house.
While house allocation has typically been considered from the economic efficiency and strategyproofness perspectives (Abraham et al. 2004; Krysta et al. 2014), another important concern is fairness: it is desirable that the agents feel fairly treated. For example, the prominent fairness notion of envy-freeness means that agents do not envy one another with respect to their assigned houses. When , all of the houses must be assigned, so an agent is envy-free if and only if she receives one of her most preferred houses. Thus, in order to compute an assignment with the largest number of envy-free agents, it suffices to find a maximum matching in the bipartite graph where the two sets of vertices correspond to the agents and the houses, respectively, and there is an edge between an agent and a house exactly when the house is among the agent’s most preferred houses—it is well-known that this task can be done in polynomial time. Beynier et al. 2019 assumed that agents can only envy other agents with whom they are acquainted according to a given acquaintance network, and provided algorithms and hardness results for various networks when . Gan et al. 2019 addressed the general setting with (without an acquaintance network). In this setting, a simple matching algorithm no longer suffices, since even when all agents prefer the same house, it may still be possible to achieve envy-freeness by not allocating this house. Gan et al. devised a polynomial-time algorithm that decides whether an envy-free assignment exists and, if so, computes one such assignment. However, their work left open the question of whether an assignment maximizing the number of envy-free agents can be computed efficiently—after all, when making all agents envy-free is impossible, the number of envy-free agents is a natural optimization objective.
In this note, we give a strong negative answer to the question above by showing that under well-known complexity-theoretic assumptions, perhaps surprisingly, it is hard not only to maximize the number of envy-free agents, but also to obtain any decent approximation thereof. Specifically, assuming the Small Set Expansion Hypothesis (Raghavendra and Steurer 2010), the problem is hard to approximate to within a factor of for any constant . We also establish that even when the agents have binary utilities over the houses, maximizing the number of envy-free agents is NP-hard. In addition, we consider two other important fairness notions: proportionality and equitability. On the one hand, we show that deciding whether a proportional allocation exists is NP-hard, thereby drawing a sharp contrast to the envy-freeness result of Gan et al. 2019; on the other hand, we prove that the corresponding problem for equitability can be solved efficiently.
Preliminaries
Let denote the set for any positive integer . In the house allocation setting, there is a set of agents and a set of houses. Each agent has a utility for a house . The utilities are said to be binary if for all and . As assignment or house allocation is an injection . We consider the following fairness properties of assignments:
An agent is said to be envy-free in an assignment if for all . For an assignment , denote by the number of envy-free agents in . The assignment is called envy-free if .
An agent is said to be proportional in an assignment if . An assignment is called proportional if all agents are proportional.
An assignment is called equitable if for all agents .
Notice that for envy-freeness, it suffices to consider the agents’ ordinal rankings over the houses, whereas the cardinal utilities play an important role in the definitions of proportionality and equitability. All three notions are commonly studied in the unconstrained allocation setting where each agent can receive any number of items (Bouveret et al. 2016; Markakis 2017). However, to the best of our knowledge, the latter two notions have not been previously studied in house allocation.
Envy-Freeness
We begin by considering envy-freeness. Recall that Gan et al. 2019 gave a polynomial-time algorithm for deciding whether an envy-free assignment exists for any given instance. We show that their algorithm cannot be generalized to efficiently compute the maximum number of envy-free agents, or even any decent approximation thereof, provided that known complexity-theoretic assumptions hold. We refer to our problem of interest as Maximum Envy-Free Assignment.
For any constant , if there exists a polynomial-time -approximation algorithm for Maximum Envy-Free Assignment, then there is a polynomial-time -approximation algorithm for Maximum Balanced Biclique.
While Maximum Balanced Biclique is known to be NP-hard (Garey and Johnson 1979), the NP-hardness of approximating it remains open. Nevertheless, several inapproximability results for the problem are known under different complexity-theoretic assumptions (Feige 2002; Khot 2006; Bhangale et al. 2016; Manurangsi 2017a; Manurangsi 2017b). Specifically, assuming that NP cannot be solved in subexponential time (i.e., ), our theorem together with the hardness result of Khot 2006 implies that Maximum Envy-Free Assignment is hard to approximate to within a factor of for some constant . Furthermore, combining our theorem with the hardness of Manurangsi 2017b, we can deduce that Maximum Envy-Free Assignment is hard to approximate to within a factor of for any constant —this assumes the so-called Small Set Expansion Hypothesis (Raghavendra and Steurer 2010), which is itself a strengthening of the seminal Unique Games Conjecture (Khot 2002). This inapproximability ratio nearly matches an -approximation, which can be trivially achieved by ensuring that a single agent is envy-free.
If , then, for some constant , Maximum Envy-Free Assignment cannot be approximated to within a factor of in polynomial time.
If the Small Set Expansion Hypothesis holds, then Maximum Envy-Free Assignment is NP-hard to approximate to within a factor of for any constant .
Our main technical contribution is the following reduction from Maximum Balanced Biclique to Maximum Envy-Free Assignment, as formalized below.
There is a polynomial-time reduction that takes an instance of Maximum Balanced Biclique and produces an instance of Maximum Envy-Free Assignment such that the following properties hold:
If , then there exists an assignment such that .
Given any assignment such that , there is a polynomial-time algorithm that outputs and such that , and and together induce a biclique in .
Before we describe the reduction, let us explain how we can use it to prove Theorem 3.1.
Let be any constant, and suppose that there exists a polynomial-time -approximation algorithm for the Maximum Envy-Free Assignment problem. We can use it to approximate Maximum Balanced Biclique on input as follows:
Run the reduction from Lemma 3.4 to produce an instance of Maximum Envy-Free Assignment.
Run on to get an assignment .
Run the algorithm described in the second property of the reduction in Lemma 3.4 on to get a balanced biclique in .
Let . Use a brute-force algorithm to enumerate through all subsets of size at most , and consider the largest balanced biclique found.
Output the larger of the two bicliques computed in the previous two steps.
If , then the brute-force step of the algorithm ensures that the output biclique has size at least . As a result, we may henceforth assume that .
Now, from the first property of the reduction, there exists such that . Thus, must output satisfying , which is equal to due to the third property of the reduction. Then, the second property of the reduction ensures that our algorithm outputs a balanced biclique satisfying
where the second inequality follows from and the last equality follows from our choice of . It follows that our algorithm achieves an approximation ratio of for Maximum Balanced Biclique, as desired. ∎
To establish Theorem 3.1, it therefore remains to prove Lemma 3.4.
Given an instance of Maximum Balanced Biclique where and , we create one agent for each vertex and one house for each vertex . Moreover, we create additional houses . (So, in total, there are agents and houses.) The utility of each agent is defined by
This completes the description of the reduction. It is clear that the reduction runs in polynomial time, and that the third property of the reduction holds. We will now prove the first two properties of the reduction.
Suppose that , i.e., there exists a balanced biclique in where each side has vertices. Assume that this biclique consists of the vertices and . Let us consider the following assignment:
Notice that each of has value for her own house, and does not value any assigned house more than . As such, the assignment is envy-free for these agents, so .
Suppose that there exists an assignment such that . We may assume that , as otherwise we can simply output .
Let denote the set of agents that are envy-free with respect to , so . We start by showing that . Suppose for the sake of contradiction that for some , we have for some . Let be another agent in . Consider two cases based on whether .
for some . In this case, we have , so the assignment is not envy-free for .
for some . In this case, if , then would envy ; otherwise, if , then would envy .
Hence, our reduction satisfies the claimed properties. ∎
Next, we show that even if the agents have binary utilities, maximizing the number of envy-free agents remains computationally hard. This hardness only relies on the standard assumption P NP.
The problem of determining whether for a given positive integer , there exists an assignment such that , is NP-complete even when all agents have binary utilities.
Suppose that we are given an instance of the decision version of Minimum Coverage. Then we construct an instance of our house allocation problem as follows.
For each element , define the utility function by
For each integer , define the utility function by
() Assume first that there exists a feasible solution to the decision version of Minimum Coverage. We will show that there exists a feasible solution to our house allocation problem. Define the assignment as follows.
For each integer , let .
We claim that . More precisely, we prove that every agent in
is envy-free in ; notice that this is sufficient since .
Let be an element in . Then since house is unassigned for every integer such that , has value for all assigned houses, and so is envy-free in .
Let be an integer in . If , then since , is envy-free in . Else, , and since house is unassigned, is again envy-free in .
This completes the proof of this direction.
() Next, we prove the opposite direction. That is, we assume that there exists an assignment such that . We first prove that in this case, there exists an assignment satisfying the following conditions.
For every integer , if , then .
There exists an assignment satisfying (A1) and (A2).
Assume that there exists an integer such that and . Let be the agent in such that . Since , we have and , which implies that is not envy-free in .
Notice that the set of assigned houses in remains the same as in . This implies that for every agent , is envy-free in if and only if is envy-free in . Furthermore, since , is envy-free in . Thus, we have . By setting and repeating this procedure, we eventually obtain a desired assignment . ∎
Let be an assignment satisfying (A1) and (A2) according to Claim 1. Define as the set of integers such that . Notice that
For every element , if , then since there exists an integer such that and , is not envy-free in . Thus, since , we have . This completes the proof. ∎
We remark that the Minimum Coverage problem—also referred to as Bipartite Expansion—is known to be hard to approximate (Louis et al. 2013; Khot and Saket 2016). However, since our reduction in Theorem 3.5 is not approximation-preserving, it does not directly translate into a hardness of approximation for Maximum Envy-Free Assignment in the case of binary utilities.
Proportionality
In this section, we address proportionality. We show that deciding the existence of a proportional assignment is already NP-hard. This is in contrast to envy-freeness, where Gan et al. 2019 gave an efficient algorithm for deciding whether an envy-free assignment exists.
Deciding whether a proportional assignment exists in any given instance is NP-complete.
Membership in NP is clear: given an assignment, we can verify in polynomial time whether it is proportional. For the hardness, we reduce from the Exact 3-Set Cover (X3C) problem, where we are given a universe and subsets , each of size ; the goal is to determine whether there exists a set cover of size . This problem is known to be NP-complete (Garey and Johnson 1979).
Given an instance of X3C, we perform the following reduction. For convenience, we will think of each subset as having ordered elements .
We create agents , each corresponding to an element in the universe, and additional agents . Similarly, we create houses , where correspond to the subset for , as well as additional houses . (So there are agents and houses in total.) Let . The utilities for each of the first agents are defined by
This completes the description of the reduction. It is clear that the reduction runs in polynomial time and that each utility value can be represented in bits. We now establish the validity of the reduction.
Proportionality is clearly satisfied for the last agents. Furthermore, for each , agent has utility exactly for her assigned house, whereas ’s total utility for the assigned houses is
Hence, proportionality is also satisfied for .
() Suppose that there exists a proportional assignment . We will show that the starting instance of X3C is a YES instance.
To this end, let us first observe that since , at least one of the houses must be assigned in . From this and the assumption that is proportional for , we must have
Let us denote and . Observe that for each , (1) implies that
Furthermore, since is proportional for , we have
This implies that , where the latter inequality follows from our choice of parameters. As a result, we must have
Summing (2) over and plugging in the above relation, we get
From (3), this inequality is an equality and, as a result, (2) must be an equality for all as well. This implies that
We remark that the difficulty of deciding the existence of a proportional allocation stems from the fact that unallocated houses are not taken into account in the definition of proportionality. In particular, if we were to use an alternative definition wherein each agent calculates her proportional share based on her utility for the set of all houses, the problem would become solvable in polynomial time, since we would know the desired threshold for every agent and could then check whether a proportional allocation exists by matching.
For binary utilities, envy-freeness and proportionality are equivalent. Indeed, if an agent has utility for all assigned houses, then she is both envy-free and proportional, while if the agent has utility for at least one assigned house, then envy-freeness and proportionality are both equivalent to the condition that the agent receives a house for which she has utility . Theorem 3.5 therefore implies the following corollary.
The problem of determining whether for a given positive integer , there exists an assignment such that at least agents are proportional, is NP-complete even when all agents have binary utilities.
Equitability
Finally, we turn our attention to equitability and show that in contrast to proportionality, deciding whether an equitable assignment exists can be done efficiently.
There is a polynomial-time algorithm that, for any given instance, decides whether an equitable allocation exists.
We iterate over the values for all and . For such each value , we construct a bipartite graph , where there is an edge between agent and house if and only if , and compute a maximum matching of the graph. We return that an equitable assignment exists exactly when the maximum matching has size for at least one constructed graph.
It is well-known that computing a maximum matching in a bipartite graph can be done in polynomial time, and the number of values is . If we find a matching of size , this clearly corresponds to an equitable assignment. Conversely, if there is an equitable assignment with value , then the assignment gives rise to a matching of size in the bipartite graph constructed for value . ∎
Concluding Remarks
In this paper, we have studied the complexity of computing fair house allocations with respect to envy-freeness, proportionality, and equitability. We conclude with some questions that remain from our work.
What is the best approximation ratio for maximizing the number of envy-free agents under binary utilities in polynomial time?
What is the complexity of deciding whether a proportional assignment exists under binary utilities?
Define the inequity of an assignment as the difference between the highest and lowest utilities in . What is the complexity of computing an assignment with the smallest inequity?
This work was partially supported by JSPS KAKENHI Grant Number JP20H05795, Japan and by an NUS Start-up Grant. We thank the anonymous reviewer for valuable feedback.