The Frontier of Intractability for EFX with Two Agents

Paul W. Goldberg, Kasper Høgh, Alexandros Hollender

TL;DR

This paper maps the computational boundary for finding "Envy-Free up to any good" (EFX) allocations between two agents. The authors provide a simple, polynomial-time greedy algorithm for a broad class of preferences called "weakly well-layered" valuations, while proving that the problem becomes computationally intractable (PLS-complete) for the more general class of submodular valuations.

What Problem Does This Paper Address?

Fair division is the mathematical study of how to distribute resources among agents with different preferences. While "cake cutting" (dividing divisible resources like land or time) has elegant solutions like the classic "cut-and-choose" protocol, dividing indivisible goods (like a house, a car, or specific heirlooms) is much harder. In the indivisible setting, perfect envy-freeness—where no one wants someone else's bundle—often cannot be guaranteed.

To solve this, researchers use relaxations like EFX (Envy-Free up to any good). An allocation is EFX if agent $i$ does not envy agent $j$ after removing any single item from $j$’s bundle. While we know EFX allocations always exist for two agents, we didn't know how hard they were to calculate for different types of preferences (valuation functions). This paper identifies exactly where the line lies between "easy to compute" and "computationally hard."

Methods

The paper approaches the problem from two sides:

  1. The Positive Side (Algorithms): The authors introduce a new class of valuation functions called weakly well-layered valuations. A valuation is weakly well-layered if a simple greedy approach (picking the best item one by one) always results in an optimal subset for any given size. They prove that for this class, a straightforward Greedy EFX algorithm works: in each round, the agent with the lower current value picks their favorite remaining item.
  2. The Negative Side (Complexity): For the broader class of submodular valuations (which exhibit "diminishing returns"), the authors prove the problem is PLS-complete. PLS (Polynomial Local Search) is a complexity class for problems where a solution is guaranteed to exist and local improvements are easy to find, but finding a local optimum can take exponential time.

The proof for PLS-completeness is a significant technical contribution. It involves a two-step reduction: first showing that finding a local optimum on a specific type of graph (a Kneser graph) is PLS-hard, and then reducing that problem to finding an EFX allocation.

Datasets

As a theoretical study in algorithmic game theory, this paper does not use empirical datasets. The results are proved mathematically for general classes of valuation functions.

Key Insights and Ideas

  • Defining the "Sweet Spot": The authors identified "weakly well-layered" valuations as the boundary for greedy efficiency. As shown in Figure 1, this class is quite broad, encompassing additive, gross substitutes, OXS, budget-additive, and cancelable valuations.
Figure 1: Inclusions of valuation classes
  • The Power of Greedy: The fact that a simple greedy algorithm provides EFX for such a wide range of valuations is surprising, as previous existence proofs relied on much more complex "leximin++" optimizations that are NP-hard to compute.
  • The Intractability Frontier: The paper shows that submodular valuations—a standard workhorse in economics—are just complex enough to make finding a fair division computationally difficult. This draws a sharp line in the "complement-free hierarchy" of valuations.
  • Identical Agents vs. Different Agents: A key insight is that solving the problem for two agents with identical valuations is the core challenge. Once you can "cut the goods in half" in an EFX sense for one valuation, you can use the classic cut-and-choose protocol to handle two agents with different valuations.

Key Results

  • Polynomial Time: The Greedy EFX algorithm finds an EFX allocation in polynomial time for any number of agents with identical weakly well-layered valuations.
  • PLS-Completeness: Finding an EFX allocation for two identical agents with submodular valuations is PLS-complete. This implies that while a solution is guaranteed to exist, we likely cannot find one efficiently in the general case.
  • Hierarchy Resolution: These results resolve the computational complexity for almost all well-known valuation classes in the standard hierarchy: Additive, OXS, and Gross Substitutes are "Easy"; Submodular is "Hard."

Limitations and Future Work

The primary limitation is the focus on two agents (or multiple agents with identical valuations). The existence of EFX allocations for four or more agents with different additive valuations remains one of the biggest open problems in fair division.

Additionally, while the paper proves PLS-completeness for submodular valuations, it leaves open whether there might be other relaxations or specific sub-cases of submodular valuations that remain tractable. The authors also suggest that their proof of PLS-hardness for local optimization on Kneser graphs might be of independent interest to the broader theoretical computer science community.

Summary updated

Abstract

We consider the problem of sharing a set of indivisible goods among agents in a fair manner, namely such that the allocation is envy-free up to any good (EFX). We focus on the problem of computing an EFX allocation in the two-agent case and characterize the computational complexity of the problem for most well-known valuation classes. We present a simple greedy algorithm that solves the problem when the agent valuations are weakly well-layered, a class which contains gross substitutes and budget-additive valuations. For the next largest valuation class we prove a negative result: the problem is PLS-complete for submodular valuations. All of our results also hold for the setting where there are many agents with identical valuations.
BibTeX
@article{goldberg2025frontier,
  author = {Paul W. Goldberg and Kasper Høgh and Alexandros Hollender},
  title = {{The Frontier of Intractability for EFX with Two Agents}},
  journal = {Theoretical Computer Science},
  year = {2025},
  doi = {10.1016/j.tcs.2025.115367},
}
Figure