A Reductions Approach to Fair Classification

Alekh Agarwal, Alina Beygelzimer, Miroslav Dudík, John Langford, Hanna M. Wallach

Abstract

This paper introduces a systematic framework that transforms fair classification into a sequence of standard cost-sensitive classification problems. By treating any existing machine learning algorithm as a "black box," the authors provide a way to enforce diverse fairness constraints (such as demographic parity or equalized odds) while guaranteeing the best possible accuracy for a given level of fairness.

The Challenge of Fair Classification

Machine learning models often inadvertently learn the biases present in their training data, leading to discriminatory outcomes against protected groups based on attributes like race or gender. Previous attempts to mitigate this unfairness typically fell into two restrictive categories:

  1. Model-specific constraints: Modifying the internal mathematics of a specific algorithm (like a Support Vector Machine). This approach is inflexible because it cannot be easily generalized to other architectures like Random Forests or Neural Networks.
  2. Pre-processing and Post-processing: Either cleaning the data before training or tweaking the predictions after training. Pre-processing often fails to eliminate all unfairness, while post-processing usually requires knowing the protected attribute (e.g., a person's race) at test time to make a decision—a requirement that is often illegal or impractical in real-world deployments.

The authors seek a "best of both worlds" solution: a general-purpose algorithm that works with any classifier, provides provable fairness guarantees, and does not require protected attributes during the actual prediction phase.

Methodology: The Reductions Approach

The core innovation of this paper is a Reductions Approach. The authors frame fair classification as a constrained optimization problem: minimize error subject to linear constraints on "moments" (statistical properties of the model's predictions).

To solve this, they utilize a Lagrangian saddle-point formulation, essentially turning the problem into a two-player game:

  • The Learner (Q-player): Attempts to find a classifier that minimizes a combination of error and fairness penalties.
  • The Auditor ($\lambda$-player): Identifies the fairness constraints that the current classifier is violating the most and increases the penalty for those specific violations.

By iterating between these two players using an Exponentiated Gradient algorithm, the system converges to a "randomized classifier"—a probability distribution over several deterministic classifiers. Crucially, the "Learner" step only requires a standard cost-sensitive classifier (one that can handle training examples with different weights or costs), a feature already supported by most modern machine learning libraries.

Key Insights

  • Fairness as a Game: Viewing the tension between accuracy and fairness as a minimax game allows the authors to leverage decades of research in optimization and game theory (specifically the work of Freund & Schapire).
  • The Power of Weights: The approach demonstrates that you do not need to change how a model learns; you only need to change what it cares about by adjusting the costs of misclassifying different groups.
  • Randomization is Optimal: The paper proves that to reach the absolute best theoretical trade-off between accuracy and fairness, the final model must sometimes randomize its predictions by flipping a coin between two or more different deterministic models.
  • No Test-Time Peeking: Because fairness is "baked in" during the training iterations, the final model remains fair even if it never sees the protected attribute when making a prediction on a new user.

Key Results

The authors evaluated their approach on four well-known fairness benchmarks: Adult Income, ProPublica COMPAS, Law School Admissions (LSAC), and the Dutch Census.

Trade-offs between classification error and fairness constraint violations across multiple datasets and algorithms. The proposed reduction approach (yellow line) consistently maps the Pareto frontier.
  • Pareto Optimality: As seen in the figure above, the reduction approach (represented by the solid yellow line) consistently found the "Pareto frontier"—the curve representing the maximum possible accuracy for any given level of fairness violation.
  • Dominating Baselines: In head-to-head tests, the reduction approach matched or outperformed existing heuristics like "relabeling" or "reweighting."
  • Superior to Post-processing: While post-processing methods can achieve zero disparity, they often do so by sacrificing significantly more accuracy than the reduction approach, which optimizes the trade-off globally.
  • Scalability to Non-Binary Attributes: The method handles protected attributes with multiple categories (e.g., multiple races) much more effectively than "grid search" methods, which become computationally intractable as the number of categories grows.

Limitations and Future Work

While highly effective, the framework has a few notable limitations:

  • Randomized Predictions: The final output is a randomized classifier. In high-stakes scenarios (like bank loans or criminal justice), telling an individual their outcome was partially determined by a "weighted coin flip" between two models presents significant regulatory and public relations challenges.
  • Training-Time Access: The method still requires accurate labels for protected attributes during the training phase. If the training data is missing these labels or they are incorrectly recorded, the fairness guarantees may be compromised.
  • Single Definition Focus: The current work focuses on optimizing for a single definition of fairness at a time. Navigating the complex trade-offs between multiple, often mathematically contradictory definitions of fairness remains an open research question.

Summary updated

BibTeX
@inproceedings{agarwal2018reductions,
  author = {Alekh Agarwal and Alina Beygelzimer and Miroslav Dudík and John Langford and Hanna M. Wallach},
  title = {{A Reductions Approach to Fair Classification}},
  booktitle = {International Conference on Machine Learning},
  year = {2018},
  url = {https://openreview.net/forum?id=r1W2gib_bH},
}
Figure