Introduction
Machine learning models often inadvertently learn and perpetuate biases present in training data, leaking sensitive information such as race or gender into their internal representations. This phenomenon leads to inequitable decision-making. To address this, researchers have traditionally employed adversarial training, where a fairness-oriented model competes against the primary predictor in a min-max game. However, these adversarial setups are notoriously unstable, computationally expensive, and difficult to tune. Non-adversarial alternatives frequently fall into "degeneracy traps," satisfying fairness constraints by simply degrading performance across all demographic groups. This paper presents Differential Adjusted Parity (DAP), a novel, stable loss function that enables models to learn fair representations through a cooperative, differentiable objective.
Methodology
The core innovation of this work is the DAP loss function, which avoids the instability of adversarial competition by optimizing a single, unified metric. The loss relies on two primary hyperparameters: $\beta$, which controls the fairness penalty, and $\Omega$, which weights the standard cross-entropy loss.
The Adjusted Parity Metric
Adjusted Parity is designed to reward both high predictive performance and inter-group consistency. It is calculated by combining the average accuracy across different sensitive groups with the standard deviation of accuracy between those groups. Formally, high adjusted parity is achieved when a model maintains high accuracy while minimizing the variance in performance across protected classes.
Soft Balanced Accuracy
A significant challenge in optimizing fairness metrics is their non-differentiability. Standard accuracy relies on the argmax function, which prevents direct gradient-based optimization. To overcome this, the authors developed Soft Balanced Accuracy. This method utilizes raw probability vectors and the Hadamard product to create a smooth, differentiable approximation of balanced accuracy. By integrating Soft Balanced Accuracy into the Adjusted Parity formula, the authors create a loss function that can be optimized using standard backpropagation.
Experimental Evaluation
The DAP method was evaluated against several state-of-the-art adversarial models, including ALFR, CFair, and LAFTR, using two benchmark datasets: the Adult Census Income dataset (predicting income with gender as the sensitive attribute) and the COMPAS dataset (predicting recidivism with race as the sensitive attribute).
Results and Discussion
Experimental results demonstrate that DAP consistently achieves superior fairness-utility trade-offs compared to adversarial baselines. As illustrated in Figure 6, DAP (represented by the solid purple line) shows a distinct peak in Adjusted Parity at $\beta=1$. While there is an observable trade-off in raw balanced accuracy (bottom-left), DAP achieves significantly better fairness outcomes at higher penalty values.
- Adult Dataset Performance: DAP reduced the Equalized Odds Difference (EOD) by 44.1% and the Demographic Parity Difference (DPD) by 18.6% compared to the FAIR baseline.
- COMPAS Dataset Performance: The method showed a 45.9% improvement in adjusted parity and a 12.4% reduction in EOD relative to the CFair model.
- Information Erasure: To verify the fairness of the learned representations, the authors attempted to train a separate classifier to predict sensitive attributes from the model's internal states. The accuracy of this "attacker" classifier dropped by up to 40.1%, indicating successful erasure of sensitive information.
Conclusion
Differential Adjusted Parity provides a robust and stable framework for learning fair representations. By replacing adversarial competition with a cooperative, differentiable objective, DAP simplifies the training process while delivering significant improvements in fairness metrics. While the current implementation requires manual tuning of hyperparameters, future work will focus on automated calibration schemes to dynamically optimize these weights during training.
Summary updated