# Difference between revisions of "Fairness Without Demographics in Repeated Loss Minimization"

This page contains the summary of the paper "Fairness Without Demographics in Repeated Loss Minimization" by Hashimoto, T. B., Srivastava, M., Namkoong, H., & Liang, P. which was published at the International Conference of Machine Learning (ICML) in 2018.

# Introduction

Usually, machine learning models are minimized in their average loss to achieve high overall accuracy. While this works well for the majority, minority groups that use the system suffer high error rates because they contribute fewer data to the model. For example, non-native speakers may contribute less to the speech recognizer machine learning model. This phenomenon is known as representation disparity and has been observed in many models that, for instance, recognize faces, or identify the language. This disparity further widens for minority users who suffer higher error rates, as they will lower usage of the system in the future. As a result, minority groups provide even less data for future optimization of the model. When unbalanced group risk gets worse over time this is referred to as disparity amplification.

In this paper, Hashimoto et al. provide a strategy for controlling the worst case risk amongst all groups. They first show that standard empirical risk minimization (ERM) does not control the loss of minority groups, and thus causes representation disparity . This representation disparity is further amplified over time (even if the model is fair in the beginning). Second, the researchers try to mitigate this unfairness by proposing the use of distributionally robust optimization (DRO). Indeed, Hashimoto et al. are able to show that DRO can bound the loss for minority groups at every step of time, and is fair for models that ERM turns unfair by applying it to Amazon Mechanical Turk task.

### Note on Fairness

Hashimoto et al. follow the difference principle to achieve and measure fairness. It is defined as the maximization of the welfare of the worst-off group, rather than the whole group (cf. utilitarianism).

### Related Works

The recent advancements on the topic of fairness in Machine learning can be classified into the following approaches:

1. Rawls Difference principle (Rawls, 2001, p155) - Defines that maximizing the welfare of the worst-off group is fair and stable over time, which increases the chance that minorities will consent to status-quo. The current work builds on this as it sees predictive accuracy as a resource to be allocated.

2. Labels of minorities present in the data:

• Chouldechova, 2017: Use of race (a protected label) in recidivism protection. This study evaluated the likelihood for a criminal defendant to reoffend at a later time, which assisted with criminal justice decision-making. However, a risk assessment instrument called COMPAS was studied and discovered to be biased against black defendants. As the consequences for misclassification can be dire, fairness regarding using race as a label was studied.
• Barocas & Selbst, 2016: Guaranteeing fairness for a protected label through constraints such as equalized odds, disparate impact, and calibration.

In the case specific to this paper, this information is not present.

Although this approach has shown to help alleviate the demographic bias, having one or more dedicated features to categorize the population is indeed a challenging task difficult to maintain mainly due to privacy concerns. Especially considering that as time goes on data is expected to become less reliant on what some people call private life features such as gender, political opinions, race, among others.

3. Fairness when minority grouping are not present explicitly

• Dwork et al., 2012 used Individual notions of fairness using fixed similarity function whereas Kearns et al., 2018; Hebert-Johnson et al., 2017 used subgroups of a set of protected labels.
• Rawlsian Fairness for Machine Learning, Matthew Joseph, Michael Kearns, Jamie Morgenstern, Seth Neel †Aaron Roth November 1, 2016
• Kearns et al. (2018); Hebert-Johnson et al. (2017) consider subgroups of a set of protected features.

Again for the specific case in this paper, this is not possible.

4. Online settings

• Joseph et al., 2016; Jabbari et al., 2017 looked at fairness in bandit learning using algorithms compatible with Rawls’ principle on equality of opportunity.
• Liu et al. (2018) analyzed fairness temporally in the context of constraint-based fairness criteria. It showed that fairness is not ensured over time when static fairness constraints are enforced.

# Representation Disparity

If a user makes a query $Z \sim P$, a model $\theta \in \Theta$ makes a prediction, and the user experiences loss $\ell (\theta; Z)$.

The expected loss of a model $\theta$ is denoted as the risk $\mathcal{R}(\theta) = \mathbb{E}_{Z \sim P} [\ell (\theta; Z)]$.

If input queries are made by users from $K$ latent groups, then the distribution over all queries can be re-written as $Z \sim P := \sum_{k \in [K]} \alpha_kP_k$, where $\alpha_k$ is the population portion of group $k$ and $P_k$ is its individual distribution, and we assume these two variables are unknown.

The risk associated with group $k$ can be written as, $\mathcal{R}_k(\theta) := \mathbb{E}_{P_k} [\ell (\theta; Z)]$.

The worst-case risk over all groups can then be defined as, \begin{align} \mathcal{R}_{max}(\theta) := \underset{k \in [K]}{\text{max}}\ \mathcal{R}_k(\theta). \end{align}

Minimizing this function is equivalent to minimizing the risk for the worst-off group.

There is high representation disparity if the expected loss of the model $\mathcal{R}(\theta)$ is low, but the worst-case risk $\mathcal{R}_{max}(\theta)$ is high. A model with high representation disparity performs well on average (i.e. has low overall loss), but fails to represent some groups $k$ (i.e. the risk for the worst-off group is high).

Often, groups are latent and $k, P_k$ are unknown and the worst-case risks are inaccessible. The technique proposed by Hashimoto et al does not require direct access to these.

# Disparity Amplification

Representation disparity can amplify as time passes and loss is minimized. Over $t = 1, 2, ..., T$ minimization rounds, the group proportions $\alpha_k^{(t)}$ are not constant, but vary depending on past losses.

At each round the expected number of users $\lambda_k^{(t+1)}$ from group $k$ is determined by \begin{align} \lambda_k^{(t+1)} := \lambda_k^{(t)} \nu(\mathcal{R}_k(\theta^{(t)})) + b_k \end{align}

where $\lambda_k^{(t)} \nu(\mathcal{R}_k(\theta^{(t)}))$ describes the fraction of retained users from the previous optimization, $\nu(x)$ is a function that decreases as $x$ increases, and $b_k$ is the number of new users of group $k$.

Furthermore, the group proportions $\alpha_k^{(t)}$, dependent on past losses is defined as: \begin{align} \alpha_k^{(t+1)} := \dfrac{\lambda_k^{(t+1)}}{\sum_{k'\in[K]} \lambda_{k'}^{(t+1)}} \end{align}

To put simply, the number of expected users of a group depends on the number of new users of that group and the fraction of users that continue to use the system from the previous optimization step. If fewer users from minority groups return to the model (i.e. the model has a low retention rate of minority group users), Hashimoto et al. argue that the representation disparity amplifies. The decrease in user retention for the minority group is exacerbated over time since once a group shrinks sufficiently, it receives higher losses relative to others, leading to even fewer samples from the group.

## Empirical Risk Minimization (ERM)

Without the knowledge of population proportions $\alpha_k^{(t)}$, the new user rate $b_k$, and the retention function $\nu$ it is hard to control the worst-case risk over all time periods $\mathcal{R}_{max}^T$. That is why it is the standard approach to fit a sequence of models $\theta^{(t)}$ by empirically approximating them. Using ERM, for instance, the optimal model is approached by minimizing the loss of the model:

\begin{align} \theta^{(t)} = arg min_{\theta \in \Theta} \sum_i \ell(\theta; Z_i^{(t)}) \end{align}

However, ERM fails to prevent disparity amplification. By minimizing the expected loss of the model, minority groups experience higher loss (because the loss of the majority group is minimized), and do not return to use the system. In doing so, the population proportions $\alpha_k^{(t)}$ shift, and certain minority groups contribute even less to the system. This is mirrored in the expected user count $\lambda^{(t)}$ at each optimization point. In their paper Hashimoto et al. show that, if using ERM, $\lambda^{(t)}$ is unstable because it loses its fair fixed point (i.e. the population fraction where risk minimization maintains the same population fraction over time). Therefore, ERM fails to control minority risk over time and is considered unfair.

# Distributionally Robust Optimization (DRO)

To overcome the unfairness of ERM, Hashimoto et al. developed a distributionally robust optimization (DRO). At this point the goal is still to minimize the worst-case group risk over a single time-step $\mathcal{R}_{max} (\theta^{(t)})$ (time steps are omitted in this section's formulas). As previously mentioned, this is difficult to do because neither the population proportions $\alpha_k$ nor group distributions $P_k$ are known, which means the data was sampled from different unknown groups. Therefore, in order to improve the performance across different groups, Hashimoto et al. developed an optimization technique that is robust "against all directions around the data generating distribution". This refers to the notion that DRO is robust to any group distribution $P_k$ whose loss other optimization techniques such as ERM might try to optimize. To create this distributionally robustness, the optimizations risk function $\mathcal{R}_{dro}$ has to "up-weigh" data $Z$ that cause high loss $\ell(\theta, Z)$. In other words, the risk function has to over-represent mixture components (i.e. group distributions $P_k$) in relation to their original mixture weights (i.e. the population proportions $\alpha_k$) for groups that suffer high loss.

To do this Hashimoto et al. considered the worst-case loss (i.e. the highest risk) over all perturbations $P_k$ around $P$ within a certain limit (because obviously not every outlier should be up-weighed). This limit is described by the $\chi^2$-divergence (i.e. the distance, roughly speaking) between probability distributions. For two distributions $P$ and $Q$ the divergence is defined as $D_{\chi^2} (P || Q):= \int (\frac{dP}{dQ} - 1)^2$. If $P$ is not absolutely continuous w.r.t $Q$, then $D_{\chi^2} (P || Q):= \infty$. With the help of the $\chi^2$-divergence, Hashimoto et al. defined the chi-squared ball $\mathcal{B}(P,r)$ around the probability distribution P. This ball is defined so that $\mathcal{B}(P,r) := \{Q \ll P : D_{\chi^2} (Q || P) \leq r \}$. With the help of this ball the worst-case loss (i.e. the highest risk) over all perturbations $P_k$ that lie inside the ball (i.e. within reasonable range) around the probability distribution $P$ can be considered. This loss is given by

\begin{align} \mathcal{R}_{dro}(\theta, r) := \underset{Q \in \mathcal{B}(P,r)}{sup} \mathbb{E}_Q [\ell(\theta;Z)] \end{align}

which for $P:= \sum_{k \in [K]} \alpha_k P_k$ for all models $\theta \in \Theta$ where $r_k := (1/a_k -1)^2$ bounds the risk $\mathcal{R}_k(\theta) \leq \mathcal{R}_{dro} (\theta; r_k)$ for each group with risk $\mathcal{R}_k(\theta)$. Furthermore, if the lower bound on the group proportions $\alpha_{min} \leq min_{k \in [K]} \alpha_k$ is specified, and the radius is defined as $r_{max} := (1/\alpha_{min} -1)^2$, the worst-case risk $\mathcal{R}_{max} (\theta)$ can be controlled by $\mathcal{R}_{dro} (\theta; r_{max})$ by forming an upper bound that can be minimized.

## Optimization of DRO

To minimize $\mathcal{R}_{dro}(\theta, r) := \underset{Q \in \mathcal{B}(P,r)}{sup} \mathbb{E}_Q [\ell(\theta;Z)]$ Hashimoto et al. look at the dual of this maximization problem (i.e. every maximization problem can be transformed into a minimization problem and vice-versa). This dual is given by the minimization problem

\begin{align} \mathcal{R}_{dro}(\theta, r) = \underset{\eta \in \mathbb{R}}{inf} \left\{ F(\theta; \eta):= C\left(\mathbb{E}_P \left[ [\ell(\theta;Z) - \eta]_+^2 \right] \right)^\frac{1}{2} + \eta \right\} \end{align}

with $C = (2(1/a_{min} - 1)^2 + 1)^{1/2}$. $\eta$ describes the dual variable (i.e. the variable that appears in creating the dual). Since $F(\theta; \eta)$ involves an expectation $\mathbb{E}_P$ over the data generating distribution $P$, $F(\theta; \eta)$ can be directly minimized. For convex losses $\ell(\theta;Z)$, $F(\theta; \eta)$ is convex, and can be minimized by performing a binary search over $\eta$. In their paper, Hashimoto et al. further show that optimizing $\mathcal{R}_{dro}(\theta, r_{max})$ at each time step controls the future worst-case risk $\mathcal{R}_{max} (\theta)$, and therefore retention rates. That means if the initial group proportions satisfy $\alpha_k^{(0)} \geq a_{min}$, and $\mathcal{R}_{dro}(\theta, r_{max})$ is optimized for every time step (and therefore $\mathcal{R}_{max} (\theta)$ is minimized), $\mathcal{R}_{max}^T (\theta)$ over all time steps is controlled. In other words, optimizing $\mathcal{R}_{dro}(\theta, r_{max})$ every time step is enough to avoid disparity amplification.

Pros of DRO: In many cases, the expected value is a good measure of performance Cons of DRO: One has to know the exact distribution of the underlying distribution to perform the stochastic optimization. Deviant from the assumed distribution may result in sub-optimal solutions. The paper makes strong assumptions on $\mathcal{P}$ with respect to group allocations, and thus requires a high amount of data to optimize; when assumptions are violated, the algorithm fails to perform as intended.

# Experiments

The paper demonstrate the effectiveness of DRO and human evaluation of a text autocomplete system on Amazon Mechanical Turk. In both cases, DRO controls the worst-case risk over time steps and improves minority retention. Below Figure gives Inferred dynamics from a Mechanical Turk based evaluation of autocomplete systems.DRO increases minority (a) user satisfaction and (b) retention, leading to a corresponding increase in (c) user count. Error bars indicates bootstrap quartiles.

.

Below figure shows how Disparity amplification in corrected by DRO. Error bars indicate quartiles over 10 replicates.

.

Below figure shows Classifier accuracy as a function of group imbalance.Dotted lines show accuracy on majority group.

.

It is a surprising result that the minority group has higher satisfaction and retention under DRO. Analysis of long-form comments from Turkers attribute this phenomenon to to users valuing the model’s ability to complete slang more highly than completion of common words, and indicates a slight mismatch between the authors' training loss and human satisfaction with an autocomplete system.

# Critiques

This paper works on representational disparity which is a critical problem to contribute to. The methods are well developed and the paper reads coherently. However, the authors have several limiting assumptions that are not very intuitive or scientifically suggestive. The first assumption is that the $\eta$ function denoting the fraction of users retained is differentiable and strictly decreasing function. This assumption does not seem practical. The second assumption is that the learned parameters are having a Poisson distribution. There is no explanation of such an assumption and reasons hinted at are hand-wavy at best. Though the authors are building a case against the Empirical risk minimization method, this method is exactly solvable when the data is linearly separable. The DRO method is computationally more complex than ERM and is not entirely clear if it will always have an advantage for a different class of problems.

Note: The first assumption about $\eta$ can be weakened by introducing discrete yet smooth enough function for computational proposes only. Such function will be enough to mimic for differentiability.

# Other Sources

1. [1] is a easy-to-read paper description.
2. [2] a video of the authors explaining the paper in ICML 2018

# References

Rawls, J. Justice as fairness: a restatement. Harvard University Press, 2001.

Barocas, S. and Selbst, A. D. Big data’s disparate impact. 104 California Law Review, 3:671–732, 2016.

Chouldechova, A. A study of bias in recidivism prediction instruments. Big Data, pp. 153–163, 2017

Dwork, C., Hardt, M., Pitassi, T., Reingold, O., and Zemel, R. Fairness through awareness. In Innovations in Theoretical Computer Science (ITCS), pp. 214–226, 2012.

Kearns, M., Neel, S., Roth, A., and Wu, Z. S. Preventing fairness gerrymandering: Auditing and learning for subgroup fairness. arXiv preprint arXiv:1711.05144, 2018.

Hebert-Johnson, ´ U., Kim, M. P., Reingold, O., and Roth-blum, G. N. Calibration for the (computationally identifiable) masses. arXiv preprint arXiv:1711.08513, 2017.

Joseph, M., Kearns, M., Morgenstern, J., Neel, S., and Roth, A. Rawlsian fairness for machine learning. In FATML, 2016.

Jabbari, S., Joseph, M., Kearns, M., Morgenstern, J., and Roth, A. Fairness in reinforcement learning. In International Conference on Machine Learning (ICML), pp. 1617–1626, 2017.

Liu, L. T., Dean, S., Rolf, E., Simchowitz, M., and Hardt, M. Delayed impact of fair machine learning. arXiv preprint arXiv:1803.04383, 2018.