A Bandit-Based Algorithm for Fairness-Aware Hyperparameter Optimization

André Ferreira Cruz, Pedro Saleiro, Catarina G. Belém, Carlos Soares, Pedro BizarroarXiv 2020

Introduction

In modern machine learning, optimization typically focuses on a single global metric, such as predictive accuracy or cross-entropy loss. While effective for performance, this "fairness-blind" approach often results in models that exhibit disparate predictive or error rates across different demographic groups (e.g., race, gender, or age). Addressing algorithmic bias is frequently treated as a post-hoc correction, which can be difficult to implement and model-specific.

Researchers from Feedzai and the University of Porto propose Fairband, an extension of the popular Hyperband algorithm that integrates fairness directly into the model development process. By treating fairness as a primary objective during hyperparameter optimization (HO), Fairband discovers models that balance predictive power with social equity without increasing the computational budget.

Methodology: The Fairband Algorithm

Fairband builds upon resource-aware "bandit" algorithms like Successive Halving (SH) and Hyperband (HB). These algorithms efficiently explore a large hyperparameter space by starting with many configurations on small data "budgets" and progressively discarding poor performers.

The core innovations of Fairband include:

  1. Weighted-Sum Scalarization: Fairband optimizes a combined objective $o = \alpha \cdot a + (1 - \alpha) \cdot f$, where $a$ is accuracy, $f$ is a fairness metric, and $\alpha$ is a weight parameter.
  2. Dynamic Weighting (FB-auto): To avoid manual tuning of $\alpha$, the authors introduced a heuristic that automatically adjusts the weight during the search. If a batch of models is accurate but unfair, $\alpha$ is lowered to prioritize fairness in subsequent rounds.
  3. Model Agnosticism: Operating at the HO level allows Fairband to remain agnostic to the underlying model architecture, whether it be Random Forests, Neural Networks, or Gradient Boosted Trees.

Experimental Setup

The effectiveness of Fairband was evaluated across four real-world datasets representing diverse decision-making contexts, ranging from assistive (funding, income prediction) to punitive (recidivism, fraud detection).

Summary of datasets, settings, and metrics used in the evaluation of Fairband.

Results and Discussion

The evaluation demonstrated that the "fairness-blind" trap is real: traditional HO methods often target narrow regions of high accuracy that correlate with low fairness. However, Fairband successfully navigates the multi-objective Pareto frontier to find "knee" points where fairness is significantly improved with minimal accuracy loss.

Pareto frontier of fairness vs. accuracy, highlighting the trade-off between models A and B.

Key quantitative findings include:

  • Fairness Improvement: Fairband (FB-auto) achieved an average 92.9% relative improvement in fairness across all datasets.
  • Minimal Accuracy Cost: These gains came at an average cost of only a 7.3% relative drop in predictive accuracy. On the Adult dataset, fairness improved by 44.8% with only a 0.8% decrease in accuracy.
  • Efficiency: Fairband achieved these results within the same computational budget as standard Hyperband.

Conclusion

Fairband represents a practical step toward "Fairness by Design." By incorporating bias reduction into the standard hyperparameter optimization pipeline, it allows engineers to discover more equitable models automatically. While the choice of specific fairness metrics remains a stakeholder decision, Fairband provides the necessary tools to explore the trade-offs efficiently and effectively.

Summary updated

BibTeX
@misc{cruz2020bandit,
  author = {André Ferreira Cruz and Pedro Saleiro and Catarina G. Belém and Carlos Soares and Pedro Bizarro},
  title = {{A Bandit-Based Algorithm for Fairness-Aware Hyperparameter Optimization}},
  year = {2020},
  eprint = {2010.03665},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2010.03665},
}
Figure