Abstract
Standard algorithmic fairness metrics often ignore contextual factors that can justify outcome disparities. This paper introduces Conditional Fairness (CF), a framework that accounts for "fair variables"—legitimate covariates that explain differences in outcomes. We present the Derivable Conditional Fairness Regularizer (DCFR), an adversarial representation learning approach that enforces conditional independence between sensitive attributes and model representations. DCFR is differentiable and scales effectively to high-cardinality fair variables. Our evaluation on benchmark datasets shows that DCFR provides a superior Pareto front for the fairness-utility trade-off compared to existing methods.
Introduction
Most algorithmic fairness metrics, such as Demographic Parity, are "blind" to context. They demand that a model's decisions be independent of sensitive attributes like race or gender, regardless of other factors. However, in many real-world scenarios, certain disparities are considered "fair" if they result from legitimate choices or covariates.
For instance, in the classic Berkeley admission case, men had higher overall admission rates, but women often had higher rates within individual departments. The disparity arose because women applied to more competitive departments. In this context, "department choice" is a fair variable. Traditional metrics would flag such a system as unfair, while causality-based methods often require complex, unscalable causal graphs. This paper proposes a middle ground: a scalable, gradient-based method to ensure decisions are independent of sensitive attributes only after accounting for legitimate fair variables.
Methodology: Derivable Conditional Fairness Regularizer
The authors propose a representation learning framework that strips away "unfair" information while retaining "fair" information. Instead of feeding raw data directly into a predictor, the model learns a latent representation $Z$ from original features $(S, X = (F, O))$, where $S$ is the sensitive attribute and $F$ represents the fair variables.
The core contribution is the Derivable Conditional Fairness Regularizer (DCFR), which implements conditional independence ($Z \perp S | F$) through an adversarial minimax game. An encoder network creates the representation $Z$, while an adversary attempts to predict $S$ from $Z$ and $F$. To overcome the challenge of non-differentiable independence tests, the authors utilize Daudin's theorem to transform the constraint into a weighted loss function. They also employ an L2 surrogate loss to prevent vanishing gradients, providing a reliable upper bound for the fairness objective.
Experimental Evaluation
The model was evaluated on three standard fairness benchmarks: the Adult Dataset (predicting income), the Dutch Census (predicting prestigious occupation), and COMPAS (predicting recidivism).
Key findings include:
- Scalability: DCFR remains stable and effective even when fair variables have high cardinality (e.g., "Occupation" with 14 categories), whereas previous methods struggle.
- Fairness-Utility Trade-off: By adjusting a single hyperparameter ($\lambda$), engineers can precisely control the balance between model accuracy and conditional fairness.
- Generalization: Conditional Fairness is shown to be a generalization of other metrics. Setting the set of fair variables to empty yields Demographic Parity, while setting it to the ground-truth outcome yields Equalized Odds.
Conclusion
DCFR offers a robust, scalable solution for implementing conditional fairness in deep learning models. By allowing for the inclusion of "fair variables," it provides a more nuanced approach to algorithmic equity than context-blind metrics. While the choice of which variables are deemed "fair" remains a policy decision, DCFR provides the technical machinery to enforce those decisions effectively across complex datasets.
Summary updated