Fair Knapsack

Till Fluschnik, Piotr Skowron, Mervin Triphaus, Kai Wilker

Abstract

This paper introduces "Fair Knapsack," a multiagent extension of the classic resource allocation problem where a group of voters must collectively select a set of items within a budget. While maximizing aggregate utility is computationally straightforward, achieving fairness via Nash Welfare maximization is shown to be significantly more difficult. The authors prove that the Fair Knapsack problem remains NP-hard even under highly structured voter preferences, such as single-peaked domains.

Introduction

The classic knapsack problem involves selecting items to maximize value for a single agent. In multi-stakeholder environments—such as participatory budgeting for a city—preferences often conflict. This paper explores three aggregation methods to address these conflicts:

  1. Individually Best (IB): Maximizes the total utility across all voters.
  2. Diverse Knapsack: Inspired by the Chamberlin-Courant voting rule, this seeks to provide as many voters as possible with at least one item they highly value.
  3. Fair Knapsack: Utilizes the Nash Welfare objective, maximizing the product of voter utilities to balance efficiency with equity.

Methods

The authors employ theoretical complexity analysis to categorize these problems into classes such as P (polynomial time), NP-hard, and W[1]-hard. They specifically investigate how these problems behave under restricted preference domains:

  • Single-Peaked (SP): Preferences aligned along a one-dimensional spectrum.
  • Single-Crossing (SC): A structured domain where voter orderings change consistently.
  • Parameterized Complexity: Analyzing tractability relative to the number of voters.

The "Fair" objective is mathematically defined as maximizing $\prod_{v \in V} (1 + \text{utility}_v(S))$, ensuring that no single voter's utility is ignored.

Key Results and Insights

The study identifies a significant "fairness tax," where equitable outcomes are much harder to compute than simple utility maximization.

Summary of complexity results for Knapsack variants across different preference domains.

As summarized in the table above, the Individually Best approach is generally tractable. However, the Fair Knapsack variant remains NP-hard even in single-peaked domains—a surprising result given that many voting problems become easier under such constraints. The Diverse Knapsack offers a middle ground, becoming tractable in structured domains and remaining Fixed-Parameter Tractable (FPT) with respect to the number of voters.

Conclusion

The computational hardness of Fair Knapsack suggests that finding exact fair solutions for large-scale applications is likely impossible in practice. Future work should focus on developing approximation algorithms that provide near-optimal fairness and practical heuristics for real-world participatory budgeting data.

Summary updated

BibTeX
@inproceedings{fluschnik2019fair,
  author = {Till Fluschnik and Piotr Skowron and Mervin Triphaus and Kai Wilker},
  title = {{Fair Knapsack}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.1609/aaai.v33i01.33011941},
}
Figure