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.
These six steps include:
- Utility of the decision maker: Quantifying organizational benefit or harm.
- Utility of the decision subjects: Measuring the impact on the people being judged.
- Relevant groups: Identifying protected subgroups (e.g., race, gender) for comparison.
- Claim differentiator: Determining features that justify equal moral consideration.
- Pattern of justice: Choosing between strict equality or prioritizing the "worst-off" group.
- 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.
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