No agent left behind: dynamic fair division of multiple resources

Ian A. Kash, Ariel D. Procaccia, Nisarg Shah

TL;DR

Real-world computing clusters need to allocate multiple resources (like CPU and RAM) to users arriving over time, but traditional fair division theory assumes everyone is present at the start. This paper introduces a dynamic model for fair resource allocation, proving that perfect fairness and optimal efficiency are mathematically incompatible in this setting. To solve this, the authors design two novel mechanisms—Dynamic DRF and Cautious LP—that relax these constraints in different ways to provide strong, provable guarantees for dynamic environments.

What Problem Does This Paper Address?

In modern data centers and cloud clusters, systems must allocate multiple types of computational resources (CPU, memory, network bandwidth) among heterogeneous users. A popular solution is Dominant Resource Fairness (DRF), which provides excellent fairness and efficiency guarantees. However, DRF and similar fair division theories rely on a static model: they assume all agents and their resource demands are known upfront.

In reality, systems are dynamic. Users submit jobs over time, and the system must allocate resources on the fly. Crucially, these allocations are often irrevocable—once a user starts consuming CPU or RAM for a long-running job, the system can't easily take it back. This creates a massive challenge: how do you maintain fairness (so no user envies another), efficiency (so resources don't sit idle), and truthfulness (so users can't game the system) when you don't know who will arrive tomorrow? If you give too much to early arrivals, latecomers are starved. If you hold too much back, the cluster is underutilized.

Methods

The authors model agents as having Leontief preferences, meaning they need resources in fixed proportions (e.g., exactly 2 CPUs for every 1 GB of RAM). They adapt four classic static properties to the dynamic setting:

  1. Sharing Incentives (SI): Every agent gets an allocation at least as good as an equal split of the cluster.
  2. Strategyproofness (SP): Agents cannot benefit by lying about their resource demands.
  3. Envy Freeness (EF): No agent prefers the allocation of another agent.
  4. Dynamic Pareto Optimality (DPO): At any step, the allocation cannot be improved for one agent without hurting another, given the resources currently available to distribute.

After proving that EF and DPO are mathematically impossible to achieve together, the authors propose two novel algorithms using linear programming (LP):

  • Dynamic DRF: Relaxes the fairness constraint. It introduces Dynamic Envy Freeness (DEF), which dictates that you can only envy an agent who arrived before you if they haven't received any new resources since you arrived. It uses a "water-filling" algorithm to aggressively allocate resources while maintaining DEF, DPO, SP, and SI.
  • Cautious LP: Relaxes the efficiency constraint. It introduces Cautious DPO (CDPO), meaning it only tries to be as efficient as allocations that can absolutely guarantee perfect Envy-Freeness for all future arrivals. It essentially hoards resources based on worst-case future scenarios to maintain strict EF, alongside CDPO, SP, and SI.

Datasets

To test their mechanisms empirically, the authors used Google cluster data—specifically, a trace of real workloads from a 7-hour period in a Google compute cell in 2011. They sampled random demand vectors (memory and cores) from this trace to simulate environments of 20 to 100 agents.

Key Insights and Ideas

  • The Fairness-Efficiency Tradeoff is Absolute: The paper's impossibility theorem (Theorem 3) is a major "aha" moment. In a dynamic system with irrevocable allocations, you literally cannot guarantee that no user envies another while simultaneously ensuring resources aren't being wasted. You must compromise on one.
  • Dynamic Envy is Nuanced: The concept of Dynamic Envy Freeness (DEF) perfectly captures the "first-come, first-served" reality of computing. It makes intuitive sense: it's acceptable to envy an early bird who got the worm before you arrived, but it is unfair if the system keeps feeding them new worms while you starve.
  • Cautious Hoarding Works: By assuming the worst-case scenario for future arrivals (e.g., assuming all future users will want exactly what the most resource-hungry current user wants), Cautious LP can mathematically guarantee perfect fairness without completely tanking system efficiency.

Key Results

  • Theoretical Guarantees: Both Dynamic DRF and Cautious LP run in polynomial time. Both successfully prevent users from gaming the system (Strategyproofness) and ensure everyone gets their fair baseline share (Sharing Incentives).
  • Utilitarian Welfare: On the Google cluster data, both algorithms achieve nearly identical total resource utilization (the "maxsum" objective).
  • Egalitarian Welfare: When looking at the worst-off users (the "maxmin" objective), Dynamic DRF performs better in the early stages because it allocates aggressively. However, Cautious LP actually catches up and achieves a better maxmin score by the end of the simulation. Because it cautiously held resources back early on, it has more flexibility to optimize for latecomers.

Limitations and Future Work

  • No Departures: The model assumes agents arrive and stay forever. Handling users who depart and free up resources—especially if they re-arrive later with different demands—is a complex open problem that breaks many of these mathematical guarantees.
  • Strictly Positive Demands: The math assumes every user needs at least a tiny fraction of every resource. If users have strictly zero demand for a specific resource, the strategyproofness guarantees of these specific mechanisms break down.
  • Divisible Tasks: The paper assumes tasks are infinitely divisible (fractional allocations). Real-world tasks often require discrete, integer amounts of resources (you can't allocate 0.3 of a CPU core easily in all frameworks), which complicates fair division.

Summary updated

BibTeX
@inproceedings{kash2013no,
  author = {Ian A. Kash and Ariel D. Procaccia and Nisarg Shah},
  title = {{No agent left behind: dynamic fair division of multiple resources}},
  booktitle = {AAMAS},
  year = {2013},
}
Figure