Differential Adjusted Parity for Learning Fair Representations

Bucher Sahyouni, Matthew J. Vowels, Liqun Chen, Simon Hadfield · OpenReview

TL;DR

The paper introduces Differential Adjusted Parity (DAP) loss, a novel non-adversarial approach for learning fair and unbiased machine learning representations. By leveraging a smoothly differentiable variant of the adjusted parity metric, DAP avoids the notorious training instabilities of adversarial methods and eliminates the "degeneracy" trap of previous non-adversarial methods, where fairness was achieved by simply performing poorly across all groups.

What Problem Does This Paper Address?

Machine learning models often inadvertently encode sensitive attributes—such as race, gender, or age—into their learned representations, leading to downstream predictions that perpetuate societal biases.

To mitigate this, researchers typically turn to two strategies, both of which have major drawbacks:

  1. Adversarial Debiasing: This sets up a min-max game where a predictor tries to learn the main task while an adversary tries to guess the sensitive attribute from the representations. While effective, it is computationally expensive, highly unstable, and sensitive to hyperparameter tuning.
  2. Non-Adversarial Debiasing: These methods use statistical constraints (like correlation or maximum mean discrepancy) to remove bias more stably. However, they frequently suffer from a degeneracy problem: the optimization objective can be satisfied by making the model perform equally poorly across all demographic groups, tanking the model's utility.

The authors propose DAP to bridge this gap, offering a stable, non-adversarial framework that enforces fairness without sacrificing downstream task performance.

Methods

The core innovation of DAP is turning Adjusted Parity—a metric that combines downstream classification accuracy and its consistency across sensitive domains—into a fully differentiable loss function.

The authors achieve this through two key steps:

  • Extension to Multi-Class Domains: The original adjusted parity metric was limited to binary sensitive attributes. The authors introduce a normalization factor ($\gamma$) that mathematically extends the metric to an arbitrary number of sensitive domains (handling both even and odd numbers of groups).
  • Soft Balanced Accuracy: Standard accuracy metrics rely on the non-differentiable argmax function. To make the objective backpropagation-friendly, the authors introduce "Soft Balanced Accuracy." This formulation computes soft variants of True Positives, False Positives, True Negatives, and False Negatives directly from predicted class probabilities using Hadamard products ($\odot$) with one-hot and one-cold encoded labels.

By calculating this soft balanced accuracy independently for each sensitive domain, the DAP loss function simultaneously maximizes overall task accuracy while minimizing the standard deviation (inconsistency) of performance across different demographic groups. The final objective function balances standard cross-entropy loss ($\mathcal{L}_{ce}$) and the DAP loss using two hyperparameters, $\beta$ and $\Omega$.

Datasets

The authors evaluated their approach on two standard fairness benchmarks:

  • Adult Dataset (Census Income): A highly imbalanced dataset used for binary classification (predicting if an individual earns >$50k/year). Gender was designated as the sensitive attribute.
  • COMPAS Dataset: A criminal risk assessment dataset used to predict whether a defendant will re-offend within two years. Race was utilized as the sensitive attribute, evaluated under both a simplified binary setup and its true multi-class (5 ethnicities) formulation.

Key Insights and Ideas

  • Cooperation Over Competition: Unlike adversarial training, which relies on a zero-sum tension between networks, DAP uses a single, unified objective function. This cooperative formulation significantly improves training stability.
  • Beating Degeneracy: DAP mathematically prevents the model from finding a "fair but useless" solution. Because the adjusted parity metric scales the variance penalty by the average accuracy across groups, the loss cannot be minimized by performing poorly everywhere.
  • Multi-Class Fairness Capability: Thanks to the derivation of the maximum standard deviation for odd/even domains, DAP naturally scales to complex, multi-class sensitive attributes (like the five racial categories in COMPAS) where many adversarial methods struggle.

Key Results

DAP consistently outperformed popular adversarial models—including ALFR (FAIR), CFair, and LAFTR—on both task accuracy and fairness metrics.

  • Adult Dataset: At a high fairness weighting ($\beta = 100$), DAP achieved a 44.1% lower Equalized Odds Difference (EOD) and an 18.6% lower Demographic Parity Difference (DPD) than the next best adversarial performer (FAIR).
Figure 1: Comparing performance and fairness of all 4 models against DAP on Adult dataset. Top-left, top-right, bottom-left and bottom-right graph show how adjusted parity, equalised odds difference (EOD), gender classification accuracy and demographic parity difference (DPD) change with β. Higher adjusted parity and lower EOD, DPD and gender accuracy are favourable. DAP has higher adjusted parity and lower gender classification accuracy at all β. Lowest EOD and DPD are obtained by DAP at β=100.
  • COMPAS Dataset: Compared to its closest competitor, CFair, DAP improved the adjusted parity score by 45.9% and reduced EOD by 12.4%. It also demonstrated a 40.1% reduction in sensitive feature accuracy, meaning it successfully scrubbed race information from the learned embeddings, bringing it close to random chance (0.33 in the multi-class setting).

Limitations and Future Work

The primary limitation identified in the paper is DAP's sensitivity to its hyperparameters, $\beta$ and $\Omega$. The relationship between the main task loss and the variance penalty is nuanced and dataset-dependent, requiring careful calibration to find the optimal fairness-accuracy trade-off.

The authors suggest that future work should focus on developing automated or adaptive hyperparameter calibration schemes that dynamically adjust these weights throughout the training process based on real-time performance.

Summary updated

BibTeX
@misc{sahyouni2025differential,
  author = {Bucher Sahyouni and Matthew J. Vowels and Liqun Chen and Simon Hadfield},
  title = {{Differential Adjusted Parity for Learning Fair Representations}},
  year = {2025},
  eprint = {2502.09765},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.09765},
}
Figure