On Colorful Bin Packing Games

Vittorio Bilò, Francesco Cellinese, Giovanna Melideo, Gianpiero MonacoarXiv 2017

TL;DR

This paper introduces "colorful" bin packing games, where selfish players must pack colored items into bins while ensuring no two items of the same color are adjacent. The authors prove that while these games can cycle infinitely under certain conditions, stable Nash equilibria always exist and can be computed efficiently, though their social efficiency drops sharply as the number of colors increases.

What Problem Does This Paper Address?

The classic bin packing problem asks how to fit items of various sizes into the minimum number of bins. In a game-theoretic context, these items are controlled by selfish players who want to minimize their share of a bin's cost.

However, standard models ignore a common real-world constraint: separation. Imagine shipping chemicals where certain types cannot touch, or scheduling tasks where similar jobs must be buffered by different ones. This paper tackles Colorful Bin Packing Games, adding a constraint that no two items of the same color can be packed next to each other in the sequential order of a bin. The authors explore whether stable packings (Nash equilibria) exist, how to find them, and how much social efficiency is lost due to player selfishness (measured by the Price of Anarchy and Price of Stability).

Methods

The authors analyze the game under two standard cost-sharing rules:

  1. Egalitarian: The bin's unit cost is split equally among all items it contains.
  2. Proportional: The cost is split based on the fraction of the bin's capacity an item occupies.

To prove the existence of Nash equilibria, they utilize potential functions—mathematical tools that track the "progress" of the game. They show that if players only move to bins where they won't be "misplaced" (the valid improving deviation rule), the game eventually reaches a stable state.

They also propose two main algorithms:

  • Algorithm 1: A general approach that iteratively finds the "best" possible packing for a single bin (using sub-routines like Max Cardinality Colorful Packing) until all items are packed.
  • Algorithm 2: A specialized, faster algorithm for games where all items have the same size (uniform sizes).

Datasets

Not discussed in the paper. As a theoretical work in algorithmic game theory, the results are derived through mathematical proofs rather than empirical testing on specific datasets.

Key Insights and Ideas

  • The Convergence Trap: Unlike standard bin packing games, colorful ones do not naturally converge to a Nash equilibrium if players are allowed to make "non-valid" moves (moves that might temporarily make them misplaced). Figure 1 illustrates a cycle where players could swap bins forever without ever reaching stability.

![Fig.

  1. A cyclic sequence of (non-valid) improving deviations.](/figures/art_945a6faa29904de5a960cbd9e0157d44)
  2. The "Three Color" Threshold: There is a dramatic shift in efficiency based on the number of colors ($m$). For "Black and White" games ($m=2$), the system remains somewhat efficient. However, as soon as $m \geq 3$, the Price of Anarchy and Price of Stability become unbounded, meaning selfish behavior can lead to a massive, theoretically infinite waste of bins compared to an optimal central plan.
  3. Parity Matters: In the uniform size case, the maximum number of items a bin can hold ($\kappa$) dictates efficiency. If $\kappa$ is odd, a socially optimal Nash equilibrium is guaranteed to exist. If $\kappa$ is even, the best stable outcome might still use twice as many bins as the optimum.

Key Results

  • Existence: Pure Nash equilibria are guaranteed to exist for both egalitarian and proportional cost functions.
  • Complexity: Finding a Nash equilibrium is polynomial-time for the egalitarian case. For proportional costs, it is pseudo-polynomial when the number of colors is constant.
  • Efficiency (General Sizes):
    • For $m=2$ colors: Price of Anarchy (PoA) $\leq 3$.
  • For $m \geq 3$ colors: PoA and Price of Stability (PoS) are both unbounded.
  • Efficiency (Uniform Sizes):
    • For even $\kappa$: PoS $\geq 2$ and PoA $\leq 2$ (for $m=2$).
  • For odd $\kappa$: PoS $= 1$ (socially optimal equilibria exist).

![Fig.

  1. An optimal configuration for the instance considered in Theorem 3.5.](/figures/art_114294d5ffab45b3b2a8aa53ccf493fd)

Limitations and Future Work

The authors note that their efficiency bounds for $m \geq 3$ are quite pessimistic (unbounded), which suggests that in multi-colored scenarios, simple cost-sharing might not be enough to incentivize efficient bin usage.

Future research could explore:

  • Strong Nash Equilibria: Outcomes where groups of players cannot collectively deviate to improve their costs.
  • Alternative Cost Functions: Designing new cost-sharing rules that might lower the Price of Anarchy in multi-colored settings.
  • Online Versions: Analyzing how these games behave when items arrive one by one rather than being known upfront.

Summary updated

Abstract

We consider colorful bin packing games in which selfish players control a set of items which are to be packed into a minimum number of unit capacity bins. Each item has one of $m\geq 2$ colors and cannot be packed next to an item of the same color. All bins have the same unitary cost which is shared among the items it contains, so that players are interested in selecting a bin of minimum shared cost. We adopt two standard cost sharing functions: the egalitarian cost function which equally shares the cost of a bin among the items it contains, and the proportional cost function which shares the cost of a bin among the items it contains proportionally to their sizes. Although, under both cost functions, colorful bin packing games do not converge in general to a (pure) Nash equilibrium, we show that Nash equilibria are guaranteed to exist and we design an algorithm for computing a Nash equilibrium whose running time is polynomial under the egalitarian cost function and pseudo-polynomial for a constant number of colors under the proportional one. We also provide a complete characterization of the efficiency of Nash equilibria under both cost functions for general games, by showing that the prices of anarchy and stability are unbounded when $m\geq 3$ while they are equal to 3 for black and white games, where $m=2$. We finally focus on games with uniform sizes (i.e., all items have the same size) for which the two cost functions coincide. We show again a tight characterization of the efficiency of Nash equilibria and design an algorithm which returns Nash equilibria with best achievable performance.
BibTeX
@misc{bilo2017colorful,
  author = {Vittorio Bilò and Francesco Cellinese and Giovanna Melideo and Gianpiero Monaco},
  title = {{On Colorful Bin Packing Games}},
  year = {2017},
  eprint = {1711.03570},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1711.03570},
}
Figure