On Formalizing Fairness in Prediction with Machine Learning

Pratik Gajane, Mykola Pechenizkiy

Introduction

Discrimination refers to unfavourable treatment of people due to the membership to certain demographic groups that are distinguished by the attributes protected by law (henceforth, protected attributes). Discrimination, based on many attributes and in several domains, is prohibited by international legislation. Nowadays, machine learning algorithms are increasingly being used in high-impact domains such as credit, employment, education, and criminal justice which are prone to discrimination. The goal of fairness in prediction with machine learning is to design algorithms that make fair predictions devoid of discrimination.

The aim of this article is to survey how fairness is formalized in the machine learning literature and present these formalizations with their corresponding notions from the social sciences literature. The fairness formalizations in the machine learning literature correspond to the notions of distributive justice from the social sciences literature, as we discuss in Section 2. Since, some formalizations of fairness can be conflicting with others, the predictions produced by the algorithms using them would vastly differ as well. Therefore, from the practical point of view, it is important to study how fairness is formalized in the machine learning literature and the implications of various formalizations. To this end, we present theoretical as well as empirical critiques of their corresponding notions from the social sciences literature. The co-presentation is with the intention to assist in determining the suitability of the existing formalizations of fairness in machine learning literature and building newer formalizations of fairness. In Section 3, we nominate two notions from the social sciences literature which answer some of the critiques of the existing formalizations in the machine learning literature. Lastly, in Section 4, we discuss avenues for prospective fairness formalizations. We begin by formulating the problem of prediction with machine learning.

Mathematical formulation of prediction with machine learning: Let XX, AA and ZZ represent a set of individuals i.e. a population, protected attributes and remaining attributes respectively. Each of the individuals can be assigned an outcome from a finite set YY. Some of the prediction outcomes are considered to be more beneficial or desirable than others. For an individual xi∈Xx_{i}\in X, let yiy_{i} be the true outcome (or label) to be predicted. A (possibly randomized) predictor can be represented by a mapping H:X→Y\mathcal{H}:X\rightarrow Y from population XX to the set of outcomes YY, such that H(xi)\mathcal{H}(x_{i}) is the predicted outcome for individual xix_{i}. A group-conditional predictor consists of a set of mappings, one for each group of the population, H={HS} for all S⊂X.\mathcal{H}=\{\mathcal{H}_{S}\}\textnormal{ for all }S\subset X. For the sake of simplicity, assume that the groups induce a partition of the population.

What is fair? (Formalizations of fairness in prediction with machine learning)

The first step in formalizing fairness in prediction with machine learning is to answer the following two questions: Table 1: The surveyed formalizations of fairness Parity Preference Treatment Unawareness Preferred treatment Counterfactual measures Group fairness Impact Individual fairness Preferred impact Equality of opportunity

Parity or preference? : whether fairness means achieving parity or satisfying the preferences.

Treatment or impact? : whether fairness is to be maintained in treatment or impact (results).

Next, we will see the existing formalizations of fairness in the machine learning literature. Table 2 summarizes how they answer the questions presented above.

Any predictor which is not group-conditional satisfies this measure. Formally, it is defined as follows:

(fairness through unawareness) A predictor is said to achieve fairness through unawareness if protected attributes are not explicitly used in the prediction process.

A number of proposed predictors in the machine learning literature satisfy this measure (16; 30), while some don’t (8; 22; 26). However, satisfying fairness through unawareness is not a sufficient condition to avoid discrimination when other background knowledge is available (34). Furthermore, some of the assumptions made during the construction of a predictor might not hold in real-life scenarios (9) which leads to discrimination even while satisfying this measure.

From the point of view of distributive justice, fairness through unawareness corresponds to the approach of being “blind” to counter discrimination. However, various discriminatory practices have been documented following race-blind approach in education, housing, credit, criminal justice system (7; 45). It has shown that, in the long run, race-blind approach is less efficient than race-conscious approach (18). Alternatively, some studies show that a blind approach can work for some specific tasks (21).

The above critiques challenge the suitability of fairness through unawareness to domains in which, protected attributes can be deduced from easily available non-protected attributes and structural barriers, which hinder the protected groups, are shown to be present by credible surveys.

2 Counterfactual measures

These measures model fairness through tools from causal interference. Kusner et al. (28) recently introduced one such measure which can be defined as follows:

In the above definition, HA=a\mathcal{H}_{A=a} is to be interpreted as the outcome of the predictor H\mathcal{H} if AA had taken value aa. For the mathematical details of how such a statement is realized, refer to Kusner et al. (28). This measure deems a predictor to be fair if its output remains the same when the protected attribute is flipped to its counterfactual value. This measure compares every individual with a different version of themselves. A similar measure was introduced independently by Kilbertus et al. (27).

In the literature of social sciences, the closest correspondent to these measures is the theory for counterfactual reasoning given by Lewis (29). There has been research to indicate that counterfactual reasoning is susceptible to hindsight bias (35; 39) and outcome bias (i.e. evaluating the quality of a decision when its outcome is already known) (5). Moreover, it has been argued that counterfactual reasoning may negatively influence the process of identifying causality (40; 10).

These critiques bring into question the suitability of counterfactual measures for potential domains for prediction using machine learning like health-care system or judicial system where the above-mentioned biases are frequently observed.

3 Group fairness (Statistical/demographic parity)

Group fairness imposes the condition that the predictor should predict a particular outcome for individuals across groups with almost equal probability.

From the above definition it is clear that, group fairness imposes the condition of statistical and demographic parity on the predictor. Unlike some of the other formalizations of fairness, group fairness is independent of the “ground truth” i.e. the label information. This is useful when reliable ground truth information is not available e.g. in domains like employment, housing, credit and criminal justice, discrimination against protected groups has been well-documented (32; 46). Alternatively, in the cases where disproportionality in the respective outcomes can be justified by using non-protected attributes (which don’t merely serve as a proxy for protected attributes), imposing statistical parity leads to incorrect outcomes and may amount to discrimination against qualified candidates (30). Another deficiency of group fairness is that the predictor is not stipulated to select the most “qualified” individuals within the groups as long as it maintains statistical parity (16).

The formalization of group fairness follows from the notion of collectivist egalitarianism for distributive justice. In practice, the biggest (in terms of the number of people affected) implementation of group fairness is the application of affirmative action (12) in India and USA to address discrimination on the basis of caste (15), race and gender. See Weisskopf (47) for arguments made for and against affirmative action polices in both India and the USA. Two of the standard objections to group fairness are: it is not meritocratic and it reduces efficiency.

The underlying assumption behind the first claim is that the allocation of social benefits without affirmative action is meritocratic. However, several studies (13; 6; 33) have confirmed discrimination on the basis of protected attributes. For the second claim, Holzer and Neumark (24) conclude on the basis of several studies that “the empirical case against Affirmative Action on the grounds of efficiency is weak at best”. In India, a study by Deshpande and Weisskopf (14) found no evidence of loss in efficiency because of affirmative action policies. Nonetheless, deficiencies mentioned earlier limit the applicability of group fairness.

4 Individual fairness

Individual fairness ascertains that a predictor is fair if it produces similar outputs for similar individuals.

Several works including Dwork et al. (16) and Luong et al. (30) use this notion of fairness. The notion of individual fairness can be then captured by (D,d)(D,d)-Lipschitz property which states that D(H(xi)Y,H(xj)Y)≤d(xi,xj)D(\mathcal{H}(x_{i})_{Y},\mathcal{H}(x_{j})_{Y})\leq d(x_{i},x_{j}) where DD is a distance measure for distributions. Furthermore, Dwork et al. (16) prove that if a predictor satisfies (D,d)(D,d)-Lipschitz property, then it also achieves statistical parity with certain bias.

In the social sciences literature, this formalization is equivalent to individualism egalitarianism. According to Sacksteder (41), this is the formal principle of justice. This notion delegates the responsibility of ensuring fairness from the predictor to the distance metric. If the distance metric uses the protected attributes directly or indirectly to compute the distance between two individuals, a predictor satisfying Definition 4 could still be discriminatory. Therefore, the potency of this notion of fairness to prevent discrimination depends largely upon the distance metric used. Hence, individual fairness as stated above, can not be considered suitable for domains where reliable and non-discriminating distance metric is not available Dwork et al. (16) have provided some approaches to build distance metrics..

5 Equality of opportunity

In the literature of machine learning, the formalization of equality of opportunity was introduced by Hardt et al. (22). An equivalent formalization was also proposed concurrently and independently by Zafar et al. (49). To formalize it, let us consider the case of binary outcomes with a single beneficial outcome y=1y=1.

It can be considered as a stipulation which states that the true positive rate should be the same for all the groups. An equivalent notion proposed by Zafar et al. (49), called disparate mistreatment, asks for the equivalence of misclassification rates across the groups.

In the social sciences literature, the corresponding notion was presented by Rawls (38). An essay by Arneson (3) states that equality of opportunity would not be able to cope with the problems of stunted ambition and selection by bigotry. The notion of equality of opportunity has also been criticized for not considering the effect of discrimination due to protected attributes like gender (31) and race (44). It has been shown that the protected attributes like race and gender affect one’s access to opportunities in domains such as education, business, politics in many parts of the world (25). The exclusion of attributes like race and gender from the list of attributes deemed to be affecting an individual’s life prospects in the notion of equality of opportunity thus calls into question its suitability to the domains in which there exists vast evidence that such attributes do indeed affect one’s prospects.

6 Preference-based fairness

Zafar et al. (48) introduce two preference-based formalizations of fairness. In order to provide the definitions for the same, the authors first introduce the notion of group benefit which is defined as the expected proportion of individuals in the group for whom the predictor predicts the beneficial outcome. Group benefit can also be defined as the expected proportion of individuals from the group who receive the beneficial output for whom the true label is the same. Based on the above notion of group benefit, Zafar et al. (48) provide following two fairness formalizations.

If a classifier is not group-conditional then, it by default satisfies preferred treatment. In certain applications, there might not be a single universally accepted beneficial outcome. It is possible that a few individuals from a group may prefer another outcome than the one preferred by the majority of the group. In order to alleviate their concerns, the collectivist definition of group benefit needs to be extended to account for individual preferences.

In the social sciences literature, the above notion corresponds to envy-freeness (4). This notion of fairness is attractive because it can be defined in terms of ordinal preference relations of the utility values of the predictors. On the other hand, Holcombe (23) show that freedom from envy is neither necessary nor sufficient for fairness. For many real-world problems, one needs to find fair and efficient solutions amongst the groups. An efficient solution ensures the greatest possible benefit to the groups. In decision making problems, like the domain applications of prediction with machine learning, it can be formally expressed by the notion of Pareto-efficiency. However, deciding whether there is a Pareto-efficient envy-free allocation is computationally very hard even with simple additive preferences (11).

These critiques indicate that the suitability of such envy-free formalizations is limited only to the domains where such an effective and envy-free allocation can be computed easily.

Prospective notions of fairness

In this section, we describe two prospective notions of fairness which have not been considered in the literature of machine learning so far. Our intent is to address the critique that many of the past formalizations, as seen in Section 2, do not offset for the fact that social benefits are being allocated unequally by the algorithms among the people owing to the attributes they had no say in.

Equality of resources: Dworkin (17) propose the notion of equality of resources in which unequal distribution of social benefits is only considered fair when it results from the intentional decisions and actions of the concerned individuals. Equality of resources is ambition-sensitive i.e. each individual’s ambitions and choices that follow them ascertains the benefits they receive and endowment-insensitive i.e. each individual’s unchosen circumstances including the natural endowments should be offset. In the second property, equality of resources differs from equality of opportunity as the latter considers differences in natural endowments (including the protected attributes such as sex) as facts of nature which need not be adjusted to achieve fairness.

Equality of capability of functioning: Sen (43) extends the insight that people should not be held responsible for attributes they had no say in to include personal attributes which cause difficulty in developing functionings. Functionings are states of “being and doing”, that is, various states of existence and activities that an individual can undertake. Sen (42, 43) argue that variations related to the protected attributes like age, sex, gender, race, caste give individuals unequal powers to achieve goals even when they have the same opportunities. In order to equalize capabilities, people should be compensated for their unequal powers to convert opportunities into functionings. To this point, it sounds similar to quality of resources described above. Crucially however, the notion of equality of capability calls for addressing inequalities due to social endowments (e.g. gender) as well as natural endowments (e.g. sex) , in contrast to the equality of resources (36).

One of the main strengths of this notion of fairness that it is flexible which allows it to be developed and applied in many different ways (2). Indeed, this notion has been used in the foundations of human development paradigm by the United Nations (19; 20). One of the major criticism of Equality of capability theory concerns the failure to identify of valuable capabilities (37). Another criticism is that the informational requirement of this approach can be very high (2). The second criticism applies to equality of resources as well and it makes exact mathematical formalizations of these notions a potentially difficult problem. However, the suitability of these prospective formalizations (unlike the current formalizations) to domains in which natural endowments or social endowments or both impede an individual’s prospect to receive social benefits makes the open problem of formalizing them worthwhile. We intend this article to serve as a call for machine learning experts to work on formalizing them.

Discussion and further directions

As the field of fairness in machine learning prediction algorithms is evolving rapidly, it is important for us to analyze the fairness formalizations considered so far. To this end, we juxtaposed the fairness notions previously considered in the machine learning literature with their corresponding theories of distributive justice in the social sciences literature. We saw the theoretical critique and analysis of these fairness notions from the social sciences literature. Such critiques of the formalizations and experimental studies of their use in large-scale practice serve as guiding principles while choosing the fairness formalizations to use in particular domains.

We also proposed two prospective notions of fairness, which have been studied extensively in the social sciences literature. Of course, we do not claim that these notions will serve as panacea for all the critiques of the current notions. Our intention is to initiate a discussion about fairness formalizations in prediction with machine learning which recognize that - the problem of fair prediction cannot be addressed without considering social issues such as unequal access to resources and social conditioning. While these factors are difficult to quantify and formalize mathematically, it is important to acknowledge their impact and attempt to incorporate them in fairness formalizations.

References