An example of prediction which complies with Demographic Parity and equalizes group-wise risks in the context of regression

Evgenii Chzhen, Nicolas SchreuderarXiv 2020

Abstract

Let $(X, S, Y) \in \mathbb{R}^p \times \{1, 2\} \times \mathbb{R}$ be a triplet following some joint distribution $\mathbb{P}$ with feature vector $X$, sensitive attribute $S$, and target variable $Y$. The Bayes optimal prediction $f^*$ which does not produce Disparate Treatment is defined as $f^*(x) = \mathbb{E}[Y | X = x]$. We provide a non-trivial example of a prediction $x \to f(x)$ which satisfies two common group-fairness notions: Demographic Parity $(f(X) | S = 1) \stackrel{d}{=} (f(X) | S = 2)$ and Equal Group-Wise Risks $\mathbb{E}[(f^*(X) - f(X))^2 | S = 1] = \mathbb{E}[(f^*(X) - f(X))^2 | S = 2]$. To the best of our knowledge this is the first explicit construction of a non-constant predictor satisfying the above. We discuss several implications of this result on better understanding of mathematical notions of algorithmic fairness.

Introduction

In algorithmic fairness, a central debate exists between "Fairness through Awareness" (using sensitive attributes like gender or race to build group-specific models) and "Fairness through Unawareness" (forbidding the use of sensitive attributes in the model's functional form). While much research has focused on binary classification, regression—predicting continuous values—presents unique challenges. Specifically, it was previously unclear if a non-constant regression model could satisfy Demographic Parity (DP) without directly accessing the sensitive attribute $S$.

This paper addresses this gap by providing the first explicit mathematical construction of a predictor $f(X)$ that ignores $S$ yet results in group-blind outcomes and equal error rates across groups.

Methodology

The authors utilize tools from measure theory and optimal transport to construct their solution. The process involves three primary steps:

  1. Jordan Decomposition: The authors analyze the difference between the feature distributions of two groups ($\mu_{X|1} - \mu_{X|2}$). This decomposition identifies regions in the feature space where one group is more densely represented than the other.
  2. The Bayes Optimal Predictor ($f^*$): The construction begins with the standard, most accurate model that ignores the sensitive attribute.
  3. The $f_Q$ Family of Functions: A new family of functions is defined to "warp" the Bayes optimal prediction. If a data point $x$ falls into a region where Group 1 is more likely, the model applies a specific transformation; if it falls where Group 2 is more likely, it applies a different one.
Densities and Jordan decomposition

To equalize the risks (errors) between groups, the authors identify a specific transformation $Q^*$ derived from Wasserstein Barycenters. This approach finds a "middle ground" distribution that minimizes the distance to both groups' original distributions, ensuring Equality of Group-Wise Risks (EGWR).

Key Insights and the Fairness Paradox

The most significant insight is the proof of existence: it is indeed possible to achieve DP in regression without resorting to constant predictions or disparate treatment. However, the mechanism reveals a deep tension. The model achieves group fairness by implicitly "guessing" an individual's sensitive group based on feature prevalence.

This leads to what the authors describe as a Fairness Paradox. By forcing group-level parity without allowing the model to see the sensitive attribute, the model is forced to discriminate against individuals who "look like" they belong to the other group. For instance, a minority group member with features typical of the majority might receive a prediction unfairly adjusted to satisfy global parity constraints.

Results

The authors successfully defined a family of non-constant predictors that satisfy DP while avoiding Disparate Treatment. Specifically, the predictor $f_{Q^*}$ satisfies both DP and EGWR, meaning the average squared error is identical for both groups.

Comparison between the Bayes optimal predictor $f^*$ and the fair predictor $f_{Q^*}$

As illustrated in the Gaussian examples, the fair predictor $f_{Q^*}$ (solid black line) acts as a piece-wise translation of the standard Bayes decision rule $f^*$ (dashed line). It effectively boosts predictions for features associated with one group and lowers them for the other to balance the resulting distributions (shown in the pushforward measures on the right axis).

Conclusion and Limitations

While this work provides a landmark theoretical construction, it concludes with a warning. Prohibiting a model from seeing $S$ forces it to make errors at the individual level to satisfy aggregate statistics. The authors suggest that "Disparate Treatment"—using $S$ to make more informed, group-specific decisions—might actually be more just than the "unawareness" approach.

Future work remains to determine which fair function is risk-optimal (lowest total risk) and how to extend this framework to multiple or continuous sensitive attributes. Additionally, real-world applications will require robust methods for estimating feature distributions from finite data samples.

Summary updated

BibTeX
@misc{chzhen2020example,
  author = {Evgenii Chzhen and Nicolas Schreuder},
  title = {{An example of prediction which complies with Demographic Parity and equalizes group-wise risks in the context of regression}},
  year = {2020},
  eprint = {2011.07158},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2011.07158},
}
Figure