Fair Societies: Algorithms for House Allocations

Hadi Hosseini, Sanjukta Roy, Aditi Sethia

TL;DR

This paper tackles the computational "nightmare" of minimizing envy in house allocation problems—a task known to be NP-hard. The authors provide two clever workarounds: a "refinement" algorithm that improves existing allocations with a small number of swaps, and specialized polynomial-time algorithms for structured preferences like "single-peaked" or "single-dipped" domains.

What Problem Does This Paper Address?

In "house allocation" problems, we need to distribute $m$ indivisible resources (like organs, dormitory rooms, or subsidized housing) among $n$ agents. Each person gets exactly one item. Ideally, we want an envy-free allocation, where no one prefers someone else's house over their own.

The catch? Envy-free allocations often don't exist. When they don't, the logical next step is to minimize the number of envious agents. However, finding this "most fair" allocation is NP-complete and notoriously difficult to even approximate. This paper seeks to find tractable paths forward—either by limiting how much we change an existing allocation or by assuming agents' preferences follow specific, real-world patterns.

Methods

The authors propose two primary algorithmic approaches:

  1. Fixed-Parameter Tractable (FPT) Refinement: Instead of finding a fair allocation from scratch, the authors start with an initial allocation (perhaps one that maximizes total welfare) and "refine" it. They design an algorithm that reduces the number of envious agents by at least $k$ using at most $q$ reallocations. The complexity is tied to $q$ and the maximum number of houses an agent likes ($d$), making it efficient if these parameters remain small.
  2. Technique: They use randomized coloring to identify "minimal improvement sets"—groups of swaps that collectively reduce envy—and then solve a version of the knapsack problem to pick the best set of swaps within the allowed budget.
  3. Restricted Domain Algorithms: They look at specific preference structures:
  4. Single-Peaked: Imagine houses are along a street. Each agent has a favorite spot, and their happiness drops the further they get from it.
  5. Single-Dipped: The opposite—there is one "worst" house (e.g., near a noisy factory), and agents prefer houses further away from it.
  6. The authors prove that in these domains, the problem becomes much easier, allowing for polynomial-time solutions ($O(|H|^2)$ for single-peaked and $O(m)$ for single-dipped).

Datasets

The authors used synthetic datasets for their empirical evaluation:

  • Scale: 100 instances per test case, typically with $n=6$ agents and $m=11$ houses.
  • Valuations: Cardinal utilities (values 0–10) were assigned uniformly at random.
  • Structure: For the restricted domain tests, they generated 1,000 instances where preferences were forced to conform to single-peaked or single-dipped structures.

Key Insights and Ideas

  • Envy is Non-Additive: A crucial observation is that swapping houses for one group of people might "fix" their envy but inadvertently make someone else envious. This means you can't just fix envy one person at a time; you have to look at "minimal improvement sets" of swaps that work together.
  • The "Shared Peak" Bottleneck: In single-peaked preferences, the main source of envy is a "shared peak"—a house that multiple people rank as #1. The authors prove that even in the best-case scenario, at most two people can be envy-free if they are competing for the same peak area.
  • Diminishing Returns of Swapping: The experiments show that you don't need to overhaul the entire system to see results. A small number of targeted reallocations (around $q=3$ for 6 agents) captures most of the possible envy reduction.
  • Measure Obliviousness: Their refinement framework is "measure-oblivious," meaning it works whether you are trying to minimize the number of envious people, the total amount of envy, or the maximum envy felt by any one person.

Key Results

  • Refinement Efficiency: The FPT algorithm runs in $O^*(3^{3q(d+1)})$ time. While exponential in the parameters, it is a significant breakthrough for a problem that is otherwise intractable in the general case.
  • Domain Breakthroughs: They successfully reduced the complexity of minimizing envy in single-peaked domains to $O(|H|^2)$ and single-dipped domains to linear time $O(m)$.
  • Fairness-Welfare Trade-off: In simulations, the authors found that reducing envy usually costs some "social welfare" (total happiness). However, when preferences are structured (single-peaked), this welfare loss is almost negligible, suggesting that fairness and efficiency aren't always at odds in the real world.

Limitations and Future Work

  • Parameter Sensitivity: The refinement algorithm's speed depends heavily on $q$ (number of swaps) and $d$ (preference list length) being small. If agents have long, complex preference lists, the algorithm slows down significantly.
  • Local Envy: The current model assumes everyone knows what everyone else has. The authors suggest that future work should look at "local envy," where agents only care about what their immediate neighbors or friends were allocated.
  • Ties in Preferences: While they touched on ties in the single-dipped domain, a more robust handling of indifference (where agents value two houses exactly the same) in the general refinement framework remains an open challenge.

Summary updated

BibTeX
@inproceedings{hosseini2026fair,
  author = {Hadi Hosseini and Sanjukta Roy and Aditi Sethia},
  title = {{Fair Societies: Algorithms for House Allocations}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2026},
  doi = {10.1609/aaai.v40i20.38753},
}
Figure