Abstract
Algorithmic fairness often faces a trade-off between mathematical rigor and computational scalability. This paper introduces Metrized Fair Learning (MFL), a framework that reformulates group fairness as a distance-minimization problem using Integral Probability Metrics (IPMs). By deriving novel, unbiased gradient estimators, MFL enables fair models to be trained efficiently using standard stochastic gradient descent (SGD). Experimental results demonstrate that MFL outperforms state-of-the-art methods in accuracy, training speed, and stability across various batch sizes.
Introduction
In fair machine learning, Statistical Parity (SP) is a primary objective: a model’s predictions should ideally be independent of protected attributes such as race or gender. However, enforcing this constraint during training is computationally challenging. Existing approaches often suffer from two main issues:
- Computational Inefficiency: Many methods rely on complex constrained optimization that fails to scale to large datasets or deep neural networks.
- Mini-batch Bias: Calculating fairness penalties on small subsets of data (mini-batches) often leads to biased estimates. To mitigate this, researchers frequently use massive batch sizes, which slows training and can hinder model generalization.
MFL addresses these challenges by making group fairness both mathematically rigorous and computationally scalable through the lens of distance metrics.
The MFL Framework
The core of MFL is the use of Integral Probability Metrics (IPMs)—a broad class of mathematical distances including Wasserstein distance and Maximum Mean Discrepancy (MMD)—to quantify unfairness. The framework treats unfairness as the difference in expected utility between demographic groups.
The technical breakthrough of MFL lies in its unbiased gradient estimators. By leveraging U-statistics and introducing a specific bias-correction term ($\Delta$) to the prediction loss, the authors ensure that gradients remain unbiased even when calculated on small, random mini-batches. Specifically, the framework focuses on the squared $L^2$-distance (energy distance), allowing fairness to be integrated directly into the objective function as a regularizer compatible with standard optimizers like Adam.
Theoretical and Visual Insights
A key insight of this work is that fairness constraints can act as a form of regularization. If a protected attribute is truly irrelevant to the ground truth, enforcing fairness helps the model ignore biases in the training data, potentially improving out-of-sample accuracy.
The authors identify a "Win-Win" condition (Theorem 2.7) where enforcing statistical parity improves both fairness and predictive power simultaneously. This is particularly relevant when training labels are biased proxies for the true target. Furthermore, because the gradient estimators are unbiased, MFL performs exceptionally well with small batch sizes, which are known to improve the generalization of neural networks.
Experimental Evaluation
The MFL framework was evaluated on several real-world benchmarks, including:
- Drug Consumption & Communities and Crime (CC): Predicting usage and crime rates with race as the protected attribute.
- Compas: Predicting recidivism with race as the protected attribute.
- Adult & Student Grades: Predicting income and academic performance with gender as the protected attribute.
Key Results
- Superior Trade-offs: MFL consistently achieved a better Pareto frontier (the balance between accuracy and fairness) compared to established baselines.
- Significant Speedups: On the Communities & Crime dataset, MFL was orders of magnitude faster than leading baselines, reducing training time from over 700 seconds to approximately 11 seconds for linear models.
- Robustness to Batch Size: Unlike biased fair learning methods, MFL’s performance remained stable across varying batch sizes (from 4 to 50), validating the effectiveness of the unbiased estimators.
Conclusion and Future Work
Metrized Fair Learning provides a scalable, unbiased approach to integrating fairness into modern machine learning pipelines. While highly effective, the framework's performance can be sensitive to the penalty parameter ($\lambda$), necessitating careful validation. Future research directions include extending the framework to handle multiple intersecting protected attributes more efficiently and ensuring robustness against adversarial attacks or missing data.
Summary updated