Introduction
The fair division of indivisible goods is a fundamental problem in computational social choice, with applications ranging from course allocation to resource distribution in cloud computing. In these scenarios, the "gold standard" for fairness is Envy-Freeness (EF), where no agent prefers another's bundle over their own. However, when goods cannot be divided, a perfectly envy-free allocation often does not exist. To address this, researchers frequently employ the concept of Envy-Free up to one good (EF1). An allocation is EF1 if any envy between agents can be eliminated by removing a single item from the envied agent's bundle.
While finding EF1 allocations is straightforward in unconstrained settings, real-world applications often impose structural restrictions on which combinations of goods can be assigned to an agent. These restrictions are frequently modeled as matroid constraints. While previous research established that EF1 allocations always exist under matroid constraints for agents with identical additive valuations, the question of how to compute them efficiently remained an open problem. This paper introduces SWAP, a polynomial-time algorithm that bridges this gap between theoretical existence and practical computation.
The Challenge of Matroid Constraints
In a standard fair division problem, a round-robin draft—where agents take turns picking their favorite available item—guarantees an EF1 allocation. However, when matroid constraints are introduced, round-robin fails. A matroid constraint might dictate that a student cannot take more than two courses from the same department, or a server cluster cannot exceed a specific power draw. In these cases, an agent's next "best" pick might violate their specific matroid constraint, making the resulting allocation invalid.
The mathematical structure of a matroid provides a set of "independent sets" (valid bundles). The challenge lies in navigating these sets to satisfy fairness without violating the underlying combinatorial rules. Previous existential proofs did not provide a roadmap for how to navigate these constraints in a computationally efficient manner.
The SWAP Algorithm
The authors propose the SWAP algorithm to find EF1 allocations in polynomial time. Unlike constructive methods that build an allocation item-by-item, SWAP is an iterative improvement algorithm. It follows a four-step process:
- Initialization: The algorithm begins with any arbitrary allocation that satisfies the matroid constraints for all agents. At this stage, fairness is ignored in favor of feasibility.
- Identifying Inequity: The algorithm identifies the "poorest" agent (the one with the lowest total valuation) and checks for "rich" agents whose bundles cause the poorest agent to experience envy beyond the EF1 threshold.
- Strategic Reallocation: To resolve the envy, the algorithm targets the highest-valued bundle among the violators. It then attempts to rebalance the allocation:
- Transfer: If the poor agent's bundle has fewer items than the rich agent's bundle, an item is moved from the rich agent to the poor agent. The "independent set exchange property" of matroids guarantees that such a valid item always exists to move without breaking the rules.
- Swap: If the poor agent's bundle is of equal or greater size, moving an item might violate the poor agent's matroid constraint. In this case, the algorithm performs a carefully calculated 1-for-1 swap of goods between the two agents, improving the poor agent's position while maintaining matroid feasibility.
- Iteration: This process repeats until the allocation satisfies the EF1 condition for all agents.
Convergence and Complexity
The primary theoretical hurdle for any swapping-based algorithm is ensuring it does not enter an infinite loop. The authors overcome this by proving a strict convergence property. They demonstrate that each swap or transfer significantly reduces the valuation of the "richest" bundle by a specific multiplicative factor ($1 - 1/m^2$, where $m$ is the total number of goods).
Because the value of the most envied bundle decreases at a guaranteed rate, the algorithm is mathematically bound to reach an EF1 state within a polynomial number of steps. This result, formalized as Theorem 1, provides the first efficient computational anchor to a known existential result, proving that EF1 is a highly robust and practical fairness concept.
Discussion and Limitations
The SWAP algorithm represents a significant step forward in making fair division theory applicable to constrained real-world environments. By leveraging the exchange properties of matroids, the authors demonstrate that EF1 is computationally tractable even under complex constraints.
However, the current work is limited to scenarios where agents have identical, additive valuations. In these cases, every agent agrees on the value of every item, and the value of a bundle is simply the sum of its parts. Future research is needed to extend these algorithmic guarantees to settings with subjective preferences (non-identical valuations) or more complex valuation functions that account for synergies or redundancies between items, which remains a significantly harder challenge.
Summary updated