NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Fair Bayesian Optimization

Valerio Perrone, Michele Donini, Muhammad Bilal Zafar, Robin Schmucker, Krishnaram Kenthapadi, Cédric Archambeau

TL;DR

This paper introduces Fair Bayesian Optimization (FairBO), a novel framework that tunes machine learning model hyperparameters to achieve both high accuracy and fairness simultaneously. FairBO is model-agnostic and can handle various fairness definitions, offering a more flexible and efficient approach to building equitable AI systems compared to existing specialized methods.

What Problem Does This Paper Address?

As machine learning models become more prevalent in critical decision-making areas like finance and hiring, ensuring their fairness and mitigating societal biases is paramount. Current fairness techniques often fall short: they might be tied to specific model types (e.g., only linear models), limited to a single fairness definition, or require sensitive attribute information at prediction time. This fragmentation makes it challenging for practitioners to deploy fair ML solutions across diverse applications and models. The paper aims to bridge this gap by providing a general, adaptable framework that optimizes for both performance and fairness by intelligently tuning model hyperparameters.

Methods

The core contribution is the Fair Bayesian Optimization (FairBO) framework. It extends standard Bayesian Optimization (BO), a technique for efficiently optimizing expensive black-box functions (like hyperparameter tuning), by incorporating fairness constraints.

Here's how it works:

  • Bayesian Optimization (BO): BO builds a probabilistic model (typically a Gaussian Process) of the objective function (e.g., model accuracy) and uses this model to intelligently select the next set of hyperparameters to evaluate. This is more efficient than random search.
  • Constrained BO: FairBO adds a second probabilistic model for the fairness metric. It uses an acquisition function (like Constrained Expected Improvement - CEI) that balances exploring for higher accuracy with ensuring the fairness constraint is met.
  • Model-Agnosticism: FairBO treats the ML pipeline as an opaque box, meaning it can tune hyperparameters for any model (Random Forests, Gradient Boosting, Neural Networks, etc.) without needing to understand its internal workings.
  • Flexibility in Fairness: FairBO can accommodate various fairness definitions (e.g., Equal Opportunity, Equalized Odds, Statistical Parity) and can even handle multiple fairness constraints simultaneously.

Datasets

The paper evaluates FairBO on three commonly used fairness benchmark datasets:

  • Adult - Census Income: Predicts if income exceeds $50K/yr, with gender as the sensitive attribute.
  • German Credit Data: Classifies individuals as good or bad credit risks, with gender as the sensitive attribute.
  • COMPAS: Predicts recidivism risk, with binarized ethnic group as the sensitive attribute.

The authors note the ethical concerns surrounding the COMPAS dataset but use it due to its popularity as a benchmark.

Key Insights and Ideas

  • Hyperparameters are Powerful Levers for Fairness: The most striking insight is that simply tuning model hyperparameters can significantly improve fairness without necessarily sacrificing accuracy. This suggests that many fairness issues can be addressed at the configuration level, rather than requiring entirely new model architectures or training procedures.
  • Regularization is Key to Fairness: The study reveals a strong correlation between regularization hyperparameters (e.g., L1/L2 regularization, tree depth, learning rate) and model fairness. Higher regularization tends to lead to less biased models, likely by preventing overfitting and reducing the model's reliance on potentially biased features.
  • FairBO is More Efficient: By focusing on the feasible region (where fairness constraints are met), FairBO finds good fair and accurate solutions much faster than standard BO or random search.
  • Synergy with Existing Methods: FairBO can be used to tune the hyperparameters of existing specialized fairness techniques, further improving their performance.

Key Results

  • Faster Convergence: FairBO found accurate and fair models significantly faster than Random Search and standard Bayesian Optimization across all tested datasets and models. For example, on the Adult dataset, FairBO found a fair optimum five times faster than Random Search.
  • Competitive Performance: FairBO's performance was competitive with, and often superior to, specialized model-specific fairness techniques and outperformed preprocessing methods like SMOTE.
  • Handling Multiple Constraints: FairBO successfully handled multiple fairness constraints simultaneously, demonstrating its flexibility.
  • Reduced Accuracy Impact: FairBO achieved better fairness-accuracy trade-offs compared to other methods, meaning it could achieve fairness with a smaller drop in accuracy. For instance, a small drop in accuracy (0.02 points) could lead to a substantial reduction in unfairness (70%).

Limitations and Future Work

  • Focus on Statistical Fairness: The paper primarily addresses statistical definitions of fairness. The authors acknowledge that real-world fairness is complex and often requires human judgment beyond statistical metrics.
  • Continuous Sensitive Attributes: The current framework is mainly demonstrated with binary sensitive attributes. Extending it to handle continuous sensitive attributes is a potential future direction.
  • Other ML Tasks: The work focuses on classification. Future research could explore applying FairBO to regression, image recognition, and natural language processing tasks.
  • Computational Cost: While more efficient than multi-objective BO, FairBO still involves iterative evaluations, which can be computationally intensive for very large search spaces or expensive model training.

Summary updated

BibTeX
@inproceedings{perrone2021fair,
  author = {Valerio Perrone and Michele Donini and Muhammad Bilal Zafar and Robin Schmucker and Krishnaram Kenthapadi and Cédric Archambeau},
  title = {{Fair Bayesian Optimization}},
  booktitle = {AIES},
  year = {2021},
  doi = {10.1145/3461702.3462629},
}

Loading related content...

Figure