FairnessLab: A Consequence-Sensitive Bias Audit and Mitigation Toolkit

Joachim Baumann, Corinna Hertweck, Joachim Baumann 0002, Michele Loi, Christoph HeitzEwaf 2023

Introduction

FairnessLab is an open-source toolkit designed to move beyond rigid, "one-size-fits-all" mathematical fairness metrics. By integrating principles from distributive justice and moral philosophy, it enables developers to construct context-specific bias audits sensitive to the real-world consequences experienced by individuals.

The Limitations of Standard Fairness Metrics

Current AI audit tools, such as Aequitas or Fairlearn, typically rely on a fixed set of group fairness metrics like demographic parity or equalized odds. However, these metrics are often mathematically incompatible and treat the selection of a metric as a technical choice rather than a moral one. FairnessLab argues that fairness is inherently contextual; a metric suitable for marketing may be morally indefensible in medical or criminal justice settings.

The FairnessLab Framework

The toolkit introduces a structured approach that requires developers to make moral assumptions explicit through six "value-laden" questions. This process defines how benefits and harms are distributed across society.

The FairnessLab framework defines fairness and utility scores through a sequence of six normative choices.

These six steps include:

  1. Utility of the decision maker: Quantifying organizational benefit or harm.
  2. Utility of the decision subjects: Measuring the impact on the people being judged.
  3. Relevant groups: Identifying protected subgroups (e.g., race, gender) for comparison.
  4. Claim differentiator: Determining features that justify equal moral consideration.
  5. Pattern of justice: Choosing between strict equality or prioritizing the "worst-off" group.
  6. Trade-off decision: Determining the acceptable sacrifice of utility for increased fairness.

Visualization and Mitigation

FairnessLab functions as an interactive web application that calculates a Decision Maker’s Score and a custom Fairness Score based on the user's criteria. A key output is the Pareto front visualization, which identifies decision rules where fairness cannot be improved without decreasing utility, and vice versa.

A Pareto front visualization illustrating the trade-off between decision-maker utility and fairness scores across various decision rules.

This visualization allows stakeholders to select optimal "post-processing" thresholds for different groups, facilitating informed mitigation of bias by making the "cost of fairness" transparent.

Key Insights from the COMPAS Case Study

The authors demonstrated the toolkit using the COMPAS recidivism dataset. Their analysis revealed that standard metrics might actually obscure better solutions. By using flexible utility functions that weigh real-world consequences—such as the harm of a false prison sentence versus a false release—they identified decision rules that were both more efficient and less biased than those suggested by traditional audits.

Conclusion and Future Work

FairnessLab promotes "explicit subjectivity" by requiring users to document their justifications, creating an audit trail that prevents "ethics-washing." While currently limited to binary decision-making and reliant on the quality of user-defined utility functions, it represents a significant step toward more nuanced and accountable algorithmic auditing. Future work aims to expand support beyond binary classification and address the systemic limitations of biased underlying data.

Summary updated

BibTeX
@inproceedings{baumann2023fairnesslab,
  author = {Joachim Baumann and Corinna Hertweck and Joachim Baumann and Michele Loi and Christoph Heitz},
  title = {{FairnessLab: A Consequence-Sensitive Bias Audit and Mitigation Toolkit}},
  booktitle = {Ewaf},
  year = {2023},
}
Figure