The Complexity of Fairness through Equilibrium
Abraham Othman, Christos Papadimitriou, Aviad Rubinstein
Introduction
University classes have limited capacity, and some are more popular than others. This creates an interesting allocation problem. Imagine that each student has ordered all possible bundles of courses from most desirable to least desirable, and the capacities of classes are known. What is the best way to allocate class seats to students? There are several desiderata for a course allocation mechanism:
Are all possible seats in courses allocated?
Are students motivated to honestly report their preferences to the mechanism?
Can the allocation be computed from the data in polynomial time?
Competitive Equilibrium from Equal Incomes (CEEI) (Foley, 1967; Varian, 1974; Thomson and Varian, 1985) is a venerable mechanism with many attractive properties: In CEEI all agents are allocated the same amount of “funny money”, next they declare their preferences, and then a price equilibrium is found that clears the market. The market clearing guarantees efficiency and feasibility. The mechanism has a strong, albeit technical, ex post fairness guarantee that emerges from the notion that agents who miss out on a valuable, competitive item will have extra funny money to spend on other items at equilibrium. Truthfulness is problematic — as usual with market mechanisms — even though the problem is mitigated by the large number of agents. However, CEEI works when the resources to be allocated are divisible and the utilities relatively benign. It is easy to construct examples in which a CEEI does not exist when preferences are complex or the resources being allocated are not divisible. Indeed, both issues arise in practice in a variety of allocation problems, including shifts to workers, landing slots to airplanes, and our favorite, courses to students. (Varian, 1974; Budish, 2011).
It was recently shown in Budish (2011) that an approximation to a CEEI solution, called A-CEEI, exists even when the resources are indivisible and agent preferences are arbitrarily complex, as required by the course allocation problems one sees in practice. The approximate solution guaranteed to exist is approximately fair (in that the agents are given almost the same budget), and approximately efficient and feasible (in that all classes are filled close to capacity, with the possible exception of very unpopular classes). This result seems to be wonderful news for the class allocation problem. However, there is a catch: Budish’s proof is non-constructive as it relies on Kakutani’s fixed-point theorem.
A heuristic algorithm for solving A-CEEI was introduced in Othman et al. (2010). The algorithm is a modified search analogue to the traditional tâtonnement process, where the prices of courses that are oversubscribed are increased, and the prices of courses that are undersubscribed are decreased. This heuristic algorithm is currently used by the Wharton School (University of Pennsylvania) to assign their MBA students to courses. It has been documented that the heuristic algorithm often produces much tighter approximations than the theoretical bound; yet, on some instances it fails to find even the guaranteed approximation (Budish, 2011, Section 9).
Thus A-CEEI is a problem where practical interest motivates theoretical inquiry. We have a theorem that guarantees the existence of an approximate equilibrium — the issue is finding it. Can the heuristic of Othman et al. (2010) be replaced by a fast and rigorous algorithm for finding an approximate CEEI? Or are there complexity obstacles to approximating CEEI?
In this paper, we show that finding the guaranteed approximation to CEEI is an intractable problem:
Theorem 2, informal statement. The problem of finding an A-CEEI as guaranteed by Budish (2011) is -complete.
We also show an essentially optimal -hardness result for determining whether a better approximation exists.
Theorem 3, informal statement. It is -hard to distinguish between an instance where an exact CEEI exists, and one in which there is no A-CEEI tighter than guaranteed in Budish (2011).
The Course Allocation Problem
Even though the A-CEEI and the existence theorem in (Budish, 2011) are applicable to a broad range of allocation problems, we shall describe our results in the language of the course allocation problem.
We are given a set of courses with integer capacities (the supply) , and a set of students, where each student has a set of permissible course bundles, with each bundle containing at most courses. The set encodes both scheduling constraints (e.g., courses that meet at the same time) and any constraints specific to student (e.g. prerequisites).
Each student has a strict ordering over her permissible schedules, denoted by . We allow arbitrarily complex preferences — in particular, students may regard courses as substitutes or complements. More formally:
Course Allocation Problem The input to a course allocation problem consists of:
For each student a set of course bundles .
The students’ reported preferences, ,
The course capacities, , and
The output to a course allocation problem consists of:
Prices for each course ,
Allocations for each student, and
Budgets for each student .
How is an allocation evaluated? The clearing error of a solution to the allocation problem, is the norm of the length- vector of seats oversubscribed in any course, or undersubscribed seats in courses with positive price.
The clearing error of an allocation is
We can now define the notion of approximate CEEI. The quality of approximation is characterized by two parameters: , the clearing error (how far is our solution from a true competitive equilibrium?) and , the bound on the difference in budgets (how far from equal are the budgets?). Informally, can be thought of as the approximation loss on efficiency, and can be thought of as the approximation loss on fairness.
An allocation is a -CEEI if:
Each student is allocated their most preferred affordable bundle. Formally
Total clearing error is at most .
In Budish (2011) it is proved that an -approximate CEEI always exists, for some quite favorable (and as we shall see, essentially optimal) values of and :
Budish (2011) For any input preferences, there exists a -CEEI with and any .
Recall that is the maximum bundle size. means that, for large number of students and course capacities, the market-clearing error converges to zero quite fast as a fraction of the endowment. It is also shown in Budish (2011) that the mechanism which allocates courses according to such an A-CEEI satisfies attractive criteria of approximate fairness, approximate truthfulness, and approximate Pareto efficiency. The reader may consult Budish (2011) for the precise definitions of the economic properties of the A-CEEI mechanism.
Theorem 1 is an example of a non-constructive existential result; such theorems are common in mathematics, and are quite often related to economics (recall Nash’s theorem, Arrow-Debreu theorem, etc.). It is often important to determine whether there is a polynomial algorithm for finding the solution guaranteed by such a theorem; computational problems of this nature are called total, because they correspond to total functions from inputs to solutions.
In exploring the difficulty of total problems, applying the methodology of -completeness is problematic. The intuitive reason is that, for example, a reduction from 3SAT relies heavily on the fact that the starting 3SAT instance may be unsatisfiable. Therefore 3SAT cannot be reduced in any meaningful way to a total problem such as A-CEEI (see Chapter 2 of Nisan et al. (2007) for a discussion of this point). -completeness does not seem to be an option. But there is an alternative: Total problems can often be proved complete for certain complexity classes between and . For example, during the past decade several game-theoretic problems have been proved complete for the complexity class , containing difficult problems related to fixed point theorems such as Brouwer’s, Nash’s, competitive equilibria, and so on (Papadimitriou (1994); Abbott et al. (2005); Codenotti et al. (2006); Huang and Teng (2007); Chen et al. (2009); Chen and hua Teng (2009); Daskalakis et al. (2009); Kintali et al. (2009); Palvolgyi (2009); Chen and Teng (2011); Vazirani and Yannakakis (2011); Chen et al. (2013)).
There are several interesting and subtle ways of defining , but for our purposes it is most convenient to define it as the class of all total problems that are reducible to the problem Gcircuit, the problem of finding the fixed point of a continuous function specified by a “generalized circuit”. Gcircuit is defined in the next section.
A-CEEI is \PPAD\PPAD\PPAD-Complete
Computing a -CEEI is -complete, for some polynomially small
The rest of this section is devoted to the proof of this theorem.
We first establish that the problem belongs to the class ; this proof is much harder than usual (see Appendix A). We follow the steps of the existence proof in Budish (2011), and show that each one can be carried out either in polynomial time, or through a fixed point. One difficulty is that certain steps of Budish’s proof are randomized, and we must be derandomized in polynomial time.
The problem Gcircuit
The reduction is from the PPAD-complete problem Gcircuit, alluded to in the previous section.
Generalized circuits are similar to the standard algebraic circuits, the main difference being that generalized circuits contain cycles, which allow them to verify fixed points of continuous functions. Formally,
A generalized circuit is a pair , where is a set of nodes and is a collection of gates. Every gate is a 5-tuple , in which Chen et al. (2009) define slightly different gates, whose -approximation can be simulated by of our gates: can be simulated using and ; and and can be simulated using and . is the type of the gate; are the first and second input nodes of the gate; is the output node.
The collection of gates must satisfy the following important property: For every two gates and in , .
Given a generalized circuit, we are interested in the computational problem of finding an assignment that simultaneously satisfies all the constraints defined by the gates.
VALUE:
SUM:
DIFF:
LESS:
AND:
OR:
Given a generalized circuit , -Gcircuit is the problem of finding an assignment that -approximately satisfies it. It is shown in Chen et al. (2009) to be -complete for .
Overview of the Reduction
We shall reduce the -Gcircuit problem to that of finding an -CEEI, with approximation parameters and . (Note that, by increasing , we can make arbitrarily large as a function of ; in particular, .)
We will construct gadgets (that is, small sets of courses, students, capacities and preferences) for the various types of gates in the generalized circuit. Each gadget that we construct has one or more dedicated “input course(s)”, a single “output course”, and possibly some “interior courses”. An output course of one gadget can (and will) be an input to another. The construction will guarantee that in any A-CEEI the price of the output course will be approximately equal to the gate applied to the prices of the input courses.
Gate gadgets
To illustrate what needs to be done, we proceed to construct a gate for the function ; in particular, this implements a logic NOT.
Let and suppose that the economy contains the following courses:
with capacity (the “output course”);
students interested only in the schedule ;
and suppose further that at most other students are interested in course .
Then in any -CEEI
If , then none of the students will be able to afford the bundle , and therefore there will be at most students enrolled in the - much less than the capacity . Therefore .
On the other hand, if , then all students can afford the bundle - therefore the class will be overbooked by ; thus, .
Therefore if , then - a contradiction to -CEEI. ∎
Similarly, we construct gadgets that simulate all the gates of the generalized circuit:
Let and suppose that the economy has courses and . Then for any of the gate functions in the definition of -Gcircuit, we can add: a course , and at most students interested in each of and , such that in any -CEEI .
In particular, continue to satisfy the above inequalities in every -CEEI even if up to additional students (beyond the ones needed in the proof) are interested in course .
We defer the proof of Lemma 2 to the appendix.
Course-size amplification
So far, we have constructed gadgets that compute all the gates necessary for the circuit in the reduction from -Gcircuit. What happens when we try to concatenate them to form a circuit? Recall the last sentence in the statement of Lemma 2: It says that the prices continue to behave like the gate that is simulated, as long as there are not too many additional students that try to take the output course. (If there are more students, they may raise the price of the course beyond what we expect.) In particular, the number of additional students that may want the output course is smaller than the number of students that want the input course.
If we concatenated the gadgets without change, we would need to have larger class sizes as we increase the depth of the simulated circuit. This increase in class size is exponential in the depth of the circuit. Things get even worse- since we reduce from generalized circuits, our gates form cycles. If the class size must increase at every gate it would have to be infinite!
To overcome this problem we construct a COPY gadget that preserves the price from the input course, but is robust to twice as many additional students:
Let and suppose that the economy contains the following courses:
for , with capacities (“interior courses”);
with capacity , s.t. (“output course”);
students interested in schedules (in this order);
students () interested in schedules (in this order);
and suppose further that at most other students are interested in course .
Then in any -CEEI
In particular, notice that the price of is guaranteed to approximate the price of , even in the presence of additional students - twice as many students as we added to .
We start by proving that all the ’s simulate NOT gadgets simultaneously, i.e. for every and every -CEEI, .
If , assume wlog that it is the first such , i.e. for every .
None of the students can afford buying both and . Furthermore, for every , none of the students will prefer over . Therefore at most students will take this course: .
If, on the other hand, , then all students will buy course or some previous course (for ); additionally for every , each of the corresponding students will buy some course for . Therefore the total overbooking of classes will be at least - a contradiction to -CEEI.
Now that we established that , we shall prove the main claim, i.e. that .
If , then none of the students, for any , can afford buying both and . Therefore, even in the presence of additional students who want to take , the class will be undersubscribed by
If , then all students, for each , can afford to buy their top schedule - both . Therefore will be oversubscribed by at least - a contradiction to -CEEI.
Finally, given an instance of -Gcircuit, we can use the gadgets we constructed in Lemmata 1-3 to construct an instance of -CEEI that simulates the generalized circuit.
\NP\NP\NP hardness
Budish (2011) shows that his existence theorem is tight, that is, there exist economies in which it is impossible to achieve less than market clearing error. One may hope that on instances encountered in practice, a better approximation may be possible, and finding it may not be prohibitively hard. We next show that even in economies that admit an exact CEEI, it is -hard to find even a constant factor improvement over the bound.
It is -hard to distinguish between an economy that has an exact CEEI, and an economy that does not have a -CEEI for any .
In particular, since our reduction uses a constant , it means that it is -complete to find an -CEEI — an approximation factor smaller only by a multiplicative constant than the approximation guaranteed by the existence theorem of Budish (2011).
Theorem 2 is in some sense stronger than Theorem 3 in that it applies to a larger market clearing error. In turn, Theorem 3 is stronger in two ways: (1) it gives -hardness, as opposed to -hardness; and (2) it applies to any , as opposed to a polynomially small .
1 Proof
We reduce from 3SAT-5, i.e., a SAT instance in which every clause contains exactly 3 variables, and each variable appears in exactly 5 clauses. Feige (1998) proved that it is -hard to distinguish between a satisfiable 3SAT-5 instance, and a 3SAT-5 instance where at most can be satisfied, for some In fact, an equivalent result for 3SAT- for any constant would suffice for our techniques. Hardness of approximation with perfect completeness for 3SAT- was proven by Papadimitriou and Yannakakis (1991); Arora and Safra (1998); Arora et al. (1998)..
Given a 3SAT-5 formula, we construct a gadget for each variable and each clause. The gadgets are constructed so that for any assignment that completely satisfies the formula there exists an exact CEEI in the economy.
Furthermore, given an approximate CEEI for the economy which exactly clears the courses in a subset of the gadgets, one can recover an assignment for the 3SAT-5 formula that satisfies all the clauses corresponding to the same subset. Informally, this means that for every clause that we are unable to satisfy in the 3SAT-5 formula, there must be a deviation from exact market clearing in the gadget corresponding to either that clause, or one of its variables.
Because we use a sparse 3SAT, each deviation from market clearing can affect at most 5 clauses. Each variable gadget uses courses, and each clause gadget uses only more. For an instance with clauses and variables, we have exactly courses. Finally, if of the clauses are unsatisfied, then the market clearing error must be at least . Since and is a constant, we get -hardness with .
For each variable , we have a variable gadget that forces a consistent assignment to . The gadget contains pairs of “output courses” ; each of these pairs is also part of the “input courses” of a clause gadget. Additionally, the gadget has three inner courses: . The gadget also has two students: has preference list: , , ; and has preference list: , , .
Soundness: It is easy to see that, in any CEEI, cannot be assigned more than one value: otherwise neither student will be assigned ; yet if has price zero, then both students would prefer the respective bundles that contain it.
If, on the other hand, neither nor is assigned, we must again have a nonzero market clearing error for the courses in this gadget:
If all the inner courses have price zero, then will be over demanded;
If and have price zero, then under any assignment either one of the three will be over demanded, or will be under demanded;
If , , and, wlog, , then either will be over demanded, or will be under demanded;
Finally, since , if has nonzero price, then either it is under demanded, or one of the three inner courses must be over demanded.
Completeness: For an assignment with , let the prices of be , respectively. Under these prices, student will prefer bundle Recall that in the completeness we show the existence of exact CEEI, so all the budgets are exactly ., while student will choose bundle .
Clause gadget
For each clause containing variables , consider seven courses: six input courses (where each pair is the output courses of a variable gadget), and a single “budget diluting” course . We also have a single gadget student, who is interested in any of the seven bundles corresponding to a satisfying assignment.
For example if the clause is , the gadget student would be interested in the bundles: , , , , , , . In particular, the student is not interested in the bundle , which corresponds to assigning
Soundness: Observe that the variable gadgets students are assigned courses , , and , then in any exact CEEI, the clause gadget student must be assigned the bundle .
Completeness: Suppose that the variable gadgets students are assigned courses , , and , each with price at least , while courses , , and are all unassigned. Then if we set the price of to be , the only affordable bundle for the clause gadget student is indeed .
Discussion
In this work we classified the computational complexity of finding an approximate CEEI as a function of the precision parameter of the approximation, the market clearing error. We showed that finding -CEEI is -complete when is large enough to guarantee existence, while finding a better approximation to CEEI is -complete.
One potential way around these intractability results could be to restrict the input language of preferences. This has been a fruitful line of research in combinatorial auctions (Nisan, 2006; Sandholm and Boutilier, 2006). However, in contrast to that space, we do not anticipate limiting language complexity in the course allocation problem to be fruitful either in theory or in practice. Recall that the student preferences used in the -hardness proof are already very simple. Furthermore, in practice there are significant inherent complexities in students’ preferences: for example, courses meeting at the same time and courses with multiple sections.
Despite the negative results shown in this paper, a heuristic search algorithm exists that finds practical solutions to A-CEEI. Interestingly, in both laboratory experiments as well as real course allocation problems, this heuristic often finds solutions that are an order of magnitude better than the theoretical guarantee on the clearing error (Othman et al., 2010) — a performance which we have shown NP-hard to guarantee. Once again we are faced with a familiar conundrum: What are the characteristics of the instances appearing in practice that enable this favorable performance? And how can one develop a rigorous fast algorithm for them?
References
Appendix A A-CEEI ∈\PPADabsent\PPAD\in\PPAD
We show that computing a -CEEI is in , for .
We assume that the student preferences are given in the form of an ordered list of all the bundles in (i.e., all the bundles that student prefers over the empty bundle). In particular, we assume that the total number of permissible bundles is polynomial.
In fact, we prove that the following, slightly more general problem, is in : Given any and initial approximate-budgets vector , find a -CEEI with budgets such that for every .
Our proof will follow the steps of the existence proof by Budish . We will use the power of to solve the Kakutani problem, and derandomize the other nonconstructive ingredients.
Our algorithm receives as input an economy , parameters , and an initial approximate-budgets vector . We denote .
Given the total demand of all the students, we can define the excess demand to be:
A.2 Deterministically finding a “general position” perturbation (step 1)
In this section, we show how to deterministically choose these taxes.
There exists a polynomial-time algorithm that finds a vector of taxes such that:
(taxes are small)
if (taxes prefer more-preferred bundles)
(inequality bound is preserved)
for (no two perturbed prices are equal)
Assume wlog that is rounded to the nearest : otherwise we can include this rounding in the taxes.
We proceed by induction on the pairs of students and bundles: at each step let be much smaller than all the taxes introduced so farAssume wlog that for each we consider the ’s in order reversed with respect to , so that property 2 is guaranteed..
More precisely, if is the pair to be considered, then we set
where the sign is chosen such that condition 3 in the statement of the lemma is preserved.
Assume further, wlog, that this is the first such -tuple, with respect to the order of the induction. In particular, this means that are linearly independent. Now consider the system
Notice that it has rank . We can now take linearly independent rows such that the following system has the same unique solution :
Since is a square matrix of full rank it is invertible, so we have that
where is the -cofactor of . Finally, since is a Boolean matrix, its determinant and all of its cofactors are integers of magnitude less than . The entries of are therefore rational fractions with numerators and denominators of magnitude less than .
However, if is the pair added by the induction, then the following is an integer:
but is not an integer, a contradiction to Equation (1). ∎
A.3 Finding a fixed point (steps 2-4)
This subsection describes the price adjustment correspondence of Budish , and is brought here mostly for completeness.
We first define the price adjustment function:
Instead, we define an upper hemicontinuous, set-valued “convexification” of :
The correspondence is upper hemicontinuous, non-empty, and convex; therefore, by Kakutani’s fixed point theorem it has a fixed point.
Finally, by Papadimitriou finding this fixed point of is in PPAD.
We round all price vectors to a -grid (this precision suffices to implement the algorithm in lemma 4).
From the proof of Papadimitriou it follows that it suffices to compute just a single point in for every (this is important because the number points in on the grid may be exponential). At any point on the grid, the price of any bundle is an integer multiple of . In particular, any budget-constraint hyperplane which does not contain , must be at distance at least . Therefore, we can take any point at distance from , and which does not lie on any of the hyperplanes that contain . Because no budget-constraint hyperplanes lie between and , it follows that .
A.4 From a fixed point to approximate CEEI (steps 5-9)
Given a fixed point of , we can find in polynomial time a vector of prices such that
We use the method of conditional expectation to derandomize Step 8 of Budish .
Recall that by remark 3, there exists a neighborhood around which does not intersect any budget-constraint hyperplanes (beyond those that contain ). Let be the indices of students whose budget-constraint hyperplanes intersect at . For student , let be the number of corresponding hyperplanes intersecting at , and assume wlog that the superindices of are ordered according to .
Let be agent ’s demand when prices are slightly perturbed from such that all ’s are affordable. Such a perturbation exists and is easily computable because the hyperplanes are linearly independentThis appears to be a slight inaccuracy in the proof in Budish . Similarly, let denote agent ’s demand when are affordable, but is not, and so on. Finally, let be the market clearing error when considering the rest of the students. (The demands of is constant in the small neighborhood which does not intersect any additional hyperplanes.)
By Lemma 3 of Budish , there exist distributions over :
such that the clearing error of the expected demand is :
We first find such in polynomial time using linear programming.
The existence proof then considers, for each , a random vector : the vectors are independent and in any realization satisfy , while the variables each have support , and expectation .
By Lemma 4 of Budish , the expected clearing error is bounded by:
We now proceed by induction on the students. For each , if the conditional expectation on satisfies
then at least one must also satisfy the above bound. We can find such in polynomial time by computing the conditional expectation for every feasible :
The chosen define an allocation with bounded clearing error. We now follow step 9 of Budish in order to define budgets such that is the preferred consumption by all the students at price .
We define, for every , . For we have . By requirement 2 of lemma 4, every bundle that student prefers over had a greater tax and was still unaffordable at ; it now costs more than .
For notice that every bundle that prefers over and was exactly affordable at with taxes and budget , must cost strictly more than ’s new budget . Therefore, is a -CEEI
Appendix B Additional gadgets for Theorem 2
Lemma 2. Let and suppose that the economy has courses and . Then for any of the functions listed below, we can add: a course , and at most students interested in each of and , such that in any -CEEI
VALUE:
SUM:
DIFF:
LESS:
AND:
OR:
In particular, in every -CEEI even if up to additional students (beyond the ones specified in the proofs below) are interested in course .
Notice, that like in similar gadget reductions from -complete problems, LESS, AND, and OR are brittle comparators (see discussion in Daskalakis et al. for more details).
Let have capacity , let , and consider three auxiliary courses , , and of capacities and . Using lemma 1 add students that will guarantee . Additionally, consider students with preference list: (in this order), then:
If the total price of any pair is less than , then all students will be able to afford some subset in their preference list, leaving a total overbooking of at least , which violates the -CEEI conditions
If the total price of any of the pairs above (wlog, ) is greater than , then none of the students will be able to afford the subset . Therefore the number of students taking will be at least the sum of students taking or . Therefore, even after taking into account additional students, we have that .
Similarly to the HALF gadget, consider two auxiliary courses and , and let students have preferences: . Then, following the argument for the HALF gadget, it is easy to see that in any -CEEI, with .
Let be a course with price , , and consider students willing to take . Then it is easy to see that
Concatenating NOT and DIFF gadgets, we have:
Let be a course with price , ; let and . Consider students wishing to take , in this order:
If , then , and therefore none of the students will be able to afford the first pair; they will all try to sign up to which will be overbooked unless
If , then all students will sign up for the first pair, forcing in any -CEEI.
Let be a course with price and , as guaranteed by gadget VALUE; let and . Consider students wishing to take , in this order.
If , then the students can afford neither pair. They will all try to sign up for , forcing , in any -CEEI.
If , then the students can afford at least one of the pairs and will register for those courses. Thus .
Similar to the AND gadget; students will want , in this order.