Optimized Score Transformation for Fair Classification

Dennis Wei, Karthikeyan Natesan Ramamurthy, Flávio du Pin Calmon

Abstract

Algorithmic fairness research has predominantly focused on binary classification outcomes, often neglecting the necessity of fair probabilistic scores in high-stakes domains such as medicine and finance. This paper introduces FairScoreTransformer (FST), a principled framework that transforms probabilistic classifier outputs to satisfy fairness constraints while minimizing information loss. By formulating the transformation as a constrained optimization problem, FST provides high-quality probability estimates that outperform existing state-of-the-art techniques in both utility and fairness. We demonstrate that FST is computationally efficient, rank-preserving, and adaptable to scenarios where sensitive attributes are unavailable at inference time.

Introduction

In many decision-support systems, a simple binary label (e.g., "loan approved" or "denied") is insufficient. Stakeholders often require the underlying probability—the "score"—to assess risk levels and make nuanced decisions. However, standard fairness interventions frequently target binary labels, leading to scores that are either uncalibrated or entirely unavailable. Furthermore, existing methods often require access to sensitive attributes (like race or gender) during the testing phase, which may be legally or ethically restricted.

To address these gaps, we present FairScoreTransformer (FST). FST is designed to produce fair, probabilistic scores that satisfy common fairness definitions, such as Statistical Parity or Equalized Odds, while remaining as close as possible to the original, unconstrained predictions.

The FairScoreTransformer (FST) Framework

Optimization Objective

FST treats the transformation of scores as a constrained optimization problem. The goal is to find a transformed score function that minimizes the cross-entropy between the original classifier's scores and the new, fair scores. Cross-entropy is utilized as the objective function because it effectively measures information loss and ensures the resulting scores remain well-behaved probabilities.

Technical Implementation

The framework relies on several key technical innovations to ensure both theoretical rigor and practical efficiency:

  1. Dual Optimization: Rather than solving a high-dimensional problem for every individual data point, FST leverages a dual optimization approach. This reduces the problem to finding a small set of optimal Lagrange multipliers, the number of which is typically proportional to the number of protected groups.
  2. ADMM Algorithm: The optimization is solved using the Alternating Direction Method of Multipliers (ADMM). This choice makes the method computationally lightweight and scalable to large datasets.
  3. Versatility in Deployment: FST is agnostic to the underlying model. It can function as a post-processor to refine the outputs of a pre-trained model or as a pre-processor to re-weight training data, enabling the training of "fair-by-design" models using any standard algorithm.

Key Properties

A significant theoretical contribution of FST is its rank-preserving property. The transformation is proven to be monotonic for any fixed group. This means that if Person A was originally deemed higher risk than Person B within the same group, that relative ordering is maintained after the fairness transformation, preserving the model's internal logic.

Experimental Evaluation

Datasets and Baselines

FST was evaluated against ten existing fairness methods using four standard benchmarks:

  • Adult Income: Predicting whether annual income exceeds $50,000.
  • COMPAS: Assessing the risk of criminal recidivism.
  • German Credit: Evaluating creditworthiness for bank applicants.
  • MEPS (Medical Expenditure Panel Survey): Predicting high healthcare utilization.

Performance Metrics

The study focused on score-based utility metrics, specifically the Brier score (measuring the accuracy of probabilistic predictions) and AUC (Area Under the ROC Curve). Additionally, standard binary metrics like Accuracy were tracked to ensure competitive performance on label-based tasks.

Results and Discussion

Superior Score Utility

FST consistently achieved a superior trade-off between fairness and utility compared to all baselines. In metrics like the Brier score and AUC, FST provided more reliable and informative probabilities than methods designed solely for binary label flipping. Even when scores were thresholded for binary classification, FST's accuracy remained competitive with, and often exceeded, specialized binary fairness algorithms.

Handling Missing Attributes

A critical advantage of FST is its robustness when protected attributes are unavailable at test time. By utilizing estimates of these attributes derived from other available features, FST can still enforce fairness constraints effectively, making it viable for real-world deployment where sensitive data collection is limited.

Computational Efficiency

Because FST operates in a low-dimensional dual space, it avoids the heavy computational burden of "in-processing" meta-algorithms that require retraining models multiple times. This efficiency allows for rapid iteration and deployment in production environments.

Conclusion and Future Work

FairScoreTransformer provides a theoretically grounded and practically flexible solution for generating fair probabilistic scores. While FST represents a significant advancement, its performance is inherently tied to the calibration of the initial classifier. Future research will explore extending FST to multi-class classification problems and investigating fairness criteria that ensure equal calibration across diverse demographic groups. As algorithmic decision-making continues to expand into sensitive areas, tools like FST are essential for balancing predictive power with social equity.

Summary updated

BibTeX
@article{wei2021optimized,
  author = {Dennis Wei and Karthikeyan Natesan Ramamurthy and Flávio du Pin Calmon},
  title = {{Optimized Score Transformation for Fair Classification}},
  journal = {J. Mach. Learn. Res.},
  year = {2021},
}
Figure