Resource-constrained Fairness

Sofie Goethals, Eoin Delaney, Brent Mittelstadt, Chris Russell

TL;DR

Fairness in machine learning is often treated as a static property, but in the real world, it is dictated by budgets. This paper introduces resource-constrained fairness, demonstrating that the "cost" of achieving fairness is not a fixed value but fluctuates significantly depending on how many resources (like scholarships or medical appointments) are available.

What Problem Does This Paper Address?

Most research in algorithmic fairness assumes an "unconstrained" setting where a model's threshold can be set freely to minimize bias. However, real-world deployment is almost always budget-limited: a university has a fixed number of seats, a bank has a specific lending capacity, and a clinic has a finite number of staff.

When practitioners adjust a model's threshold to meet these resource constraints, existing fairness mitigation tools often fail. As shown in Figure 1, standard methods can oscillate wildly in their fairness levels as the selection rate changes. Furthermore, existing analyses of the "cost of fairness" (the performance trade-off required to be fair) fail to account for these varying resource levels, often overestimating the cost for very high or very low selection rates.

Figure 1: An illustration of how demographic parity varies with selection rate. We apply a range of classical bias mitigation methods from AIF360 Bellamy et al. [2018] and observe how fairness varies with selection rate. The dots indicate default thresholds. As the thresholds vary, fairness oscillates wildly (results on the Adult dataset, de- tails Section A.2.1). Just as standard fairness methods fail to consider the selection rate, existing analyses of the cost of fairness Corbett-Davies et al. [2017], Friedler et al. [2019], Haas [2019], von Zahn et al. [2021] also fail to take it into account.

Methods

The authors formalize fairness as a resource allocation problem. They define resources as the proportion of instances predicted as positive (the selection rate $r$).

  1. Mathematical Framework: They redefine the goal as minimizing the maximum harm experienced by any group (a "leveling up" approach) subject to a global resource constraint. They prove that under these conditions, the optimal solution naturally enforces equality of harm between groups.
  2. Quantifying the Cost: They define the "cost of fairness" as the difference in performance (typically precision, recall, or accuracy) between an optimal but unfair classifier and a fair one, while keeping the total number of selected individuals constant.
  3. Bounding the Cost: The authors derive mathematical bounds showing that the cost of fairness is bounded by the selection rate $r$ and the size of the disadvantaged group $g$.
  4. Threshold Optimization: To implement this, they use a per-group parameter sweep to find the specific thresholds for each group that satisfy fairness requirements at any given global selection rate.

Datasets

The study evaluates its framework across a diverse set of benchmarks:

  • Tabular Datasets: Adult Income (census data), COMPAS (recidivism prediction), Dutch Census (occupation level), and Law Admission (bar exam success).
  • Computer Vision Datasets: CelebA (predicting 'wearing earrings' as a proxy for gender-biased tasks) and Fitzpatrick17k (skin lesion classification across different skin types).

Key Insights and Ideas

  • Fairness is a Function of Resources: The cost of being fair is not a single number. It typically follows a bell-shaped curve relative to the selection rate. The cost is highest when the selection rate is near the model's natural "unconstrained" threshold and becomes negligible at extreme resource levels (very few or very many resources).
  • The "Leveling Down" Rebuttal: In unconstrained settings, critics argue that fairness "levels down" by harming advantaged groups without helping others. The authors argue that under fixed resources, rebalancing is necessary—deliberately not using all resources would be the true form of "leveling down."
  • Noise and Group Size Matter: The cost of fairness decreases as the size of the disadvantaged group decreases. Interestingly, adding noise to the entire dataset can actually lower the average cost of fairness by shrinking the performance gap between groups, whereas adding noise only to the disadvantaged group significantly increases the cost.

Key Results

The authors demonstrate that their method maintains stable fairness across all selection rates, unlike traditional post-hoc methods.

  • Bell-Shaped Cost Curves: Across almost all datasets, the loss in precision peaks at specific selection rates. For the Adult dataset (Figure 3a), the cost is highest at low selection rates, while for the Law dataset (Figure 3d), it peaks at high selection rates.
  • Precision vs. Recall: The cost of enforcing Equal Opportunity (EO) is generally lower than enforcing Demographic Parity (DP) because EO typically requires fewer "swaps" of individuals to achieve balance.
  • Empirical Validation of Bounds: The experiments confirm that when the selection rate $r$ or the group size $g$ is very small, the cost of enforcing fairness is minimal, providing a theoretical justification for why some real-world "top-k" selection systems might see negligible fairness-accuracy trade-offs.
Figure 2: Impact of different parameters (base rate, noise, group size) on the cost of fairness.

Limitations and Future Work

  • Post-hoc Focus: The current work focuses on adjusting thresholds after a model is trained. The authors suggest that integrating these resource constraints directly into the training phase (in-processing) could yield even better results.
  • Tightness of Bounds: The derived mathematical bounds are informative but not intended to be perfectly tight; further theoretical work could refine these.
  • Ground Truth Assumptions: The analysis assumes that the labels in the dataset are correct. If the underlying data is itself biased (e.g., biased arrests in criminal justice data), the "cost" measured here might reflect a move toward true justice rather than a loss in "real" accuracy.

Summary updated

BibTeX
@misc{goethals2024resource,
  author = {Sofie Goethals and Eoin Delaney and Brent Mittelstadt and Chris Russell},
  title = {{Resource-constrained Fairness}},
  year = {2024},
  eprint = {2406.01290},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.01290},
}
Figure