In an ideal world, we would train machine learning models to be fair by directly optimizing for metrics like demographic parity or equalized accuracy. However, these metrics are typically discrete and non-differentiable—they rely on counting "if-then" outcomes that don't provide the smooth gradients required by backpropagation.
To get around this, researchers use surrogate functions: smooth, differentiable proxies like cross-entropy loss or hinge loss. We optimize the surrogate, hoping that a "fairer" loss will translate into a "fairer" real-world outcome. But as recent research reveals, this translation is often broken. This discrepancy is known as the surrogate-fairness gap.
The Differentiability Dilemma
The core of the problem lies in the mathematical mismatch between what we want and what we can optimize. As Yongkai Wu and colleagues noted in Fairness-aware Classification: Criterion, Convexity, and Bounds, the tightness of the bounds between a surrogate and a true fairness metric depends heavily on the choice of function. If the surrogate is a poor approximation, a model can appear perfectly "fair" during training while remaining biased in practice.
This isn't just a theoretical concern. In Technical Challenges for Training Fair Neural Networks, Valeriia Cherepanova, Micah Goldblum, and Tom Goldstein demonstrate that equalizing differentiable losses across groups does not guarantee parity in actual performance metrics like accuracy or Area Under the Curve (AUC). In fact, in overparameterized models like deep neural networks, the model can "cheat" by satisfying the surrogate constraint without actually fixing the underlying disparity.
Why the Gap Persists in Deep Learning
The gap becomes particularly problematic in complex scenarios like model pruning or federated learning. When we compress models to fit on smartphones, we often use loss-based constraints to ensure subgroups aren't harmed. However, Meraj Hashemizadeh and Jose Gallego-Posada show in Balancing Act: Constraining Disparate Impact in Sparse Models that loss reductions do not always correlate with accuracy improvements. A model might get "better" at the surrogate loss while the accuracy for a minority group actually drops.
Similarly, in Federated Learning, where data is siloed across different users, Rongguang Ye and Ming Tang observe in PraFFL that the misalignment between cross-entropy and demographic parity makes it difficult for users to tune their preferred balance of accuracy and fairness in real-time.
Strategies for Closing the Gap
To bridge this divide, researchers are moving away from simple convex surrogates toward more sophisticated alignment mechanisms:
- Refined Surregates: Wei Yao and Bo Han argue in Understanding Fairness Surrogate Functions in Algorithmic Fairness that "large margin points" (outliers) often destabilize standard surrogates. They propose a General Sigmoid Surrogate to reduce the influence of these outliers and provide a more consistent link between the proxy and the target metric.
- Distributional Alignment: Instead of relying on loss functions, some researchers suggest aligning the actual distributions of model outputs. In WassFFed: Wasserstein Fair Federated Learning, Zhongxuan Han and Chaochao Chen use Wasserstein barycenters to match output scores across groups, bypassing the need for unreliable surrogate losses entirely.
- Exact Optimization: For smaller datasets, it is possible to avoid surrogates altogether. Qing Ye and Weijun Xie 0001 developed a framework for Unbiased Subdata Selection that uses binary variables to select a subset of data where fairness can be optimized exactly, rather than approximated.
The Path Forward
The research consensus is clear: we cannot take for granted that a "fair-looking" training objective results in a fair model. As we deploy models in high-stakes areas like medicine—where Berk Ustun and Yang Liu warn that standard surrogates can fail to meet even basic preference guarantees—understanding and closing the surrogate-fairness gap is no longer just a mathematical curiosity; it is a requirement for responsible AI.