Fairness Under Composition

Cynthia Dwork, Christina Ilvento

Introduction

As automated decision-making extends its reach ever more deeply into our lives, there is increasing concern that such decisions be fair. The rigorous theoretical study of fairness in algorithmic classification was initiated by Dwork et al in and subsequent works investigating alternative definitions, fair representations, and impossibility results have proliferated in the machine learning, economics and theoretical computer science literatures.See also and , which predate and are motivated by similar concerns. The notions of fairness broadly divide into individual fairness, requiring that individuals who are similar with respect to a given classification task (as measured by a task-specific similarity metric) have similar probability distributions on classification outcomes; and group fairness, which requires that different demographic groups experience the same treatment in some average sense.

In a bit more detail, a classification task is the problem of mapping individuals to outcomes; for example, a decision task may map individuals to outcomes in {0,1}\{0,1\}. A classifier is a possibly randomized algorithm solving a classification task. In this work we initiate the study fairness under composition: what are the fairness properties of systems built from classifiers that are fair in isolation? Under what circumstances can we ensure fairness, and how can we do so? A running example in this work is online advertising. If a set of advertisers compete for the attention of users, say one for tech jobs and one for a grocery delivery service, and each chooses fairly whether to bid (or not), is it the case that the advertising system (including budget handling and tie-breaking) will also be fair?

We identify and examine several types of composition and draw conclusions about auditing systems for fairness, constructing fair systems, and definitions of fairness for systems. In the remainder of this section we summarize our results and discuss related work. A full version of this paper, containing complete proofs of all our results, appears in the Appendix.

(Section 3). We first consider the problem of two or more tasks competing for individuals, motivated by the online advertising setting described above. We prove that two advertisers for different tasks, each behaving fairly (when considered independently), will not necessarily produce fair outcomes when they compete. Intuitively (and empirically observed by ), the attention of individuals similarly qualified for a job may effectively have different costs due to these individuals’ respective desirability for other advertising tasks, like household goods purchases. That is, individuals claimed by the household goods advertiser will not see the jobs ad, regardless of their job qualification. These results are not specific to an auction setting and are robust to choice of “tie-breaking” functions that select among multiple competing tasks (advertisers). Nonetheless, we give a simple mechanism, RandomizeThenClassify\mathsf{RandomizeThenClassify}, that solves the fair task-competitive classification problem using classifiers for the competing tasks each of which is fair in isolation, in a black-box fashion and without modification. In the full paper in Section A.6.4 we give a second technique for modifying the fair classifier of the lower bidder (loser of the tie-breaking function) in order to achieve fairness.

(Section 4). When can we build fair classifiers by computing on values that were fairly obtained? Here we must understand what is the salient outcome of the computation. For example, when reasoning about whether the college admissions system is fair, the salient outcome may be whether a student is accepted to at least one college, and not whether the student is accepted to a specific collegeIn this simple example, we assume that all colleges are equally desirable, but it is not difficult to extend the logic to different sets of comparable colleges.. Even if each college uses a fair classifier, the question is whether the “OR” of the colleges’ decisions is fair. Furthermore, an acceptance to college may not be meaningful without sufficient accompanying financial aid. Thus in practice, we must reason about the OR of ANDs of acceptance and financial aid across many colleges. We show that although in general there are no guarantees on the fairness of functional compositions of fair components, there are some cases where fairness in ORs can be satisfied. Such reasoning can be used in many applications where long-term and short-term measures of fairness must be balanced. In the case of feedback loops, where prior positive outcomes can improve the chances of future positive outcomes, functional composition provides a valuable tool for determining at which point(s) fairness must be maintained and determining whether the existing set of decision procedures will adhere to these requirements.

(Section 5). There are many settings in which each individual’s classifications are dependent on the classifications of others. For example, if a company is interviewing a set of job candidates in a particular order, accepting a candidate near the beginning of the list precludes any subsequent candidates from even being considered. Even if each candidate is considered fairly in isolation, dependence between candidates can result in highly unfair outcomes. For example, individuals who are socially connected to the company through friends or family are likely to hear about job openings first and thus be considered for a position before candidates without connections. We show that selecting a cohort of people – online or offline – requires care to prevent dependencies from impacting an independently fair selection mechanism. We address this in the offline case with two randomized constructions, PermuteThenClassify\mathsf{PermuteThenClassify} and WeightedSampling\mathsf{WeightedSampling}. These algorithms can be applied in the online case, even under adversarial ordering, provided the size of the universe of individuals is known; when this is not known there is no solution.

(Section 6). Many fairness definitions in the literature seek to provide fairness guarantees based on group-level statistical properties. For example, Equal Opportunity requires that, conditioned on qualification, the probability of a positive outcome is independent of protected attributes such as race or gender. Group Fairness definitions have practical appeal in that they are possible to measure and enforce empirically without reference to a task-specific similarity metric. We extend our results to group fairness definitions and we also show that these definitions do not always yield consistent signals under composition. In particular, we show that the intersectional subgroup concerns (which motivate ) are exacerbated by composition. For example, an employer who uses group fairness definitions to ensure parity with respect to race and gender may fail to identify that “parents” of particular race and gender combinations are not treated fairly. Task-competitive composition exacerbates this problem, as the employers may be prohibited from even collecting parental status information, but their hiring processes may be composed with other systems which legitimately differentiate based on parental status.

Finally, we also show how naïve strategies to mitigate these issues in composition may result in learning a nominally fair solution that is clearly discriminating against a socially meaningful subgroup not officially called out as “protected,” from which we conclude that understanding the behavior of fairness definitions under composition is critical for choosing which definition is meaningful in a given setting.

Our composition results have several practical implications. First, testing individual components without understanding of the whole system will be insufficient to safely draw either positive or negative conclusions about the fairness of the system. Second, composition properties are an important point of evaluation for any definitions of fairness or fairness requirements imposed by law or otherwise. Failing to take composition into account when specifying a group-based fairness definition may result in a meaningless signal under composition, or worse may lead to ingraining poor outcomes for certain subgroups while still nominally satisfying fairness requirements. Third, understanding of the salient outcomes on which to measure and enforce fairness is critical to building meaningfully fair systems. Finally, we conclude that there is significant potential for improvement in the mechanisms proposed for fair composition and many settings in which new mechanisms could be proposed.

1 Related Work

Fairness retained under post-processing in the single-task one-shot setting is central in . The definition of individual fairness we build upon in this work was introduced by Dwork et al in . Learning with oracle access to the fairness metric is considered by . A number of group-based fairness definitions have been proposed, and Ritov et al provide a combined discussion of the parity-based definitions in . In particular, their work includes discussion of Hardt et al’s Equality of Opportunity and Equal Odds definitions and Kilbertus et al’s Counterfactual Fairness . Kleinberg et al and Chouldechova independently described several impossibility results related to simultaneously satisfying multiple group fairness conditions in single classification settings ,.

Two concurrent lines of work aiming to bridge the gap between individual and group consider ensuring fairness properties for large numbers of large groups and their (sufficiently large) intersections . While these works consider the one-shot, single-task setting, we will see that group intersection properties are of particular importance under composition. Two subsequent works in this general vein explore approximating individual fairness with the help of an oracle that knows the task-specific metric . Several works also consider how feedback loops can influence fair classification .

There are several empirical or observational studies which document the effects of multiple task composition. For example, Lambrecht and Tucker study how intended gender-neutral advertising can result in uneven delivery due to high demand for the attention of certain demographics . Datta et al also document differences in advertising based on gender, although they are agnostic as to whether the cause is due to multiple task composition or discriminatory behavior on the part of the advertisers or platform . Whether it is truly “fair” that, say, home goods advertisers bid more highly for the attention of women than for the attention of men, may be debatable, although there are clearly instances in which differential targeting is justified, such as maternity clothes. This actuarial fairness is the industry practice, so we pose a number of examples in this framework and analyze the implications of composition.

Preliminary Definitions and Assumptions

2 Individual Fairness

Throughout this work, our primary focus is on individual fairness, proposed by Dwork et al in . As noted above, a classification task is the problem of mapping individuals in a universe to outcomes.

3 Group Fairness

In principle, all our individual fairness results extend to group fairness definitions; however, there are a number of technicalities and issues unique to group fairness definitions, which we discuss in Section 6. Group fairness is often framed in terms of protected attributes A\mathcal{A}, such as sex, race, or socio-economic status, while allowing for differing treatment based on a set of qualifications Z\mathcal{Z}, such as, in the case of advertising, the willingness to buy an item. Conditional Parity, a general framework proposed in for discussing these definitions, conveniently captures many of the popular group fairness definitions popular in the literature including Equal Odds and Equal Opportunity , and Counterfactual Fairness .

A random variable x\mathbf{x} satisfies parity with respect to a\mathbf{a} conditioned on z=z\mathbf{z}=z if the distribution of x\mathbf{x} | (a,{z=z})(\mathbf{a},\{\mathbf{z}=z\}) is constant in a\mathbf{a}: Pr[x=x  (a=a,z=z)]=Pr[x=x  (a=a,z=z)]\Pr[\mathbf{x}=x\text{ }|\text{ }(\mathbf{a}=a,\mathbf{z}=z)]=\Pr[\mathbf{x}=x\text{ }|\text{ }(\mathbf{a}=a^{\prime},\mathbf{z}=z)] for any a,aAa,a^{\prime}\in\mathcal{A}. Similarly, x\mathbf{x} satisfies parity with respect to a\mathbf{a} conditioned on z\mathbf{z} (without specifying a value of z\mathbf{z}) if it satisfies parity with respect to a\mathbf{a} conditioned on z=z\mathbf{z}=z for all zZz\in\mathcal{Z}. All probabilities are over the randomness of the prediction procedure and the selection of elements from the universe.

Multiple-Task Composition

First, we consider the problem of composition of classifiers for multiple tasks where the outcome for more than one task is decided. Multiple Task Fairness, defined next, requires fairness to be enforced independently and simultaneously for each task.

We now pose the relevant problem for multiple task fairness: competitive composition.

The single slot composition problem captures the scenario in which an advertising platform may have a single slot to show an ad but need not show any ad. Imagine that this advertising system only has two types of ads: those for jobs and those for household goods. If a person is qualified for jobs and wants to purchase household goods, the system must pick at most one of the ads to show. In this scenario, it may be unlikely that the advertising system would choose to show no ads, but the problem specification does not require that any positive outcome is chosen.

To solve the single-slot composition problem we must build a system which chooses at most one of the possible tasks so that fairness is preserved for each task across all elements in the universe. Clearly if classifiers for each task may independently and fairly assign outputs, the system as a whole satisfies multiple task fairness. However, most systems will require trade-offs between tasks. Consider a naïve solution to the single-slot problem for ads: each advertiser chooses to bid on each person with some probability, and if both advertisers bid for the same person, the advertiser with the higher bid gets to show her ad. Formally, we define a tie-breaking function and Task-Competitive Composition:

Task-competitive composition can reflect many scenarios other than advertising, which are discussed in greater detail in the full paper. Note that the tie-breaking function need not encode the same logic for all individuals and may be randomized.

For any two tasks TT and TT^{\prime} with nontrivial metrics D\mathcal{D} and D\mathcal{D^{\prime}} respectively, there exists a set C\mathcal{C} of classifiers which are individually fair in isolation but when combined with task-competitive composition violate multiple task fairness for any tie-breaking function.

(Sketch) We sketch the proof for a simpler setting in which the tie-breaking function strictly prefers task TT, that is whenever the classifiers for TT an TT^{\prime} both return 1, task TT is chosen, and there exists a pair u,vUu,v\in U such that D(u,v)0\mathcal{D}(u,v)\neq 0 and D(u,v)=0\mathcal{D}^{\prime}(u,v)=0See Section A.5 for a complete treatment of competitive composition..

Our strategy is to construct CC and CC^{\prime} such that the distance between a pair of individuals is stretched for the ‘second’ task.

Let pup_{u} denote the probability that CC assigns 1 to uu, and analogously pv,pu,pvp_{v},p_{u}^{\prime},p_{v}^{\prime}. The probabilities that uu and vv are assigned 1 for the task TT^{\prime} are Pr[S(u)T=1]=(1pu)pu\Pr[\mathcal{S}(u)_{T^{\prime}}=1]=(1-p_{u})p_{u}^{\prime} and Pr[S(v)T=1]=(1pv)pv\Pr[\mathcal{S}(v)_{T^{\prime}}=1]=(1-p_{v})p_{v}^{\prime}. The difference between them is

By assumption D(u,v)=0\mathcal{D^{\prime}}(u,v)=0, so for any choice of pu=pv>0p_{u}^{\prime}=p_{v}^{\prime}>0 and for any choice of pupvp_{u}\neq p_{v}, this quantity is not zero, giving the desired contradiction.

The intuition for unfairness in such a strictly ordered composition is that each task inflicts its preferences on subsequent tasks, and this intuition extends to more complicated tie-breaking functions and individuals with positive distances in both tasks.

Our intuition suggests that the situation in Theorem 1 is not contrived and occurs often in practice, and moreover that small relaxations will not be sufficient to alleviate this problem, as the phenomenon has been observed empirically . We include a small simulated example in Appendix B to illustrate the potential magnitude and frequency of such fairness violations.

2 Simple Fair Multiple-task Composition

Fortunately, there is a general purpose mechanism for the single slot composition problem which requires no additional information in learning each classifier and no additional coordination between the classifiers.See section A.6.4 for another mechanism which requires coordination between the classifiers. The rough procedure for RandomizeThenClassify\mathsf{RandomizeThenClassify} (specified in detail in Section A.5.1 Algorithm 2) is to fix a fair classifier for each task, fix a probability distribution over the tasks, sample a task from the distribution, and then run the fair classifier for that task. RandomizeThenClassify\mathsf{RandomizeThenClassify} has several nice properties: it requires no coordination in the training of the classifiers, it preserves the ordering and relative distance of elements by each classifier, and it can be implemented by a platform or other third party, rather than requiring the explicit cooperation of all classifiers. The primary downside of RandomizeThenClassify\mathsf{RandomizeThenClassify} is that it reduces allocation (the total number of positive classifications) for classifiers trained with the expectation of being run independently.

Functional Composition

In Functional Composition, the outputs of multiple classifiers are combined through logical operations to produce a single output for a single task. A significant consideration in functional composition is determining which outcomes are relevant for fairness and at which point(s) fairness should be measured. For example, (possibly different) classifiers for admitting students to different colleges are composed to determine whether the student is accepted to at least one college. In this case, the function is “OR,” the classifiers are for the same task, and hence conform to the same metric, and this is the same metric one might use for defining fairness of the system as a whole. Alternatively, the system may compose the classifier for admission with the classifier for determining financial aid. In this case the function is “AND,” the classifiers are for different tasks, with different metrics, and we may use scholastic ability or some other appropriate output metric for evaluating overall fairness of the system.

In this section, we consider the motivating example of college admissions. When secondary school students apply for college admission, they usually apply to more than one institution to increase their odds of admission to at least one college. Consider a universe of students UU applying to college in a particular year, each with intrinsic qualification quq_{u}\in, uU\forall u\in U. We define D(u,v)=quqv\mathcal{D}(u,v)=|q_{u}-q_{v}| u,vU.\forall u,v\in U. C\mathcal{C} is the set of colleges and assume each college CiCC_{i}\in\mathcal{C} admits students fairly with respect to D\mathcal{D}. The system of schools is considered OR-fair if the indicator variable xux_{u} which indicates whether or not student uu is admitted to at least one school satisfies individual fairness under this same metric. More formally,

Given a (universe, task) pair with metric D\mathcal{D}, and a set of classifiers C\mathcal{C} we define the indicator

The OR Fairness setting matches well to tasks where individuals primarily benefit from one positive classification for a particular task.We may conversely define NOR Fairness to take ¬xu\neg x_{u}, and this setting more naturally corresponds to cases where not being classified as positive is desirable. As mentioned above, examples of such tasks include gaining access to credit or a home loan, admission to university, access to qualified legal representation, access to employment, etc considers what boils down to AND-fairness for Equal Opportunity and presents an excellent collection of evocative example scenarios.. Although in some cases more than one acceptance may have positive impact, for example a person with more than one job offer may use the second offer to negotiate a better salary, the core problem is (arguably) whether or not at least one job is acquired.

Returning to the example of college admissions, even with the strong assumption that each college fairly evaluates its applicants, there are still several potential sources of unfairness in the resulting system. In particular, if students apply to different numbers of colleges or colleges with different admission rates, we would expect that their probabilities of acceptance to at least one college will be different. The more subtle scenario from the perspective of composition is when students apply to the same set of colleges.

Even in this restricted setting, it is still possible for a set of classifiers for the same task to violate OR fairness. The key observation is that for elements with positive distance, the difference in their expectation of acceptance by at least one classifier does not diverge linearly in the number of classifiers included in the composition. As the number of classifiers increases, the probabilities of positive classification by at least one classifier for any pair eventually converge. However, in practice, we expect students to apply to perhaps five or 10 colleges, so it is desirable to characterize when small systems are robust to such composition.

For any (universe, task) pair with a non-trivial metric D\mathcal{D}, there exists a set of individually fair classifiers C\mathcal{C} which do not satisfy OR Fairness, even if each element in UU is classified by all CiCC_{i}\in\mathcal{C}.

The proof of Theorem 2 follows from a straightforward analysis of the difference in probability of at least one positive classification.See Section A.4 for the complete proof. The good news is that there exist non-trivial conditions for sets of small numbers of classifiers where OR Fairness is satisfied:

This lemma is useful for determining that a system is free from same-task divergence, as it is possible to reason about an “OR of ORs”.

Functional composition can also be used to reason about settings where classification procedures for different tasks are used to determine the outcome for a single task. For example, in order to attend a particular college, a student must be admitted and receive sufficient financial aid to afford tuition and living expenses. Financial need and academic qualification clearly have different metrics, and in such settings, a significant challenge is to understand how the input metrics relate to the relevant output metric. Without careful reasoning about the interaction between these tasks, it is very easy to end up with systems which violate individual fairness, even if they are constructed from individually fair components. (See Section A.4.2 Theorem 9 for more details.)

Dependent Composition

Thus far, we have restricted our attention to the mode of operation in which classifiers act on the entire universe of individuals at once and each individual’s outcome is decided independently. In practice, however, this is an unlikely scenario, as classifiers may be acting as a selection mechanism for a fixed number of elements, may operate on elements in arbitrary order, or may operate on only a subset of the universe. In this section, we consider the case in which the classification outcomes received by individuals are not independent. Slightly abusing the term “composition,” these problems can be viewed as a composition of the classifications of elements of the universe. We roughly divide these topics into Cohort Selection problems, when a set of exactly nn individuals must be selected from the universe, and Universe Subset problems, when only a subset of the relevant universe for the task is under the influence of the classifier we wish to analyze or construct. Within these two problems we consider several relevant settings:

Online versus offline: Advertising decisions for online ads must be made immediately upon impression and employers must render employment decisions quickly or risk losing out on potential employees or taking too long to fill a position.

Random versus adversarial ordering: The order in which individuals apply for an open job may be influenced by their social connections with existing employees, which impacts how quickly they hear about the job opening.

Known versus unknown subset or universe size: An advertiser may know the average number of interested individuals who visit a website on a particular day, but be uncertain on any particular day of the exact number.

Constrained versus unconstrained selection: in many settings there are arbitrary constraints placed on selection of individuals for a task which are unrelated to the qualification or metric for that task. For example, to cover operating costs, a college may need at least n/2n/2 of the nn students in a class to be able to pay full tuition.

In dependent composition problems, it is important, when computing distances between distributions over outcomes, to pay careful attention to the source of randomness. Taking inspiration from the experiment setup found in many cryptographic definitions, we formally define two problems, Universe Subset Classification and Cohort Selection, in Section A.6. In particular, it is important to understand the randomness used to decide an ordering or a subset, as once an ordering or subset is fixed, reasoning about fairness is impossible, as a particular individual may be arbitrarily included or excluded.

First we consider the simplest version of the cohort selection problem: choosing a cohort of nn individuals from the universe UU when the entire universe is known and decisions are made offline. A simple solution is to choose a permutation of the elements in UU uniformly at random, and then apply a fair classifier CC until nn are selected or selecting the last few elements from the end of the list if nn have not yet been selected. With some careful bookkeeping, we show that this mechanism is individually fair for any individually fair input classifier. (See Section A.6 Algorithms 3 and 4.)

2 More complicated settings

In this extended abstract, we omit a full discussion of the more complicated dependent composition scenarios, but briefly summarize several settings to build intuition.

If the ordering of the stream is adversarial, but U|U| is unknown, then there exists no solution to the online cohort selection problem.

The intuition for the proof follows from imagining that a fair classification process exists for an ordering of size nn and realizing that this precludes fair classification of a list of size n+1n+1, as the classification procedure cannot distinguish between the two cases.

Next we consider the problem of selecting a cohort with an external requirement that some fraction of the selected set is from a particular subgroup. That is, given a universe UU, and pp\in, and a subset AUA\subset U, select a cohort of nn elements such that at least a pp fraction of the elements selected are in AA. This problem captures situations in which external requirements cannot be ignored. For example, if a certain budget must be met, and only some members of the universe contribute to the budget, or if legally a certain fraction of people selected must meet some criterion (as in, demographic parity). In the full version, we characterize a broad range of settings where the constrained cohort selection problem cannot be solved fairly.

To build intuition, suppose the universe UU is partitioned into sets AA and BB, where n/2=A=B/5n/2=|A|=|B|/5. Suppose further that the populations have the same distribution on ability, so that the set BB is a “blown up” version of AA, meaning that for each element uAu\in A there are 5 corresponding elements Vu={vu,1,...,vu,5}V_{u}=\{v_{u,1},...,v_{u,5}\} such that D(u,vu,i)=0\mathcal{D}(u,v_{u,i})=0, 1i51\leq i\leq 5, u,uA VuVu=\forall u,u^{\prime}\in A~{}V_{u}\cap V_{u^{\prime}}=\emptyset, and B=uAVuB=\cup_{u\in A}V_{u}. Let p=12p=\frac{1}{2}. The constraint requires all of AA to be selected; that is, each element of AA has probability 1 of selection. In contrast, the average probability of selection for an element of BB is 15\frac{1}{5}. Therefore, there exists vBv\in B with selection probability at most 1/51/5. Letting uAu\in A such that vVuv\in V_{u}, we have D(u,v)=0\mathcal{D}(u,v)=0 but the difference in probability of selection is at least 45\frac{4}{5}. We give a more complete characterization of the problem and impossibilities in Section A.6.3.

Extensions to Group Fairness

In general, the results discussed above for composition of individual fairness extend to group fairness definitions; however, there are several issues and technicalities unique to group fairness definitions which we now discuss.

Consider the following simple universe: for a particular zZz\in\mathcal{Z}, group BB has only elements with medium qualification qmq_{m}, group AA has half of its elements with low qualification qlq_{l} and half with high qualification qhq_{h}. Choosing ph=1p_{h}=1, pm=.75p_{m}=.75, and pl=.5p_{l}=.5 satisfies Conditional Parity for a single application. However, for the OR of two applications, the the squares diverge (.9375.875.9375\neq.875), violating conditional parity (see Figure 1).

Note, however, that all of the individuals with z=z\mathbf{z}=z have been drawn closer together under composition, and none have been pulled further apart.

This simple observation implies that in some cases we may observe failures under composition for conditional parity, even when individual fairness is satisfied. In order to satisfy Conditional Parity under OR-composition, the classifier could sacrifice accuracy by treating all individuals with z=z\mathbf{z}=z equally. However, this necessarily discards useful information about the individuals in AA to satisfy a technicality.

There are many cases where failing to satisfy conditional parity under task-competitive composition is clearly a violation of our intuitive notion of group fairness. However, conditional parity is not always a reliable test for fairness at the subgroup level under composition. In general, we expect conditional parity based definitions of group fairness to detect unfairness in multiple task compositions reasonably well when there is an obvious interaction between protected groups and task qualification, as observed empirically in and . For example, let’s return to our advertising example where home-goods advertisers have no protected set, but high-paying jobs have gender as a protected attribute. Under composition, home-goods out-bidding high-paying jobs ads for women will clearly violate the conditional parity condition for the job ads (see Figure 2).

However, suppose that, in response to gender disparity caused by task-competitive composition, classifiers iteratively adjust their bids to try to achieve Conditional Parity. This may cause them to learn themselves into a state that satisfies Conditional Parity with respect to gender, but behaves poorly for a socially meaningful subgroup (see Figure 3.) For example, if home goods advertisers aggressively advertise to women who are new parents (because their life-time value (Z\mathcal{Z}) to the advertiser is the highest of all universe elements), then a competing advertiser for jobs, noticing that its usual strategy of recruiting all people with skill level z=z\mathbf{z^{\prime}}=z^{\prime} equally is failing to reach enough women, bids more aggressively on women. By bidding more aggressively, the advertiser increases the probability of showing ads to women (for example by outbidding low-value competition), but not to women who are bid for by the home goods advertiser (a high-value competitor), resulting in a high concentration of ads for women who are not mothers, while still failing to reach women who are mothers. Furthermore, the systematic exclusion of mothers from job advertisements can, over time, be even more problematic, as it may contribute to the stalling of careers. In this case, the system discriminates against mothers without necessarily discriminating against fathers.

Although problematic (large) subgroup semantics are part of the motivation for and exclusion of subgroups is not only a composition problem, the danger of composition is that the features describing this subset may be missing from the feature set of the jobs classifier, rendering the protections proposed in and ineffective. In particular, we expect sensitive attributes like parental status are unlikely to appear (or are illegal to collect) in employment-related training or testing datasets, but may be legitimately targeted by other competing advertisers.

References

Appendix A Full Paper

As automated decision-making extends its reach ever more deeply into our lives, there is increasing concern that such decisions be fair. The rigorous theoretical study of fairness in algorithmic classification was initiated by Dwork et al in and subsequent works investigating alternative definitions, fair representations, and impossibility results have proliferated in the machine learning, economics and theoretical computer science literatures.See also and , which predate and are motivated by similar concerns. The notions of fairness broadly divide into individual fairness, requiring that individuals who are similar with respect to a given classification task (as measured by a task-specific similarity metric) have similar probability distributions on classification outcomes; and group fairness, which requires that different demographic groups experience the same treatment in some average sense.

In a bit more detail, a classification task is the problem of mapping individuals to outcomes; for example, a decision task may map individuals to outcomes in {0,1}\{0,1\}. A classifier is a possibly randomized algorithm solving a classification task. A running example throughout this work is online advertising. In this case a task might be the problem of deciding whether or not to show a given job advertisement to an individual, and we may have an advertising system in which ads are shown repeatedly (or not), and many different advertisers, say, for a job, a grocery delivery service, and various items of clothing, may be competing in an auction for the attention of individual users. In this latter case we have multiple competing advertising tasks.

In this work we initiate the study fairness under composition: what are the fairness properties of systems built from classifiers that are fair in isolation? Under what circumstances can we ensure fairness, and how can we do so? We identify and examine several types of composition and draw conclusions about auditing systems for fairness, constructing fair systems and definitions of fairness for systems. In the remainder of this section we summarize our results and discuss related work.

(Section A.5). We first consider the problem of two or more tasks competing for individuals, motivated by the online advertising setting described above. We prove that two advertisers for different tasks, each behaving fairly (when considered independently), will not necessarily produce fair outcomes when they compete. Intuitively (and empirically observed by ), the attention of individuals similarly qualified for a job may effectively have different costs due to these individuals’ respective desirability for other advertising tasks, like household goods purchases. That is, individuals claimed by the household goods advertiser will not see the jobs ad, regardless of their qualification. These results are not specific to an auction setting and are robust to choice of “tie-breaking” functions that select among multiple competing tasks (advertisers). Nonetheless, we give a simple mechanism, RandomizeThenClassify\mathsf{RandomizeThenClassify}, that solves the fair task-competitive classification problem using classifiers for the competing tasks each of which is fair in isolation, in a black-box fashion and without modification. In the full paper in Section A.6.4 we give a second technique for modifying the fair classifier of the lower bidder (loser of the tie-breaking function) in order to achieve fairness.

(Section A.4). When can we build fair classifiers by computing on values that were fairly obtained? Here we must understand what is the salient outcome of the computation. For example, when reasoning about whether the college admissions system is fair, the salient outcome may be whether a student is accepted to at least one college, and not whether the student is accepted to a specific collegeIn this simple example, we assume that all colleges are equally desirable, but it is not difficult to extend the logic to different sets of comparable colleges.. Even if each college uses a fair classifier, the question is whether the “OR” of the colleges decisions is fair. Furthermore, an acceptance to college may not be meaningful without sufficient accompanying financial aid. Thus in practice, we must reason about the OR of ANDs of acceptance and financial aid across many colleges. We show that although in general there are no guarantees on the fairness of functional compositions of fair components, there are some cases where fairness in ORs can be satisfied. Such reasoning can be used in many applications where long-term and short-term measures of fairness must be balanced. In the case of feedback loops, where prior positive outcomes can improve the chances of future positive outcomes, functional composition provides a valuable tool for determining at which point(s) fairness must be maintained and determining whether the existing set of decision procedures will adhere to these requirements.

(Section A.6). There are many settings in which each individual’s classifications are dependent on the classifications of others. For example, if a company is interviewing a set of job candidates in a particular order, accepting a candidate near the beginning of the list precludes any subsequent candidates from even being considered. Even if each candidate is considered fairly in isolation, dependence between candidates can result in highly unfair outcomes. For example, individuals who are socially connected to the company through friends or family are likely to hear about job openings first and thus be considered for a position before candidates without connections. We show that selecting a cohort of people – online or offline – requires care to prevent dependencies from impacting an independently fair selection mechanism. We address this in the offline case with two randomized constructions, PermuteThenClassify\mathsf{PermuteThenClassify} and WeightedSampling\mathsf{WeightedSampling}. These algorithms can be applied in the online case, even under adversarial ordering, provided the size of the universe of individuals is known; when this is not known there is no solution.

(Section A.7). Many fairness definitions in the literature seek to provide fairness guarantees based on group-level statistical properties. For example, Equal Opportunity requires that, conditioned on qualification, the probability of a positive outcome is independent of protected attributes such as race or gender. Group Fairness definitions have practical appeal in that they are possible to measure and enforce empirically without reference to a task-specific similarity metric. We extend our results to group fairness definitions and we also show that these definitions do not always yield consistent signals under composition. In particular, we show that the intersectional subgroup concerns (which motivate ) are exacerbated by composition. For example, an employer who uses group fairness definitions to ensure parity with respect to race and gender may fail to identify that “parents” of particular race and gender combinations are not treated fairly. Task-competitive composition exacerbates this problem, as the employers may be prohibited from even collecting parental status information, but their hiring processes may be composed with other systems which legitimately differentiate based on parental status.

Finally, we also show how naïve strategies to mitigate these issues in composition may result in learning a nominally fair solution that is clearly discriminating against a socially meaningful subgroup not officially called out as “protected,” from which we conclude that understanding the behavior of fairness definitions under composition is critical for choosing which definition is meaningful in a given setting.

Our composition results have several practical implications. First, testing individual components without understanding of the whole system will be insufficient to draw either positive or negative conclusions about the fairness of the system. Second, composition properties are an important point of evaluation for any definitions of fairness or fairness requirements imposed by law or otherwise. Failing to take composition into account when specifying a group-based fairness definition may result in a meaningless signal under composition, or worse may lead to ingraining poor outcomes for certain subgroups while still nominally satisfying fairness requirements. Third, understanding of the salient outcomes on which to measure and enforce fairness is critical to building meaningfully fair systems. Finally, we conclude that there is significant potential for improvement in the mechanisms proposed for fair composition and many settings in which new mechanisms could be proposed.

A.2 Related Work

Fairness retained under post-processing in the single-task one-shot setting is central in . The definition of individual fairness we build upon in this work was introduced by Dwork et al in . Learning with oracle access to the fairness metric is considered by . A number of group-based fairness definitions have been proposed, and Ritov et al provide a combined discussion of the parity-based definitions in . In particular, their work includes discussion of Hardt et al’s Equality of Opportunity and Equal Odds definitions and Kilbertus et al’s Counterfactual Fairness . Kleinberg et al and Chouldechova independently described several impossibility results related to simultaneously satisfying multiple group fairness conditions in single classification settings ,.

Two concurrent lines of work aiming to bridge the gap between individual and group consider ensuring fairness properties for large numbers of large groups and their (sufficiently large) intersections . While these works consider the one-shot, single-task setting, we will see that group intersection properties are of particular importance under composition. Two subsequent works in this general vein explore approximating individual fairness with the help of an oracle that knows the task-specific metric . Several works also consider how feedback loops can influence fair classification .

There are several empirical or observational studies which document the effects of multiple task composition. For example, Lambrecht and Tucker study how intended gender-neutral advertising can result in uneven delivery due to high demand for the attention of certain demographics . Datta et al also document differences in advertising based on gender, although they are agnostic as to whether the cause is due to multiple task composition or discriminatory behavior on the part of the advertisers or platform . Whether it is truly “fair” that, say, home goods advertisers bid more highly for the attention of women than for the attention of men, may be debatable, although there are clearly instances in which differential targeting is justified, such as maternity clothes. This actuarial fairness is the industry practice, so we pose a number of examples in this framework and analyze the implications of composition.

A.3 Preliminary Definitions and Assumptions

A.3.2 Individual Fairness

Throughout this work, our primary focus is individual fairness, proposed by Dwork et al in .

A trivial metric is a metric in which all individuals are either equal, or maximally distant. A trivial metric may still contain significant information regarding equivalent pairs, so there may still be some settings where a trivial metric can still provide meaningful fairness guarantees.

A metric D\mathcal{D} is considered trivial if for all u,vUu,v\in U D(u,v){0,1}\mathcal{D}(u,v)\in\{0,1\}.

Fairness with respect to a trivial metric requires that we treat all elements equally or satisfy something akin to perfect prediction - that is, we can perfectly separate the universe into two classes for prediction. In practice, such metrics are unlikely, and as such we primarily reason about settings with non-trivial metrics.

In , fair classifiers are constructed by solving a linear program to minimize the loss of an objective function subject to the distance constraints of the metric. There is always a solution to such a linear program, although the loss may be high: treat all elements of the universe equally. Throughout this work, we will frequently use the fact that individually fair classifiers with particular distance properties exist in proofs. We therefore include the following lemma and corollaries which allow us to construct classifiers with positive distance between elements, and reason about the maximum distance between a pair of elements for a fair classifier.

For V=V=\emptyset, any value pxp_{x} suffices to fairly classify xx. For V=1|V|=1, choosing any pxp_{x} such that pvpxD(v,x)|p_{v}-p_{x}|\leq\mathcal{D}(v,x) for vVv\in V suffices.

For V2|V|\geq 2, apply the procedure outlined in Algorithm 1 taking ptp_{t} to be the probability of positive classification of xx’s nearest neighbor in VV under CC. As usual, we take pwp_{w} to be the probability that CC positively classifies element ww.

Notice that Algorithm 1 only modifies p^x\hat{p}_{x}, and that p^x\hat{p}_{x} is only changed if a distance constraint is violated. Thus it is sufficient to confirm that on each modification to p^x\hat{p}_{x}, no distance constraints between xx and elements in the opposite direction of the move are violated.

Without loss of generality, assume that p^x\hat{p}_{x} is decreased to move within an acceptable distance of uu, that is p^xpu\hat{p}_{x}\geq p_{u}. It is sufficient to show that for all vv such that pv>p^xp_{v}>\hat{p}_{x} that no distances are violated. Consider any such vv. By construction p^xpu=D(u,x)\hat{p}_{x}-p_{u}=\mathcal{D}(u,x), and pvpuD(u,v)p_{v}-p_{u}\leq\mathcal{D}(u,v). From triangle inequality, we also have that D(u,v)D(u,x)+D(x,v)\mathcal{D}(u,v)\leq\mathcal{D}(u,x)+\mathcal{D}(x,v). Substituting, and using that pvp^xpup_{v}\geq\hat{p}_{x}\geq p_{u}:

Thus the fairness constraint for xx and vv is satisfied, and CC^{\prime} is an individually fair classifier for V{x}V\cup\{x\}.

Lemma 5 allows us to build up a fair classifier in time O(U2)O(|U|^{2}) from scratch, or to add to an existing fair classifier for a subset. We state several useful corollaries:

Corollary 5.1 follows immediately from applying Algorithm 1 to each element of U\VU\backslash V in arbitrary order.

Corollary 5.2 follows simply from starting from the classifier which is fair only for a particular pair and places them at their maximum distance under D\mathcal{D} and then repeatedly applying Algorithm 1 to the remaining elements of UU. From a distance preservation perspective, this is important; if there is a particular ‘axis’ within the metric where distance preservation is most important, then maximizing the distance between the extremes of that axis can be very helpful for preserving the most relevant distances.

Corollary 5.3 follows from choosing pu/pv=αp_{u}/p_{v}=\alpha without regard for the difference between pup_{u} and pvp_{v}, and then adjusting. Take βpvpu=D(u,v)\beta|p_{v}-p_{u}|=\mathcal{D}(u,v), and choose p^u=βpu\hat{p}_{u}=\beta p_{u} and p^v=βpv\hat{p}_{v}=\beta p_{v} so that βpvβpu=βpvpuD(u,v)|\beta p_{v}-\beta p_{u}|=\beta|p_{v}-p_{u}|\leq\mathcal{D}(u,v), but the ratio βpuβpv=pupv=α\frac{\beta p_{u}}{\beta p_{v}}=\frac{p_{u}}{p_{v}}=\alpha remains unchanged.

A.3.3 Group Fairness

In Section A.7, we will expand our results to notions of group fairness. The motivations for group fairness are two-fold. Proportional representation is often desirable in its own right; alternatively, the absence of proportional allocation of goods can signal discrimination in the allocation process, typically against historically mistreated or under-represented groups. Thus, group fairness is often framed in terms of protected attributes A\mathcal{A}, such as sex, race, or socio-economic status, while allowing for differing treatment based on a set of qualifications Z\mathcal{Z}, such as, in the case of advertising, the willingness to buy an item. Conditional Parity, a general framework proposed in for discussing these definitions, conveniently captures many of the popular group fairness definitions popular in the literature including Equal Odds and Equal Opportunity , and Counterfactual Fairness .

A random variable x\mathbf{x} satisfies parity with respect to a\mathbf{a} conditioned on z=z\mathbf{z}=z if the distribution of x\mathbf{x} | (a,{z=z})(\mathbf{a},\{\mathbf{z}=z\}) is constant in a\mathbf{a}: Pr[x=x  (a=a,z=z)]=Pr[x=x  (a=a,z=z)]\Pr[\mathbf{x}=x\text{ }|\text{ }(\mathbf{a}=a,\mathbf{z}=z)]=\Pr[\mathbf{x}=x\text{ }|\text{ }(\mathbf{a}=a^{\prime},\mathbf{z}=z)] for any a,aAa,a^{\prime}\in\mathcal{A}. Similarly, x\mathbf{x} satisfies parity with respect to a\mathbf{a} conditioned on z\mathbf{z} (without specifying a value of z\mathbf{z}) if it satisfies parity with respect to a\mathbf{a} conditioned on z=z\mathbf{z}=z for all zZz\in\mathcal{Z}. All probabilities are over the randomness of the prediction procedure and the selection of elements from the universe.

The definition captures the intuition that, conditioned on qualification, the setting of protected attributes should not on average impact the classification result. Note that this is not a guarantee about treatment at the individual level; it speaks only to group-level statistical properties in expectation. In contrast, Individual Fairness makes strict requirements on the outcomes for each pair of individuals.

A weakness of group fairness definitions, addressed by Individual Fairness, is the problem of subgroup unfairness: a classifier that satisfies Conditional Parity with respect to race and gender independently may fail to satisfy Conditional Parity with respect to the conjunction of race and gender. Furthermore, the protected attributes (A)(\mathcal{A}) may not be sufficiently rich to describe every “socially meaningful” group one might wish to protect from discrimination. For example, preventing discrimination against women is insufficient if it allows discrimination against women who are mothers, or who dress in a particular style. To address this, two concurrent lines of work consider fairness for collections of large, possibly intersecting sets . As we will see, composition exacerbates this problem uniquely for group fairness definitions (but not for Individual Fairness).

A.3.4 Differential Privacy

Dwork et al noted the similarity of individual fairness to Differential Privacy .

A mechanism M\mathcal{M} is said to be ε\varepsilon-differentially private if for all databases xx and xx^{\prime} differing in a single element and for all ZZ in the output space of M\mathcal{M}:

Loosely speaking, differential privacy requires that the output of the mechanism cannot depend too much on any one particular entry in the database. In this work we are primarily concerned with two properties of differential privacy:For a more complete introduction to Differential Privacy, see and Cynthia Dwork’s Simons Tutorial and Katrina Ligett’s Simons Tutorial.

First, differential privacy is preserved under arbitrary post-processing. That is, any output from a mechanism which satisfies differential privacy can be arbitrarily post-processed, and privacy is still preserved. For example, the mechanism may output reals, which are subsequently rounded to integers, and privacy is not harmed. The analogy for fairness would be for the case in which individuals are first labeled by a classifier (the case of an employment platform they may be labeled as programmers of high, medium, or low skill), and subsequent actions (invitation to interview for a programming job) taken depend only on the classification label. The intuition, introduced in is that if the initial classification is fair, in that similarly qualified programmers have similar probabilities of being labeled highly skilled, then the system for inviting candidates to apply for programming jobs will be fair.

Differential privacy composes nicely even without coordination between analysts or databases. Without any coordination between analysts or databases, εi\varepsilon_{i}-differentially private mechanisms, adaptively chosen satisfy iεi\sum_{i}\varepsilon_{i}-Differential Privacy. The important takeaway is that Differential Privacy never suffers from catastrophic privacy loss under small degrees of composition. Nonetheless, the cumulative privacy loss bounds can be tight, meaning that the log of the ratios of the probabilities of a sequence of output events can be as large as iεi\sum_{i}\varepsilon_{i}. We will return to this point when we discuss functional composition (Section A.4).

Although Differential Privacy can be useful for constructing fair classifiers in the one-shot setting ( Theorem 5.2), the composition guarantees have very different semantics.

A.4 Functional Composition

In Functional Composition, multiple classifiers are combined through logical functions to produce a single output for a single task. For example, (possibly different) classifiers for admitting students to different colleges are composed to determine whether the student is accepted to at least one college. In this case, the function is “OR,” the classifiers are for the same task, and hence conform to the same metric, and this is the same metric one might use for defining fairness of the system as a whole. Alternatively, the system may compose the classifier for admission with the classifier for determining financial aid. In this case the function is “AND,” the classifiers are for different tasks, with different metrics, and we may use scholastic ability or some other appropriate output metric for evaluating overall fairness of the system.

In same-task composition, the same classification task is repeated, either by the same entity, or by different entities. The outputs are then considered together to understand the fairness properties of the system.

We begin by taking a particular composition type, OR. Relevant settings for this problem include a student applying to several colleges or a home-buyer applying to multiple banks for a loan. In such systems the important outcome is whether an individual achieves at least one positive classification. In this definition, we capture the case in which there is only one metric for the classifiers in the composition and that metric is the same as the metric for the final output. In later definitions, we will be more agnostic as to the number and type of metrics.

Given a (universe, task) pair with metric D\mathcal{D}, and a set of classifiers C\mathcal{C} we define the indicator

which indicates whether at least one positive classification occurred.

The OR Fairness setting matches well to tasks where individuals primarily benefit from one positive classification. We may conversely define NOR Fairness to take ¬xu\neg x_{u}, and this setting more naturally corresponds to cases where not being classified as positive is desirable. In some settings, we may even wish to satisfy both OR and NOR fairness simultaneously. As mentioned above, examples of such tasks include gaining access to credit or a home loan, admission to university, access to qualified legal representation, access to employment, etc considers what boils down to AND-fairness for Equal Opportunity and presents an excellent collection of evocative example scenarios.. Although in some cases more than one acceptance may have positive impact, for example a person with more than one job offer may use the second offer to negotiate a better salary, the core problem is whether or not at least one job is acquired. Similarly, an advertisement for a new job posting may have slightly more impact on a person who is exposed to it twice rather than once, but has incomparably less impact on a person who never sees the ad. When the appropriate “dosage” of positive classifications is known, for example, if it is known that kk job offers are needed for effective salary negotiation, Definition 12 can be adjusted to a threshold function requiring that at least kk classifiers respond positively.

In this section, we consider the motivating example of college admissions. When secondary school students apply for college admission, they usually apply to more than one institution to increase their odds of admission to at least one college and to increase their options regarding the type or location of school to attend.

Consider a universe of students UU applying to college in a particular year, each with intrinsic qualification quq_{u}\in, uU\forall u\in U. We define D(u,v)=quqv\mathcal{D}(u,v)=|q_{u}-q_{v}| u,vU.\forall u,v\in U. C\mathcal{C} is the set of colleges and assume each college CiCC_{i}\in\mathcal{C} admits students fairly with respect to D\mathcal{D}. The system of schools is considered OR-fair if the indicator variable xux_{u} which indicates whether or not student uu is admitted to at least one school satisfies individual fairness under this same metric. Even with the strong assumption that each college fairly evaluates its applicants, there are still several potential sources of unfairness in the resulting system.

Although it is a bit obvious, the first source of unfairness we investigate is when a different number of classifiers in the set are applied to different elements of the universe.

For any (universe, task) pair with a non-trivial metric D\mathcal{D}, there exists a set of individually fair classifiers C\mathcal{C} that do not satisfy OR Fairness if each element may be classified by different sets of classifiers with different cardinalities.

As each element wUw\in U may be classified by sets of classifiers of different cardinality, we denote CwC\mathcal{C}^{w}\subseteq\mathcal{C} as the set of classifiers which act on ww.

Consider the set of randomized classifiers C\mathcal{C} where all classifiers are identical and assign outcome 1 to elements u,vUu,v\in U with probabilities pup_{u} and pvp_{v}, respectively. Without loss of generality, assume pupvp_{u}\leq p_{v}, pvpu=D(u,v)p_{v}-p_{u}=\mathcal{D}(u,v) and pv>0p_{v}>0 (such a CC exists per Lemma 5). If uu is classified once (that is, Cu=1|\mathcal{C}^{u}|=1), and vv is classified twice (Cv=2|\mathcal{C}^{v}|=2, then

which violates individual fairness and completes the proof. ∎

Intuitively, if equally qualified students (or even nearly equally qualified students) apply to different numbers of schools or different types of schools in equal numbers, then their probabilities of acceptance to at least one school will diverge.

Assuming that the system requires that all elements be classified by the same number and even the same set of classifiers, it is still possible for a set of classifiers for the same task to violate OR fairness. The key observation is that for elements with positive distance, the difference in their expectation of acceptance by at least one classifier does not diverge linearly in the number of classifiers included in the composition. For example, consider uu and vv with qu=0.5q_{u}=0.5 and qv=0.01q_{v}=0.01; if two classifiers each assign 1 with probability pu=qup_{u}=q_{u} to uu and pv=qvp_{v}=q_{v} to vv then the probability of positive classification by either of the two classifiers will be 0.750.75 for uu and 0.02\approx 0.02 for vv, diverging from their original distance of quqv=0.49|q_{u}-q_{v}|=0.49.

Such divergence is most clearly exhibited with small numbers of classifiers. As the number of classifiers increases, the probabilities of positive classification by at least one classifier for any pair (so long as one of the pair is accepted with positive probability by sufficiently classifiers), will eventually converge as they approach one. However, in practice, we expect students to apply to perhaps five or 10 colleges, so it is desirable to characterize when small systems are immune to such divergence. We demonstrate these issues in two steps: first, we show how to construct sets of individually fair classifiers which do not satisfy OR fairness for all (universe, task) pairs under same-task composition to more formally illustrate the problem. Second, we partially characterize a large class of sets of classifiers which will satisfy OR fairness under same-task composition.

For any (universe, task) pair with a non-trivial metric D\mathcal{D}, there exists a set of individually fair classifiers C\mathcal{C} which do not satisfy OR Fairness, even if each element in UU is classified by all CiCC_{i}\in\mathcal{C}.

By choice of pup_{u} and pvp_{v}, pupv=D(u,v)|p_{u}-p_{v}|=\mathcal{D}(u,v), so without loss of generality

Notice that (pupv)(pu+pv)<D(u,v)(p_{u}-p_{v})(p_{u}+p_{v})<\mathcal{D}(u,v) as long as pu+pv1p_{u}+p_{v}\leq 1. Thus

To build intuition, consider the simple case where the one “worst” element is accepted with probability η12\eta\ll\frac{1}{2} by all classifiers. As all other elements with probability of acceptance greater than or equal to 12\frac{1}{2} are repeatedly classified, their probability of at least one acceptance quickly approaches 1, exceeding their maximum distance from the “worst” element under D\mathcal{D} whose probability of acceptance increases much more slowly. In general, we expect classifiers to attempt to maximize the allowed distance for at least some pairs in order to increase their discriminatory power between “good” and “bad” elements for the task, increasing the chance of such same-task divergence. Even if we rule out elements identically mapped to zero or o(1)o(1) probability, we need only consider the divergence of (1pu)n(1-p_{u})^{n} and (1pv)n(1-p_{v})^{n} for sets of nn classifiers to see that this problem exists in many real-world scenarios when distances are maximized or nearly maximized, within the constraints of individual fairness, between some pairs of elements. Particularly for settings like loan applications (where an extended loan search with many credit inquiries may impact an individual’s credit score), small stretches in distance may have significant practical implications. Figure 4 illustrates an example of this scenario.

The good news is that we can characterize non-trivial conditions for sets of small numbers of classifiers where OR Fairness is satisfied with the help of the following lemma.

Therefore Pr[xw=1]=1Pr[xw=0 and C(w)=0]\Pr[x_{w}^{\prime}=1]=1-\Pr[x_{w}=0\text{ and }C^{\prime}(w)=0]. Define pup_{u}^{\prime} to be the probability that uu is accepted by CC^{\prime} and pup_{u} the probability that uu is accepted by at least one of the set C\mathcal{C}, and analogously define pvp_{v}^{\prime} and pvp_{v}.

to ensure that the system satisfies OR fairness. With some small simplifications, we have

Define t=pupvt=p_{u}-p_{v} and t=pupvt^{\prime}=p_{u}^{\prime}-p_{v}^{\prime}. Without loss of generality, assume that either t,t>0t,t^{\prime}>0 or tt and tt^{\prime} have different signs. (Notice that if this doesn’t hold by our original arbitrary choice of uu and vv, we can switch the ordering to make it so). Therefore,

Note that pv,pv12p_{v},p_{v}^{\prime}\geq\frac{1}{2}, so

By assumption t,tD(u,v)|t|,|t^{\prime}|\leq\mathcal{D}(u,v). By definition of t,tt,t^{\prime}, either t,t>0t,t^{\prime}>0 or tt and tt^{\prime} have different signs. Thus

Lemma 8 turns out to be quite useful for determining that a system is free from same-task divergence, even when the classifiers do not initially seem to satisfy the requirements for the lemma. Consider a set of classifiers C\mathcal{C} such that CC\mathcal{C}^{\prime}\subseteq\mathcal{C} do not satisfy the requirements for Lemma 8. However, if we group the classifiers together as an “OR of ORs”

So far we have considered OR fairness as the primary setting for functional composition. The reader has likely already guessed that our observations extend to other operators. We omit a complete set of proofs in the same-task setting as they are very similar to the above. Figures 5 and 6 show illustrative cases (as Figure 4 does for OR fairness).

A.4.2 Multiple Task Functional Composition

As we saw in the previous section, functional composition of classifier outputs for a single task can result in violations of individual fairness, even if the classifiers were individually fair in isolation. We now extend this idea to cases where more than one task is used in the functional composition. Whereas OR Fairness is highly intuitive for single-task settings, AND Fairness is highly applicable in multiple-task settings. For example, in order to attend university, a student must both be admitted to the university and be able to pay tuition, either through private scholarships, family assistance or university financial aid. At first glance, this may seem like a single-task composition problem, however, it is highly likely that the financial aid office and the university admissions department may consider themselves beholden to different metrics. The admissions department may want to evaluate applications “need-blind” and not consider financial status at all in order to admit the most academically qualified candidates; the financial aid office may want to maximize the number of students able to attend given a fixed amount of aid money. It’s not difficult to imagine that these two metrics compose poorly.

For a warm-up example, let us consider the case of 10 students, all with the same academic qualifications, who are admitted to the university based on their academic qualifications. Two of them have family funding or a private scholarship to cover their tuition, five need 25% tuition assistance from the university, and the remaining three need 100% tuition assistance from the university. If the financial aid office only has a limited amount of funding, they could, fairly, in their opinion, offer all students a full financial aid package with some probability p(0,1)p\in(0,1).We specifically address fairly allocating limited ‘slots’ or resources in Section A.6. However, students who have alternative means will be able to attend regardless of the financial aid they receive, whereas students who do not have alternative means will only be able to attend with probability pp. Although the financial aid and admissions classifiers both appear fair independently, we are faced with the problem of how to reconcile fairness under composition. It’s not clear which, if either, of the input metrics is the right metric to use to enforce fairness on the system as a whole, and so we must consider systems where the relevant metric for the output may not be included in the metrics of any of the input tasks. In this particular case, the relevant output metric should perhaps be more closely aligned with academic qualification than financial background. The definition of AND Fairness, below, considers this setting.

Given a universe UU and a set of kk tasks T\mathcal{T} with metrics D1,,Dk\mathcal{D}_{1},\ldots,\mathcal{D}_{k} and an output metric DO\mathcal{D}^{\mathcal{O}}, a set of classifiers C\mathcal{C} satisfies AND Fairness if the indicator variable

We expect that there are relevant scenarios where DOT\mathcal{D}^{\mathcal{O}}\in\mathcal{T} and others in which DOT\mathcal{D}^{\mathcal{O}}\notin\mathcal{T}, so we make no explicit requirement in the definition. For example, in the case of college admissions, DO\mathcal{D}^{\mathcal{O}} may be taken to be the metric for academic qualification. In contrast, for the task of buying a home, the metric DO\mathcal{D}^{\mathcal{O}} may be distinct from the metrics for securing financing and finding a willing seller. The next theorem shows that when the output metric doesn’t have strictly larger distances than all of the input metrics for all pairs, then individual fairness can easily be violated by composing classifiers that are individually fair in isolation.

Let T\mathcal{T} be a set of kk tasks with nontrivial metrics D1,,Dk\mathcal{D}_{1},\ldots,\mathcal{D}_{k} respectively and let DO\mathcal{D}^{\mathcal{O}} represent the relevant outcome metric. If there exists at least one pair u,vUu,v\in U and one pair of tasks Ti,TjT_{i},T_{j} for i,j[k]i,j\in[k], iji\neq j such that

DO(u,v)Di(u,v),Dj(u,v)\mathcal{D}^{\mathcal{O}}(u,v)\leq\mathcal{D}_{i}(u,v),\mathcal{D}_{j}(u,v)

there exists a set of classifiers C\mathcal{C} that satisfy individual fairness separately, but do not satisfy AND Fairness under composition.

Fix a pair u,vUu,v\in U which have positive distance for two tasks Ti,TjT_{i},T_{j} and DO(u,v)Di(u,v),Dj(u,v)\mathcal{D}^{\mathcal{O}}(u,v)\leq\mathcal{D}_{i}(u,v),\mathcal{D}_{j}(u,v).

First, select a classifier CC for task ii such that pupv=Di(u,v)p_{u}-p_{v}=\mathcal{D}_{i}(u,v) (Lemma 5 provides the necessary construction procedure). We will show how to select pu,pvp_{u}^{\prime},p_{v}^{\prime} for the classifier CC^{\prime} for task jj such that pupvDj(u,v)|p_{u}^{\prime}-p_{v}^{\prime}|\leq\mathcal{D}_{j}(u,v), but the composition violates AND Fairness. Notice that the difference probability of positive classification under AND is equivalent to

Given the constraints of the theorem statement, there are two possible cases.

Di(u,v)>DO(u,v)\mathcal{D}_{i}(u,v)>\mathcal{D}^{\mathcal{O}}(u,v) (or symmetrically Dj(u,v)>DO(u,v)\mathcal{D}_{j}(u,v)>\mathcal{D}^{\mathcal{O}}(u,v)). This case is trivial; if pupv=Di(u,v)>DO(u,v)|p_{u}-p_{v}|=\mathcal{D}_{i}(u,v)>\mathcal{D}^{\mathcal{O}}(u,v), we can simply select pv=pu=1p_{v}^{\prime}=p_{u}^{\prime}=1 to violate AND Fairness with respect to DO\mathcal{D}^{\mathcal{O}}.

Di(u,v)=Dj(u,v)=DO(u,v)\mathcal{D}_{i}(u,v)=\mathcal{D}_{j}(u,v)=\mathcal{D}^{\mathcal{O}}(u,v). We instead select pu,pvp_{u}^{\prime},p_{v}^{\prime} such that pupv=Dj(u,v)=DO(u,v)p_{u}^{\prime}-p_{v}^{\prime}=\mathcal{D}_{j}(u,v)=\mathcal{D}^{\mathcal{O}}(u,v). Rearranging the equation above, we now have

Then substituting our original choice for pupv=Di(u,v)=DO(u,v)p_{u}-p_{v}=\mathcal{D}_{i}(u,v)=\mathcal{D}^{\mathcal{O}}(u,v)

Thus choosing pup_{u}^{\prime} such that pu+pv>1p_{u}^{\prime}+p_{v}>1 is sufficient to violate the distance for AND Fairness with respect to DO\mathcal{D}^{\mathcal{O}}. (Choosing pu=1p_{u}^{\prime}=1 is sufficient to achieve this.)

Notice that this theorem is only a loose characterization of the cases that will violate AND Fairness, as it only takes advantage of distance under two classifiers.

A.4.3 Implications of functional compositions

We have shown that naïve application of multiple fair classifiers for the same task may result in unfairness. Our characterization of unfairness in the same-task setting is not exhaustive, but it does give us intuition about how to reason about systems where multiple, independent classifiers for the same task must interact. In particular, we have shown for settings like college admissions or loan applications, where the number of applications are generally less than 10, that each bank or college acting fairly in isolation is not enough to ensure fairness of the system as a whole.

The observations on same-task composition are not all doom and gloom, however. Our characterizations indicate that many natural tasks where the number of repeated classifications is large, like advertising, are unlikely to suffer from same-task composition issues, assuming no individuals are systematically excluded from the system.

In the case of multiple task functional compositions, the results are a bit less optimistic, but roughly match our intuition that in scenarios which require consideration of “irrelevant” attributes for the task (such as ability to pay tuition) it may be difficult to guarantee fairness. We discuss other similarly constrained scenarios in Section A.6.

Comparing functional composition to differential privacy, it is important to understand that each component satisfying individual fairness separately (and for different metrics) is not analogous to the composition properties of differential privacy. With differential privacy, we assume a single privacy loss random variable which evolves gracefully with each release of information, increasing in expectation over time. However, with fairness, we may see that fairness loss increases or decreases (depending on the number and type of compositions) in idiosyncratic ways. Moreover, we may need to simultaneously satisfy many different task-specific ‘fairness budgets,’ and a bounded increase in distance based on one task may be catastrophically large for another.

A.5 Multiple-Task Composition

Next, we turn our attention to composition of classifiers for multiple tasks where the outcome for more than one task is decided. The first question we must consider is how to evaluate fairness constraints on systems that affect outcomes for multiple tasks. Multiple Task Fairness, defined next, requires fairness to be enforced independently and simultaneously for each task.

For a set of kk tasks T\mathcal{T} with metrics D1,,Dk\mathcal{D}_{1},\ldots,\mathcal{D}_{k}, a (possibly randomized) system S:U×r{0,1}k\mathcal{S}:U\times r\rightarrow\{0,1\}^{k}, which assigns outputs for task ii in the ithi^{th} coordinate of the output, satisfies multiple task fairness if for all i[k]i\in[k] and all u,vUu,v\in U

Enforcing multiple task fairness makes sense when the tasks, and therefore outcomes, are distinct and incomparable. For example, consider an advertising system which shows users ads for either high paying jobs or home appliances. If two users are similarly qualified for high paying jobs, they should see a similar number of ads for high paying jobs, regardless of their intentions to buy home appliances. Essentially we do not want to allow positive distance for a task TiT_{i} to be used to increase the distance over outcomes for a different task TjT_{j}.

We now pose the relevant problem for multiple task fairness: choice or competitive composition. Clearly if classifiers for each task may independently and fairly assign outputs, the system as a whole satisfies multiple task fairness. However, most systems will require trade-offs between tasks. For example, two activities may be offered at the same time, or a website may only have one slot in which to show an advertisement. We therefore define the following problem:

A (possibly randomized) system S\mathcal{S} is said to be a solution to the single slot composition problem for a set of kk tasks T\mathcal{T} with metrics D1,,Dk\mathcal{D}_{1},\ldots,\mathcal{D}_{k}, if uU\forall u\in U S\mathcal{S} assigns outputs for each task {xu,1,,xu,k}{0,1}k\{x_{u,1},\ldots,x_{u,k}\}\in\{0,1\}^{k} such that

and \forall i[k]i\in[k], and \forall u,vUu,v\in U

The single slot composition problem captures a scenario in which a system can choose at most one of a set of possible outcomes, but need not choose any outcome. For example, an advertising platform may have a single slot to show an ad. Imagine that this advertising system only has two types of ads: those for jobs and those for household goods. If a person is qualified for jobs and wants to purchase household goods, the system must pick at most one of the ads to show. In this scenario, it’s unlikely that the advertising system would choose to show no ads, but the problem specification does not require that any positive outcome is chosen.

To solve the single-slot composition problem we must build a system which chooses at most one of the possible tasks so that fairness is preserved for each task across all elements in the universe. This problem can be extended to consider up to k1k-1 slots, but as in our discussion of OR-fairness, we only formally consider the single-slot version for clarity and ease of reading.

The simplest scenario to consider is a single instance of the single-slot composition problem. For our motivating example, we’ll consider two advertisers competing for a single advertisement slot on a website.

Task-Competitive Composition, defined below, captures the essence of several natural simple compositions.

As only one ad can show at once, we first define the notion of a tie-breaking function:

Implicit in this definition is that if there is no tie to be broken, the single positive classification is preferred. This is a reasonable model both for advertising situations (the advertising platform prefers to have revenue from showing as many ads as possible) and in situations where both outputs are desirable. The tie-breaking function also captures situations where ordering of classifiers (or decisions) is based on a fixed policy or there is time pressure to respond to one classifier before moving on to another.

Consider a set T\mathcal{T} of kk tasks, and a tie-breaking function as defined above. Given a set C\mathcal{C} of classifiers for the set of tasks, define yw={yw,1,,yw,k}y_{w}=\{y_{w,1},\ldots,y_{w,k}\} where yw,i=Ci(w)y_{w,i}=C_{i}(w). The task-competitive composition of the set C\mathcal{C} is defined as

Before stating and proving the more general theorem, we address the simple case in which all wUw\in U have the same strict preference for task TT.

We construct a pair of classifiers C={C,C}\mathcal{C}=\{C,C^{\prime}\} which are individually fair in isolation for the tasks TT and TT^{\prime}, but do not satisfy multiple task fairness when combined with task-competitive composition with a strict preference for TT for all wUw\in U. Task-competitive composition ensures that at most one task can be classified positively for each element, so our strategy is to construct CC and CC^{\prime} such that the distance between a pair of individuals is stretched for the ‘second’ task.

By non-triviality of D\mathcal{D}, there exist u,vu,v such that D(u,v)0\mathcal{D}(u,v)\neq 0. Fix such a pair u,vu,v and let pup_{u} denote the probability that CC assigns 1 to uu, and analogously pv,pu,pvp_{v},p_{u}^{\prime},p_{v}^{\prime}. We use these values as placeholders, and show how to set them to prove the lemma.

Because of the strict preference for TT, the probabilities that uu and vv are assigned 1 for the task TT^{\prime}

Notice that if D(u,v)=0\mathcal{D^{\prime}}(u,v)=0, which implies that pu=pvp_{u}^{\prime}=p_{v}^{\prime}, and pupvp_{u}\neq p_{v}, then this quantity is non-zero, giving the desired contradiction for all fair CC^{\prime} and any CC that assigns pupvp_{u}\neq p_{v}, which can be constructed per Corollary 5.2.

However, if D(u,v)0\mathcal{D^{\prime}}(u,v)\neq 0, take CC^{\prime} such that pupv=D(u,v)|p_{u}^{\prime}-p_{v}^{\prime}|=\mathcal{D^{\prime}}(u,v) and denote the distance pupv=m|p_{u}^{\prime}-p_{v}^{\prime}|=m^{\prime}, and without loss of generality, assume that pu>pvp_{u}^{\prime}>p_{v}^{\prime} and pu<pvp_{u}<p_{v},

Then to violate fairness for TT^{\prime}, it suffices to show that pvpv>pupup_{v}p_{v}^{\prime}>p_{u}p_{u}^{\prime}. Write pv=αpup_{v}=\alpha p_{u} where α>1\alpha>1,

Thus it is sufficient to show that we can choose pu,pvp_{u},p_{v} such that α>pupv\alpha>\frac{p_{u}^{\prime}}{p_{v}^{\prime}}. Constrained only by the requirements that pu<pvp_{u}<p_{v} and pupvD(u,v)|p_{u}-p_{v}|\leq\mathcal{D}(u,v), we may choose pu,pvp_{u},p_{v} to obtain an arbitrarily large α=pvpu\alpha=\frac{p_{v}}{p_{u}} by Corollary 5.3. Thus there exist a pair of fair classifiers C,CC,C^{\prime} which when combined with strictly ordered task-competitive composition violate multiple task fairness. ∎

The intuition for unfairness in such a strictly ordered composition is that each task inflicts its preferences on subsequent tasks. This is most clearly seen when an equal pair for the second task are unequal for the first. Once the first classifier acts, so long as the distance between the two is positive, the pair have unequal probabilities of even being considered by the second classifier, which breaks their equality for that task for any fair classifier.

We now extend Lemma 10 to the more general setting, in which there need not be a strict preference, and find that the problems with unfairness generalize to this case.

For any two tasks TT and TT^{\prime} with nontrivial metrics D\mathcal{D} and D\mathcal{D^{\prime}} respectively, there exists a set C\mathcal{C} of classifiers which are individually fair in isolation but when combined with task-competitive composition violate multiple task fairness for any tie-breaking function.

Constrained only by pupvD(u,v)|p_{u}^{\prime}-p_{v}^{\prime}|\leq\mathcal{D^{\prime}}(u,v), we can choose pu,pvp_{u}^{\prime},p_{v}^{\prime} to be any arbitrary positive ratio per Corollary 5.3, thus we can select a satisfactory CC^{\prime} to exceed the allowed distance.

Thus we have shown that for the cases where the tie-breaking functions are identical for uu and vv and when the tie-breaking functions are different, there always exists a pair of classifiers C,CC,C^{\prime} which are fair in isolation, but when combined in task-competitive compositiondo not satisfy multiple task fairness which completes the proof. ∎

The natural intuition for task-competitive composition might be that tie-breaking preferences could ease unfairness for some classifiers. However, in many natural tasks we actually expect preferences to work against us. Indeed, when one task is strictly preferred over the other, a very natural case, task-competitive composition always splits pairs of individuals who are unequal in the preferred task and equal in the other task. For example, consider the case of free school breakfasts and a new SAT preparation class offered before school. Students qualified for the SAT class must decide if they would rather eat breakfast or attend SAT class. The natural human preference not to be hungry will likely win. The right solution here is to offer breakfast in a way that doesn’t conflict with SAT class attendance (eg, offering bagged breakfast that can be taken to class).

Another important consideration in task-competitive compositions is whose tie-breaking function is used. We might initially assume the choice is made by the individuals classified, but in fact, it could be made by the classifiers (either independently or jointly) or the system itself. Advertising auctions are a good example where the tie-breaking function is related to the bid for each person by each advertiser, not necessarily each person’s preference to see the ad.

Although the formal statement of Theorem 11 only implies that individually fair classifiers exist that exhibit unfairness under task-competitive composition, our intuition suggests that this happens often in practice and that small relaxations will not be sufficient to alleviate this problem, as the phenomenon has been observed empirically . To see this, we revisit the proof of Theorem 11, in particular the requirement that β/α>pu/pv\beta/\alpha>p_{u}^{\prime}/p_{v}^{\prime} to build our intuition.

We now show how to fairly compose tasks for the single slot composition problem. Perhaps the most obvious solution is to remove the conflict in the tasks. Ideally each task can be classified separately and the outcome decided without influencing other tasks. In practice, we know that this is not always feasible.

In some special scenarios, we could choose to optimize the classifiers together with knowledge of the tie-breaking function, both utility functions and both metrics. This allows each classifier to appropriately respond to the other to achieve fairness without sacrificing too much utility in some, but not all cases of task-competitive composition. However, this would require significant coordination and cooperation on the part of those responsible for each task, so this is unlikely to be practical in some situations.

Fortunately, in some situations there is a general purpose mechanism for the single slot composition problem which requires no additional information in learning each classifier and no additional coordination between the classifiers.

For any set of kk tasks T\mathcal{T} with metrics D1,,Dk\mathcal{D}_{1},\ldots,\mathcal{D}_{k}, the system S\mathcal{S} described in Algorithm 2, RandomizeThenClassify\mathsf{RandomizeThenClassify},

achieves multi-task fairness for the single slot composition problem given any set of classifiers C\mathcal{C} for the tasks which are individually fair in isolation.

Consider the procedure outlined in Algorithm 2. For each element, the procedure outputs a single positive classification by construction, so the procedure satisfies that constraint of the single slot composition problem.

Note that as the same probability distribution X\mathcal{X} and set of classifiers are used for each element wUw\in U, each element has equal probability of having task TT selected and the subsequent classifications for that task are fair. So the probability of positive classification in any task is Pr[tX=T]Pr[CT(w)=1]\Pr[t\sim\mathcal{X}=T]*\Pr[C_{T}(w)=1]. So the difference in probability of positive classification for an arbitrary task TT is

which satisfies individual fairness as long as CTC_{T} is individually fair in isolation.

Thus the system which applies RandomizeThenClassify to every element in the universe is a solution to the single slot composition problem as long as each CCC\in\mathcal{C} is individually fair in isolation. ∎

RandomizeThenClassify\mathsf{RandomizeThenClassify} has several nice properties. First, it requires no coordination in the training of the classifiers. In particular, it does not require any sharing of objective functions. Second, it preserves the ordering of elements by each classifier. That is, if Pr[Ci(u)=1]>Pr[Ci(v)=1]\Pr[C_{i}(u)=1]>\Pr[C_{i}(v)=1] then Pr[RandomizeThenClassify(u)i=1]>Pr[RandomizeThenClassify(v)i=1]\Pr[\mathsf{RandomizeThenClassify}(u)_{i}=1]>\Pr[\mathsf{RandomizeThenClassify}(v)_{i}=1]. Finally, it can be implemented by a platform or other third party, rather than requiring the explicit cooperation of all classifiers. The primary downside of RandomizeThenClassify\mathsf{RandomizeThenClassify} is that it drastically reduces allocation (the total number of positive classifications) for classifiers trained with the expectation of being run independently.

A.5.2 Summary

One critique of the single slot problem is the idea that more qualified people should simply be shown more ads, or allowed to split time between slots. This is a matter of design, and our mechanisms only look at the very simple design paradigm of a single slot. It’s not hard to imagine that a good user interface could manage two slots for users where competition is very high, but this would require a careful analysis of the cognitive load and impact on that user. However, at some point, there will not be room for additional slots, or scheduling flexibility, to allow attendance to all events, and at that point we will be in the same setting explored here.

We primarily consider the case of honest designers with good intentions. However, failing to enforce multiple-task fairness allows for a significant expansion of the “catalog of evils” outlined in . For example, let us assume that more women than men emphasize team work and organizational skills on their resumes. An employer seeking to hire more men than women for a technical role could aggressively advertise a second role in teamwork management (for which there is only one opening) for which many women will be qualified in order to prevent women from seeing the more desirable technical position ad. This “generalized steering” may allow the employer to divert members of a certain group away from a desirable outcome, in analogy to the illegal “steering” of minorities to less desirable credit card offerings.

Given a pair of tasks TT and TT^{\prime} with metrics D\mathcal{D} and D\mathcal{D}^{\prime}, our goal is to ensure that the system produces outputs for each task with distributions on outcomes that are 1-Lipschitz with respect to their respective metrics. Taking inspiration from Differential Privacy, one might try allocating a fairness loss ‘budget’ between the (potentially interfering) classifiers for the two tasks. However, such a budget would have to take into account the distances under both tasks – leading to an unnecessary reduction in optimization flexibility. For example, if a pair u,vu,v are close under D\mathcal{D}, but far under D\mathcal{D}^{\prime}, the budget must be the minimum of the two to prevent potential unfairness for TT (this follows from Theorem 9). Algorithm 2 allows more flexibility than such a budgeting solution without additional coordination in learning each classifier.

A.6 Dependent Composition

Thus far, we have restricted our attention to the mode of operation in which classifiers act on the entire universe of individuals at once and each individual’s outcome is decided independently. In practice, however, this is an unlikely scenario, as classifiers may be acting as a selection mechanism for a fixed number of elements, may operate on elements in arbitrary order, or may operate on only a subset of the universe.

In this section, we consider the problems associated with selecting sets of individuals from the universe when outcomes may not be decided independently for each individual. Somewhat abusing the term “composition,” these problems can be viewed as a composition of the classifications of elements of the universe. We roughly divide these topics into Cohort Selection problems, when a set of exactly nn individuals must be selected from the universe, and Universe Subset problems, when only a subset of the relevant universe for the task is under the influence of the classifier we wish to analyze or construct.

Within these two problems we will also consider several relevant settings:

Online versus offline: in many real-world settings, immediate classification response is critical. For example, advertising decisions for online ads must be made immediately upon impression and employers must render employment decisions quickly or risk losing out on potential employees or taking too long to fill a position.

Random permutations versus adversarial ordering: when operating in the online setting, the ordering of individuals may be adversarial or a random permutation of the universe (or subset). In practice, we expect that ordering will most likely not be a random permutation on the universe. For example, the order in which individuals apply for a job opening may be influenced by their social connections with existing employees, which impacts how quickly they hear about the job opening.

Known versus unknown subset or universe size: it is rare that a single classifier dictates the outcomes for a precisely defined universe or subset, and instead they generally act on a subset or universe of unknown size. The subset size may not be known in advance if it is generated randomly, or if the classifier simply doesn’t have access to hidden subset selection processes. For example, an advertiser may know the average number of individuals who visit a website on a particular day, but be uncertain on any particular day of the exact number, and the fraction of who are interested in the products or services they wish to advertise.

Constrained versus unconstrained selection: in many settings there are arbitrary constraints placed on selection of individuals for a task which are unrelated to the qualification or metric for that task. For example, to cover operating costs, a college may need at least n/2n/2 of the nn students in a class to be able to pay full tuition.

In dependent composition problems, it is important to pay careful attention to the source of randomness used in computing distances between distributions over outcomes. Taking inspiration from the experiment setup found in many cryptographic definitions, we formally define two problems: Universe Subset Classification and Cohort Selection. We introduce new notation in the definitions below, with additional exposition.

Given a universe UU, let Y\mathcal{Y} be a distribution over subsets of UU. Let X={X(V)}VU\mathcal{X}=\{\mathcal{X}(V)\}_{V\subseteq U} be a family of distributions, one for each subset of UU, where X(V)\mathcal{X}(V) is a distribution on permutations of the elements of VV. Let Π(2U)\Pi(2^{U}) denote the set of permutations on subsets of UU. Formally, for a system S:Π(2U)×{0,1}U\mathcal{S}:\Pi(2^{U})\times\{0,1\}^{*}\rightarrow U^{*}, we define the following experiment.

Experiment(S,X,Y,u)\mathsf{Experiment}(\mathcal{S},\mathcal{X},\mathcal{Y},u):

Run S\mathcal{S} on π\pi with randomness rr, and output 11 if uu is selected (positively classified).

The system S\mathcal{S} is individually fair and a solution to the Universe Subset Classification Problem for a particular (X,Y)(\mathcal{X},\mathcal{Y}) pair if for all u,vUu,v\in U

Note that for any distinct individuals u,vUu,v\in U, in any given run of the experiment VV may contain u,u, v,v, neither or both.

We adopt the convention of specifying S\mathcal{S} independently of X\mathcal{X} and Y\mathcal{Y} as these two distributions are likely not under the control of S\mathcal{S}, and in practice may not even be known to S\mathcal{S}. For example, an employer may create a resume screening system without knowledge of the ordering or the subset of eligible candidates who will apply within a week of posting a new job. Y\mathcal{Y} may capture that local job-seekers are more likely to apply than those from out of state, and X\mathcal{X} may capture that job-seekers with social ties to current employees will apply before other local candidates. However, we still want the employer to fairly hire regardless of the ordering of the applicants.

Next, we introduce Cohort Selection, which is identical to the Universe Subset Classification Problem, with the additional requirement that the system must select a set of exactly nn elements from UU.

Given a universe UU, an integer nn and a task with metric D\mathcal{D}, select a set of nn individuals such that the probability of selection is 1-Lipschitz with respect to D\mathcal{D}, where the probability of selection is taken over all randomness in the system. As above, let Y\mathcal{Y} be a distribution over subsets of UU. Let X={X(V)}VU\mathcal{X}=\{\mathcal{X}(V)\}_{V\subseteq U} be a family of distributions, one for each subset of UU, where X(V)\mathcal{X}(V) is a distribution on permutations of the elements of VV. Let Π(2U)\Pi(2^{U}) denote the set of permutations on subsets of UU. Formally, for a system Sn:Π(2U)×{0,1}Un\mathcal{S}_{n}:\Pi(2^{U})\times\{0,1\}^{*}\rightarrow U^{n}, we define the following experiment.

Formally, for a system Sn:U×rUn\mathcal{S}_{n}:U\times r\rightarrow U^{n}, we define the following experiment.

Experiment(Sn,X,Y,u)\mathsf{Experiment}(\mathcal{S}_{n},\mathcal{X},\mathcal{Y},u):

Run Sn\mathcal{S}_{n} on π\pi with randomness rr, and output 11 if uu is selected (positively classified).

Cohort Selection is Universe Subset Classification with the additional constraint that the system must select exactly nn elements.

First we consider the simplest version of the cohort selection problem (Definition 19): choosing a cohort of nn individuals from the universe UU when the entire universe is known and decisions are made offline. In this case, Y\mathcal{Y} is very simple, with weight 11 on the set UU (i.e. Y(V)=0\mathcal{Y}(V)=0 for all VUV\subsetneq U), and X\mathcal{X} is not meaningful, as the system has access to the entire set, and can randomize the order of the elements.

A simple solution is to choose a permutation of the elements in UU uniformly at random, and then apply a fair classifier CC until nn are selected. Algorithm 3 works through a list initialized to a random permutation π(U)\pi(U), classifying elements one at a time and independently until either (1) nn elements have been selected or (2) the number of remaining elements in the list equals the number of remaining spots to be filled. Case (2) is referred to as the “end condition”. Elements in the “end condition” are selected with probability 1.

PermuteThenClassify\mathsf{PermuteThenClassify} is a solution to the Cohort Selection Problem for any CC that is individually fair when operating on all elements of the universe.

Let u,vu,v be an arbitrary pair of distinct elements in UU. Let π\pi be an arbitrary permutation of UU, and let λ\lambda and μ\mu denote the location of uu and vv respectively in the list L=π(U)L=\pi(U), as shown in Figure 7.

The proof proceeds by reasoning about the probability that uu and vv are selected at their given positions in π\pi, and a related permutation which switches their positions πλ,μ\pi_{\lambda,\mu} and using these relations to determine a bound on their differences in probability of selection.

To determine Pr[λ reachedπ]\Pr[\lambda\text{ reached}|\pi] we need to determine all of the ways that λ1(n1)=λn\lambda-1-(n-1)=\lambda-n of the first λ1\lambda-1 elements are not included in MM. Define a configuration to be a triple of disjoint sets, {T+,T,TE}\{T^{+},T^{-},T^{E}\} such that each is a subset of the elements preceding λ\lambda in π\pi, and the union is the entire set of elements preceding λ\lambda in π\pi. T+T^{+} is the set of positively classified elements (excluding those in the end condition), TT^{-} is the set of negatively classified elements, and TET^{E} is the set of elements positively classified as part of the end condition. We say that a configuration is valid for λ\lambda if there is at least one remaining slot available, that is T+TE<n|T^{+}\cup T^{E}|<n.

Denote all of the possible valid triples of elements by {(Ti+,Ti,TiE)}i[ξ]\{(T_{i}^{+},T_{i}^{-},T_{i}^{E})\}_{i\in[\xi]} where ξ\xi is the number of valid triples. Let T+\mathcal{T}^{+} be the collection of sets {Ti+}i[ξ]\{T_{i}^{+}\}_{i\in[\xi]}, and define T\mathcal{T}^{-} and TE\mathcal{T}^{E} analogously. Then T+TE\mathcal{T}^{+}\cup\mathcal{T}^{E} and T\mathcal{T}^{-} are the sets of sets of included and excluded elements, so that Ti+TiETiT^{+}_{i}\cup T^{E}_{i}\cup T^{-}_{i} specifies fully which of the elements before position λ\lambda are included in MM in the ithi^{th} configuration, and T+\mathcal{T}^{+}, TE\mathcal{T}^{E}, T\mathcal{T}^{-} contain all valid configurations of elements that ensure at least λn\lambda-n elements are not included - that is, that there is at least one slot left for the element at λ\lambda. Notice that TET^{E} may be empty. We can now express the probability that λ\lambda is reached as sum of probabilities over all possible configurations.

where, as before, we denote the probability that C(w)=1C(w)=1 as pwp_{w} for all wUw\in U for easier reading, and the probability is over the randomness of the classifier, as the permutation is fixed.

For a given permutation π\pi, there are two possibilities - either λ<μ\lambda<\mu or λ>μ\lambda>\mu. We bound the difference in probability of selection for uu and vv in each of these cases, and then use these bounds to conclude that the overall difference is not too large.

Case 1: If λ<μ\lambda<\mu, then the probability of λ\lambda being reached is completely independent of the outcome of the element at μ\mu. Consider the permutation πλ,μ\pi_{\lambda,\mu} which is identical to π\pi, except that the elements at positions λ\lambda and μ\mu are switched. Notice that if λ\lambda is in the end condition, then the probability of λ\lambda being selected is 1 in π\pi, and the probability of μ\mu being selected in πλ,μ\pi_{\lambda,\mu} is also 1. Thus we have

Define τ=i[ξ]xTi+pxyTi(1py)1\tau^{*}=\sum_{i\in[\xi]}\prod_{x\in T^{+}_{i}}p_{x}\prod_{y\in T^{-}_{i}}(1-p_{y})\leq 1. Notice that τ(pupv)pupv|\tau^{*}(p_{u}-p_{v})|\leq|p_{u}-p_{v}|.

Case 2: When μ<λ\mu<\lambda, we need a bit more analysis. Consider again the probability that λ\lambda is reached, and now write it in terms of how the element at position μ\mu is classified. For simplicity, we abuse notation and use μ\mu to denote the element at location μ\mu.

Next, we pull out the portion of the products related to index μ\mu.

Now consider the probability the element at λ\lambda, is selected given that λ\lambda is reached. If μTE\mu\in T^{E} then since λ\lambda comes after, then λ\lambda is selected with probability 1, as λ\lambda must also be in the end condition. If μTE\mu\notin T^{E}, then the probability of selecting λ\lambda is either 11 or pλp_{\lambda} depending on whether the end condition is triggered by the time λ\lambda is reached. Each configuration (Ti+,Ti,TiE)(T^{+}_{i},T^{-}_{i},T^{E}_{i}) specifies whether the end condition is reached by the time λ\lambda is encountered, as it specifies the entire state of selections up to λ\lambda. Denote the indices of configurations which result in λ\lambda in the end condition as EE. That is, E={iλTiE}E=\{i|\lambda\in T_{i}^{E}\}.

Now, we can adapt the equations above to reflect the probability that λ\lambda is selected given π\pi:

Notice that for π\pi and πλ,μ\pi_{\lambda,\mu}, the sums of products exclusive of pλp_{\lambda} and pμp_{\mu} above are identical. For simplicity, define

iτi\sum_{i\in}\tau_{i} is equivalent to the probability that all elements before λ\lambda excluding μ\mu take on any of the valid configurations, eg, those configurations that lead to at least one slot being left by the time λ\lambda is reached. Therefore iτi1\sum_{i\in}\tau_{i}\leq 1. We can therefore rewrite more simply and substitute back in our original u,vu,v as

Now consider the difference between the probability that uu is selected under π\pi, and the probability that vv is selected under πλ,μ\pi_{\lambda,\mu}:

where the last inequality follows from the sum of the τ\tau’s representing disjoint cases, yielding the desired bound on the distance.

Now we combine Cases 1 and 2 to reach our desired conclusion: the difference in probability that uMu\in M and vMv\in M is the sum of the difference in each permutation multiplied by the probability of each permutation being selected. More formally, denote the set of all permutations on [U][|U|] as Π\Pi:

Notice that for each π\pi, there is exactly one πλ,μ\pi_{\lambda,\mu}, so we can combine the sums:

Finally, using our bounds from Cases 1 and 2, we conclude

Although PermuteThenClassify\mathsf{PermuteThenClassify} satisfies fairness, and is simple to implement, depending on how well the classifier CC has been adjusted for the number of elements to be selected versus the universe size, it may perform sub-optimally. For example, if CC was tuned to select only O(log(n))O(\log(n)) elements in expectation under normal independent classification, but ends up being used to select O(n)O(n) elements with permute and classify, then there may be an excessive number of elements (O(nlog(n))\approx O(n-\log(n))) chosen arbitrarily in the end condition. We now propose a second mechanism, Weighted Sampling, to address this shortcoming.

For any individually fair classifier CC such that the PruU,r{0,1}[C(u,r)=1]1/U\Pr_{u\sim U,r\sim\{0,1\}^{*}}[C(u,r)=1]\geq 1/|U|, weighted sampling is individually fair.

Fix an arbitrary individually fair classifier CC and two elements uvu\neq v from UU. The difference between the probability of uu and vv being included in MM under weighted sampling is

where probability is taken over the randomness of the weighted sampling mechanism.

Denote the set of subsets of UU of size nn in which both uu and vv are present as Tu,v\mathcal{T}^{u,v} and the subsets of UU of size nn in which exactly one of uu or vv is present as Tu\mathcal{T}^{u} and Tv\mathcal{T}^{v}, respectively. Then we can write PrMX[uM]=PrMX[MTu,v]+PrMX[MTu]\Pr_{M\sim\mathcal{X}}[u\in M]=\Pr_{M\sim\mathcal{X}}[M\in\mathcal{T}^{u,v}]+\Pr_{M\sim\mathcal{X}}[M\in\mathcal{T}^{u}], and likewise for vv. So we can rewrite our difference as:

As expected, to reason about the distance we need only consider the sets where exactly one element appears. Consider the elements of Tu\mathcal{T}^{u} and Tv\mathcal{T}^{v}. For every set TiuTuT_{i}^{u}\in\mathcal{T}^{u}, there is a corresponding set TivTvT_{i}^{v}\in\mathcal{T}^{v} which replaces uu with vv, that is {Tiu\{u}}{v}=Tiv\{T_{i}^{u}\backslash\{u\}\}\cup\{v\}=T_{i}^{v}. Notice that there are no sets in Tv\mathcal{T}^{v} which cannot be formed in this way from Tu\mathcal{T}^{u} and vice versa. So we can further split these into sums:

For convenience, let η\eta denote the normalization factor j[L]w(Tj)\sum_{j\in[|L|]}w(T_{j}). Recall that w(u)=puw(u)=p_{u} uU\forall u\in U using our previous notation, so we can simplify the above to

So as long as Tu/ηc|\mathcal{T}^{u}|/\eta\leq c, we have a cc-Lipschitz condition on the mechanism.

Recall that LL is the set of all sets of size nn, so taking wˉ\bar{w} as the average weight of the sets in LL, we have

Expanding out the binomial coefficients, we have

So as long as the average weight of a set of size nn is larger than n/Un/|U|, then the desired 1-Lipschitz condition is maintained. ∎

There is a simple intuition for the requirement for the average set weight. Imagine there was a single element, uu, with positive weight in a universe of 1000n1000n elements. The sets including uu are the only sets with positive weight, and as such, uu is guaranteed to be selected, even if uu’s original weight pup_{u} is negligible. This guaranteed selection can pull uu too far from its neighbors, who all have 0 probability of selection. To avoid this it suffices to have that there is enough weight across all of the elements to fill sets on average.

Comparing Weighted Sampling with PermuteThenClassify\mathsf{PermuteThenClassify}, Weighted Sampling does have an additional constraint on the fair classifier used with respect to average set weight, but in practice this is unlikely to be difficult to achieve. With respect to utility, if we assume a simple linear utility function (eg, the utility of an element is equivalent to puαp_{u}*\alpha) for some fixed constant α\alpha, we conclude that the utility of Weighted Sampling is likely to exceed the utility of PermuteThenClassify\mathsf{PermuteThenClassify}. This follows simply from the observation that the probability of selection for any cohort in Weighted Sampling is proportional to its weight, whereas the probability of selection for any cohort in PermuteThenClassify\mathsf{PermuteThenClassify} is proportional to the weight of the elements selected outside of the end condition. However, with either mechanism, we can use an existing fair classifier to achieve a fair and nontrivial utility outcome for the fair cohort selection problem. With respect to computational complexity, WeightedSampling\mathsf{WeightedSampling} is expensive, as one must compute weights and sample from the (Un){|U|\choose n} possible subsets. However, in practice this may be alleviated by using a fair classifier which weights many “irellevant” elements 0, thus reducing the number of possible sets.

A.6.2 Online Cohort Selection

Now that we have seen fair solutions for the offline cohort selection problem, we consider the online version of the problem. In the online version, S\mathcal{S} must respond immediately to each element encountered, so intuitively the choice of ordering is much more important.

A system S\mathcal{S} is a solution to the Online Cohort Selection Problem if it classifies the ithi^{th} element before being given access to the i+1sti+1^{st} and it solves the Cohort Selection Problem.

Having seen PermuteThenClassify\mathsf{PermuteThenClassify}, it’s easy to see that if the ordering of the stream πX\pi\sim\mathcal{X} is chosen uniformly at random from all permutations over the universe and the size of the universe is known, then there is a solution to Online Cohort Selection Problem.

If the ordering of the stream π\pi is drawn uniformly at random from the permutations over the elements of UU, SUS_{|U|}, and the length of the stream is known, then if there exists a fair classifier for the task, there exists a solution to the online cohort selection problem.

Simulate Algorithm 3, omitting the initial permutation step, with the fair classifier. ∎

However, if the ordering is adversarial, there may be no fair solutions, or the fair solutions may have trivial utility. In our setting, adversarial ordering is captured by the distribution X(U)\mathcal{X(U)} which may place certain elements earlier or later in the orderings with high probability. For example, an adversarial X(U)\mathcal{X(U)} may have the probability that uu is placed before vv greater than 34\frac{3}{4}, in the hope of giving uu a higher chance of being selected than vv.

If the ordering of the stream is adversarial, and the stream contains all elements of UU, and U|U| is known, there exists a solution to the strict stream cohort selection problem.

Sample uniformly at random from the set of all strings of length U|U| with weight nn, s{s{0,1}U,s=n}s^{*}\sim\{s\in\{0,1\}^{|U|},|s|=n\} and select the elements at the positive coordinates of ss^{*}. ∎

Although this solution is fair, the utility is clearly no better than choosing randomly.

If the ordering of the stream is adversarial, but U|U| is unknown, then there exists no solution to the online cohort selection problem.

Consider VUV\subseteq U such that V=n|V|=n. Choose π\pi a permutation on nn elements. Then each element has probability 1 of selection by assumption that M\mathcal{M} is a solution to the Cohort Selection Problem. Fix wUw\in U such that D(w,u)<1\mathcal{D}(w,u)<1 for some uVu\in V, and wVw\notin V. Consider the ordering of V{w}V\cup\{w\} which orders the elements of VV using π\pi and places ww in the last position. However, ww has zero probability of selection, because M\mathcal{M} always selects the first nn elements, so M\mathcal{M} cannot be individually fair, as d(u,w)=1>D(u,w)d(u,w)=1>\mathcal{D}(u,w). ∎

It may be tempting to consider “fixing” this impossibility by only requiring that our system select nn individuals with high probability, allowing for some failure on small universes. However, extending this for many possible sizes of universe is non-trivial, and the “fix” breaks down.

A.6.3 Constrained Cohort Selection

Next we consider the problem of selecting a cohort with an external requirement that some fraction of the selected set is from a particular subgroup.

Given a universe UU, pp\in, a subset AUA\subset U, and a metric for the task D\mathcal{D}, solve the cohort selection problem with the added requirement that at least a pp fraction of the members of the selected cohort are in AA.

This problem captures situations in which external requirements cannot be ignored. For example, if a certain budget must be met, and only some members of the universe contribute to the budget, or if legally a certain fraction of people selected must meet some criterion (as in, demographic parity).

Before we consider the more difficult problem of satisfying individual fairness, note that to satisfy intra-group Fairness, that is, d(u,v)D(u,v)d(u,v)\leq\mathcal{D}(u,v) for all u,vAu,v\in A and for all u,v{U\A}u,v\in\{U\backslash A\}, one straightforward method would be to run PermuteThenClassify\mathsf{PermuteThenClassify} on each group separately with nA=npn_{A}=np and nB=nnpn_{B}=n-np. (For notational convenience, we henceforth write U\A=BU\backslash A=B). In some settings, this solution may be better than imposing no fairness constraint at all even though it is not truly individually fair. However, satisfying universal individual fairness is a far more difficult task, and for non-trivial constraints and universes may be impossible.

To understand the cases where constrained cohort selection is impossible, we first introduce the notion of γ\gamma-equivalence, which will allow us to describe sufficiently interesting distance relations across the subgroups.

Given a metric D\mathcal{D} over UU and A,BUA,B\subseteq U such that AB=A\cap B=\emptyset, BB is said to be γ\gamma- equivalent to AA if and only if there exists a bipartite graph (A,B,E)(A,B,E) with all elements of AA represented by nodes with out-degree kk and all elements of BB represented by nodes with in-degree 11 such that the neighborhood of each xAx\in A contains only elements yiBy_{i}\in B such that D(x,yi)γ\mathcal{D}(x,y_{i})\leq\gamma.

We will find γ\gamma-equivalence to be a useful rough approximation of how similar two groups are. We start with a simple warm-up lemma to describe how dissimilarly AA and BB may be treated if BB is γ\gamma-equivalent to AA. From the constraint, we have that pn/Apn/|A| is a lower bound for the average acceptance rate of AA and (1p)n/B(1-p)n/|B| is an upper bound on the average acceptance rate for BB. We now this to γ\gamma-equivalence in the following observation and lemma.

The constrained cohort selection problem for a universe UU with groups AA and BB such that BB is γ\gamma-equivalent to AA, where γ<pnA(1p)nB\gamma<|\frac{pn}{|A|}-\frac{(1-p)n}{|B|}|, has no individually fair solution.

Observation 18 is a special case of Lemma 19, proved next. Roughly speaking, Observation 18 captures the intuition that if the distribution of talent between two groups is equivalent, but the acceptance rates for each group are very different, then the system cannot be individually fair.

To build intuition, suppose the universe UU is partitioned into sets AA and BB, where n/2=A=B/5n/2=|A|=|B|/5. Suppose further that the populations have the same distribution on ability, so that the set BB is a “blown up” version of AA, meaning that for each element uAu\in A there are 5 corresponding elements Vu={vu,1,...,vu,5}V_{u}=\{v_{u,1},...,v_{u,5}\} such that D(u,vu,i)=0\mathcal{D}(u,v_{u,i})=0, 1i51\leq i\leq 5, u,uA VuVu=\forall u,u^{\prime}\in A~{}V_{u}\cap V_{u^{\prime}}=\emptyset, and B=uAVuB=\cup_{u\in A}V_{u}. Let p=12p=\frac{1}{2}. The constraint requires all of AA to be selected; that is, each element of AA has probability 1 of selection; in contrast, the average probability of selection for an element of BB is 15\frac{1}{5}. Therefore, there exists vBv\in B with selection probability at most 1/51/5. Letting uAu\in A such that vVuv\in V_{u}, D(u,v)=0\mathcal{D}(u,v)=0 but the difference in probability of selection is at least 45\frac{4}{5}.

To give ourselves a tighter characterization, we prove the following theorem which uses γ\gamma- equivalence of subgroups of BB to achieve a tighter bound.

The constrained cohort selection problem for a universe UU with groups AA and B=U\AB=U\backslash A such that there is a partitioning of B={B1,,Bt}B=\{B_{1},\ldots,B_{t}\} such that each subset BiB_{i} is γi\gamma_{i}-equivalent to AA, and where (1p)n/B<pn/A+i[t]βiγi(1-p)n/|B|<pn/|A|+\sum_{i\in[t]}\beta_{i}\gamma_{i} for βi=Bi/B\beta_{i}=|B_{i}|/|B| has no individually fair solution.

Assume for the sake of contradiction that there exists a mechanism M\mathcal{M} which satisfies individual fairness for the constrained cohort selection problem instance above. The average probability of acceptance for each group can be written

where pwp_{w} for wUw\in U denotes the probability that ww is accepted by M\mathcal{M}. The inequalities arise from the constraint that at least a pp-fraction of the elements chosen must be from AA. Now consider the subset BiB_{i} of BB, which contains the elements which are γi\gamma_{i}-equivalent to AA. Fix an arbitrary i[t]i\in[t]. Let Gi=(A,Bi,Ei)G_{i}=(A,B_{i},E_{i}) denothe the bipartite graph whose existence is given by the definition of γi\gamma_{i}-equivalence of BiB_{i} to AA. For all uAu\in A, let Γi(u)Bi\Gamma_{i}(u)\subseteq B_{i} denote the neighbors of uu in GiG_{i}.

Where kik_{i} corresponds to the number of elements in BiB_{i} which are mapped to by each element of AA, that is kiA=Bik_{i}|A|=|B_{i}|. Because M\mathcal{M} is assumed to be individually fair, we know that pypx±γip_{y}\in p_{x}\pm\gamma_{i} for the xx such that yΓi(x)y\in\Gamma_{i}(x). So for each xAx\in A, define ry,x=px+pyr_{y,x}=-p_{x}+p_{y} for each yΓi(x)y\in\Gamma_{i}(x). So we have

By construction,ry,x±γir_{y,x}\in\pm\gamma_{i}, so we can bound the final sum:

Now, consider how we would write μB\mu_{B} as a weighted sum of μBi\mu_{B_{i}}:

So the difference μAμB\mu_{A}-\mu_{B} is at most i[t]βiγi\sum_{i\in[t]}\beta_{i}\gamma_{i}. However, by assumption μAμB>i[t]βiγi\mu_{A}-\mu_{B}>\sum_{i\in[t]}\beta_{i}\gamma_{i}, yielding a contradiction.

Notice that if there is a single subset in the partition, Theorem 19 is equivalent to Lemma 18. Essentially the Theorem states that if there is a significant fraction of the group BB which is γ\gamma-close to AA, then the average difference in probability cannot be too much larger than γ\gamma. Although the characterization isn’t completely tight, it can still be useful for building our intuition. Rearranging the terms above, we have that pp, the fraction of those selected that must be in AA, cannot exceed n+Bi[t]βiγi(B/A+1)n\frac{n+|B|\sum_{i\in[t]}\beta_{i}\gamma_{i}}{(|B|/|A|+1)n}.

For example, imagine that 10% of students applying to a university who cannot pay (B) have distributions which are 00-equivalent to students who can pay (A). Another 50% of students in BB are .1.1-equivalent to A, and the remaining 40% of students in BB are .25.25-equivalent to A. These distributions are quite different, but even so the difference in average acceptance rate can be at most .4.25+.5.1+.10=.15.4*.25+.5*.1+.1*0=.15. If B=1000|B|=1000 and A=100|A|=100, and we wish to select n=550n=550 students, then the fraction of students required to be from AA cannot exceed 550+1000(.15)(1000/100+1)550.11\frac{550+1000(.15)}{(1000/100+1)550}\approx.11. Any university that required 25% of students to be able to pay in order to meet their budgetary constraints, under these distributions and relative group sizes, would see from Theorem 19 that there is no individually fair solution for their cohort selection problem.

For practical use, it may be necessary to expand AA and BB by duplicating all elements in order to achieve whole number mappings, but that it does not impact the logic of the proof and the bounds.

A.6.4 Universe Subsets

There is an important distinction to be made between when the classifier has the ability to assign outcomes to the entire universe, or only to a subset. Initially, Definitions 18, 19 and 20 may seem impossible to satisfy when Y\mathcal{Y}, the distribution on subsets, is non-trivial. As the classifier can only act on VV, there may be unfairness or allocations in U\VU\backslash V that cannot be remedied or matched by any action taken by the classifier under consideration. In particular, if any elements are completely missing from VV, that is, there is some element wUw\in U which is contained in no subsets with positive weight under Y\mathcal{Y}, then fair solutions may be difficult to achieve. For example, if one school district can afford to provide musical instruments and teachers for an after-school orchestra, but the other cannot, then if students aren’t allowed to transfer between school districts it will be difficult to ensure individual fairness without some (potentially unrealistically expensive) intervention in the second school district.

(Informal) If the elements of U\VU\backslash V are mapped to outcomes unavailable to CC or their outcomes are unknown, then no choice of CC is guaranteed to solve the Universe Subset Classification Problem for nontrivial distributions Y\mathcal{Y} on subsets of UU.

The proposition follows from the simple observation that if elements of U\VU\backslash V are mapped to unreachable outcomes (for example, a resource which CC cannot provide for a particular task), then there is no distribution over outcomes CC can utilize to satisfy similar treatment of similar individuals if Y\mathcal{Y} maps some elements to VV with higher probability than others.

We now show that there are some, admittedly limited, cases where the classifier can still ensure individual fairness for the whole universe. Before we describe these settings, we introduce a weaker notion of fairness, Subset Individual Fairness, which we will use to reason about how to behave fairly when the rest of the system is reasonably well behaved on the subset of the universe on which it operates.

Given a subset VUV\subseteq U, a task and a metric D\mathcal{D}, a possibly randomized system S:V×{0,1}{0,1}\mathcal{S}:V\times\{0,1\}^{*}\rightarrow\{0,1\} is Subset Individually Fair on VV if for all u,vVu,v\in V the distribution over outcomes is 1-Lipschitz wrt D\mathcal{D}, that is,

It is useful to have a notion of Subset Individual Fairness, as there are some scenarios where components that satisfy Subset Individual Fairness may be easier to compose into fair systems. Indeed, when we consider the system version of Lemma 5, Subset Individual Fairness suffices to allow fair classification of elements in the rest of the universe.

Consider the problem of assigning high school students to public schools. Some fraction of the universe of potential high school students will be diverted to private schools and may have zero probability of attending public school. However, our goal is still to ensure individual fairness for the whole universe of high school students, not just those attending public school. The issue is treating those students in the public schools similarly to those in the private schools. This scenario is more challenging, as the classifier under control of the public school system is not the sole point of determination for outcomes for the entire universe – it only controls the outcomes for students attending public schools.

Imagine that among private schools, there are schools which focus on the humanities and general education, and schools which focus on science, and the assignment procedure between these schools is fair with respect to students’ talents in these subjects. We assume the metric captures students preferences over science focus versus general education. It is possible, by similarly specializing public schools, for the school district to assign students to public schools in a way that is fair with respect to the entire universe of students.

Lemma 21 below states that if the behavior of the rest of the system is subset individually fair (eg, the private schools fairly assign students to science or humanities schools), then simply copying that behavior for elements in the subset acted upon by the classifier in question (eg, the public schools use the same logic as the private schools to assign students) will be individually fair.

Consider a subset VYV\sim\mathcal{Y} and a binary classifier CC^{*} which operates on U\VU\backslash V. If CC^{*} is subset individually fair on U\VU\backslash V, and if the outcomes of CC^{*} are in the range of the classifier operating on VV, then there exists a classifier CC that is individually fair on UU.

Take C(w)=C(w)C(w)=C^{*}(w) for all elements for which CC^{*} is defined (U\V)(U\backslash V). For any element vv for which CC^{*} is not defined, choose any distribution over outcomes which satisfies D(v,w)d(v,w)\mathcal{D}(v,w)\geq d(v,w) for all other wUw\in U with currently defined outputs. As CC^{*} is subset individually fair, valid distributions over outcomes can be found per Lemma 5. ∎

Extending Lemma 21 to also work for Cohort Selection requires that the cohort size be adjustable depending on Y\mathcal{Y} and CC^{*}, which may not be possible in practice. Returning to our public versus private school example, if the public and private schools both have equal distributions of science versus humanities talent, and proportional enrollment capacity in specialized schools, then a universally individually fair solution can be attained in the absence of other contstraints. However, as we saw in Section A.6.3, this problem reduces to constrained cohort selection if the enrollment capacity is artificially tilted towards one schooling track over the other. Furthermore, there may be challenges related to quantization which (eg, if the number of students is not evenly divisible among appropriate campus enrollment sizes).

In the next scenario, we show that if there is always ‘leftover’ probability, and the classifier in question is the only classifier which assigns outcomes for a particular task, then we can find an individually fair solution.

Consider the case of a classifier that is solely responsible for assigning outcomes for a task for the entire universe. For example, students may be offered a choice to try out for the school’s soccer team and orchestra which have practice at the same time. We assume that there is a strong social cost to quitting the soccer team, so any student who is accepted to the soccer team will not be eligible for the orchestra. (That is, the system is a task-competitive composition with a strict preference for soccer.) If soccer try-outs are first, but every student still has some positive probability of trying-out for the orchestra, that is, each student arrives to the orchestra ‘classifier’ with some positive probability, then with sufficient understanding of the distribution Y\mathcal{Y} with which students arrive to the orchestra ‘classifier’, it may be able to appropriately respond to ensure fairness.

In this setting, it is important to understand the default behavior if the classifier for the task is not applied. We assume that if the classifier for the task is not applied, then some default behavior is assigned. For example, in the case of orchestra versus soccer, no student can join the soccer team unless they are classified positively by the soccer classifier. More complicated default behaviors could be imagined, but for our purposes, we just consider this simple case, which corresponds well to settings where a single entity controls outcomes for a particular task.

Intuitively, when Y\mathcal{Y} does have equal probability for each element in the universe, we might try to modify our behavior to simulate as if each element appeared with equal probability. Lemma 22 below states that as long as each element has some positive weight under Y\mathcal{Y}, we can devise a procedure which simulates each element appearing with equal probability.

Given an instance of the universe subset classification problem (Definition 18) where Y\mathcal{Y} assigns positive weight to all elements wUw\in U, the following procedure applied to any individually fair classifier CC which solely controls outcomes for a particular task will result in fair classification under the input distribution Y\mathcal{Y}.

Procedure: for each wUw\in U, let qwq_{w} denote the probability that ww appears in VV. Let qmin=minwqwq_{min}=\min_{w}q_{w}. For each element wVw\in V, with probability qmin/qwq_{min}/q_{w} classify ww normally, otherwise output the default for no classification.

Let u=argminw(qw)u=\operatorname*{argmin}_{w}(q_{w}). Then uu will be classified positively with probability puqminp_{u}q_{min} where probability is taken over Y\cal{Y} and CC. All other elements vVv\in V will be classified positively with probability qv(qmin/qv)pv=pvqminq_{v}(q_{min}/q_{v})p_{v}=p_{v}q_{min}. As positive classification by CC is the only way to get a positive outcome for the task, reasoning about pvpu|p_{v}-p_{u}| is sufficient to ensure fairness. Therefore, if pvpuD(u,v)|p_{v}-p_{u}|\leq\mathcal{D}(u,v), then the distance under this procedure is also D(u,v)\leq\mathcal{D}(u,v). ∎

Imagine in the soccer versus orchestra example that the soccer team try-outs were first (and students were required to commit before orchestra try-outs). If spots on the soccer team are granted to each student with maximum probability 50%50\%, then the orchestra classifier still has 50%50\% probability left over, even for the most talented soccer player. In such cases, the procedure in Lemma 22 will suffice to make the orchestra classifier fair with respect to all elements in UU, even with the interference of the earlier classifier. Of course, the allocation (the number of expected positive classifications) of the classifier may need to be tuned for improved performance, but fairness can be maintained.

A critical observation of the procedure in Lemma 22 is that the behavior of CC on a distribution other than Y\mathcal{Y} may significantly violate individual fairness constraints. For example, if Y\mathcal{Y} assigns different weights to u,vu,v where D(u,v)=0\mathcal{D}(u,v)=0, then CC will appear to ‘split’ these equal elements on any distribution Y\mathcal{Y}^{\prime} where their weights are equal.

There are two important implications of the settings described above. First, Lemmas 21 and 22 give us the following theorem:

There exist solutions to the Universe Subset Classification Problem for non-trivial Y.\mathcal{Y}.

We emphasize this point because these results imply that augmented classifiers or families of classifiers, which specify which Y\mathcal{Y} and X\mathcal{X} they behave well on, can be used in these difficult settings in practice. However, determining Y\mathcal{Y} and X\mathcal{X} precisely may be difficult in cases where components are controlled by potentially competitive or uncooperative parties and may have significant privacy implications.

Second, classifiers which appear unfair in isolation may be fair under composition. In fact, we can say something even stronger: in cases where Y\mathcal{Y} does not provide a uniform selection of elements from UU and includes similar individuals in the metric with significantly different probabilities, there exist classifiers which appear unfair in isolation, but are fair for the input distribution Y\mathcal{Y}. Thus any auditing process which doesn’t take Y\mathcal{Y} into account would potentially raise a false alarm, even though a classifier may have been explicitly constructed to function fairly under composition.

A.7 Extensions to Group Fairness

The anecdotal examples we have visited throughout the preceding sections give us some intuition that meaningful solutions to composition problems are inherently difficult without coordination between classifiers or thoughtfully designed compositions. We now formally extend these results to group fairness definitions (and discuss several cases where they do not extend), following the generalized Conditional Parity notion of , which captures popular group fairness definitions in the literature such as Equality of Opportunity and Equalized Odds and Counterfactual Fairness .

Recall Definition 10 (Section A.3.3), which states that a predictor YY satisfies conditional parity with respect to a stratification set Z\mathcal{Z} for protected attributes A\mathcal{A} if for all a1,a2Aa_{1},a_{2}\in\mathcal{A} and for all zZz\in\mathcal{Z}:

In this section, we say that a classifier “satisfies group fairness” or is “group fair” if it meets this requirement.

In order to draw the analogy from individual fairness composition results to conditional parity composition, we will show that there are many classifiers that satisfy conditional parity in isolation, but fail to satisfy conditional parity under composition. We will also show that in some cases, composition of classifiers which satisfy conditional parity may result in systems which nominally satisfy the fairness requirement, but have troubling behavior from a subgroup perspective, and alternatively may result in systems which do not nominally satisfy the fairness requirement, but would satisfy the even stricter notion of individual fairness.

In many cases in the literature, group-based notions of fairness are used not because they capture group-based incentives or decision-making, but because they are more practical for implementation and measurement. To that end, concerns about the treatment of socially meaningful subgroups are addressed in several lines of work using more granular group requirements in order to provide more meaningful guarantees for sufficiently sized subgroups .

The results for individual fairness for functional composition largely extend to the group fairness setting, with a few caveats due to technicalities of the definition.

As with individual fairness, we first consider same-task composition. Recall our college admissions example from Section A.4. Consider a pair of classifiers CC and CC^{\prime} which both satisfy conditional parity with respect to the same set of sensitive attributes A\mathcal{A} and stratification set Z\mathcal{Z}. That is

where the probability is taken over the choice of uu and the randomness of the classifier CC, for all a1,a2Aa_{1},a_{2}\in\mathcal{A} and for all zZz\in\mathcal{Z} for some appropriately chosen set of protected attributes A\mathcal{A} and appropriately chosen set of stratification attributes Z\mathcal{Z}. For example, A\mathcal{A} may be the set of genders and Z\mathcal{Z} may be the set of intrinsic qualification levels for college.

Now, imagine that we apply both CC and CC^{\prime} to all members of the universe, will the system satisfy OR fairness? To see it clearly, let us write out the conditional parity constraints above as sums. For notation convenience, we denote the set of all elements in UU such that a=ai\mathbf{a}=a_{i} and z=z\mathbf{z}=z as Uai,zU_{a_{i},z} and denote the probability that C(u)=1C(u)=1 as pup_{u}, as in previous sections.

Now let’s consider the OR-fairness requirement:

Since the randomness of the classifiers is independent, we can rewrite this as

Using the fact that CC satisfies conditional parity, Equation A.7.1, Equation A.7.1 reduces to

And then using the property that CC^{\prime} satisfies conditional parity, Equation A.7.1, Equation A.7.1 reduces to

So our key question of consideration becomes characterizing when satisfying Equations A.7.1 and A.7.1 (the independent conditional parity conditions) imply Equation A.7.1 (the composed OR fairness conditional parity condition).

Any classifier that treats all elements with identical settings of z\mathbf{z} identically satisfies Conditional Parity in isolation. Under OR composition, such classifiers will also satisfy conditional parity because Equation A.7.1 is satisfied, as all elements uUa1,ziUa2,ziu\in U_{a_{1},z_{i}}\cup U_{a_{2},z_{i}} receive positive classification with probability pup_{u}.

If a pair of classifiers CC, CC^{\prime} treat all elements with z=z\mathbf{z}=z equally, and if CC and CC^{\prime} satisfy conditional parity in isolation, then the OR of the two satisfies conditional parity under same-task composition.

Proposition 24 states that equal individuals (those with the same qualification z=zi\mathbf{z}=z_{i}) are treated equally. The same is true for individual fairness. However same-task composition, particularly with a small degree of composition, can result in significant stretches between very similar individuals. Analogous difficulties arise in the case of group fairness, although they do not specifically violate the group fairness criterion.

Group a2a_{2} quickly approaches nearly 100% acceptance and group a1a_{1} follows more slowly. Although the ratio of the acceptance rates isn’t increasing, the absolute gains for group a2a_{2} under composition outstrip the absolute gains for group a1a_{1}. Individual fairness penalizes such absolute increases, although there may be cases in the group setting where the relative difference in measurements is the more appropriate indicator of unfairness.

In contrast to the case above, there is no guarantee that Conditional Parity will be satisfied under ’or’ composition when individuals with the same z=z\mathbf{z}=z are not all treated equally.

There are many natural cases where we might want to treat elements with the same zz differently, for example, if the randomness of the environment results in a bimodal distribution for one group, and a unimodal distribution for the other. Let us imagine that each zZz\in\mathcal{Z} represents a range of acceptance probabilities. In each range, individuals are classified as php_{h}, high probability within this range, pmp_{m}, medium probability within this range, and plp_{l}, low probability within this range. Each group may consist of a different mix of individuals mapped to ph,pm,p_{h},p_{m}, and plp_{l}.

Consider the following simple universe: for a particular zZz\in\mathcal{Z}, group AA has only elements with medium qualification qmq_{m}, group BB has half of its elements with low qualification qlq_{l} and half with high qualification qhq_{h}. Choosing ph=1p_{h}=1, pm=.75p_{m}=.75, pl=.5p_{l}=.5, satisfies Conditional Parity for a single application. However, for two applications, the the squares in each group diverge (.9375.875.9375\neq.875): 1(1pm)212(1(1ph)2)+12(1(1pl)2)1-(1-p_{m})^{2}\neq\frac{1}{2}(1-(1-p_{h})^{2})+\frac{1}{2}(1-(1-p_{l})^{2}). Thus, Conditional Parity is violated. Note, however, that many of the individuals with z=z\mathbf{z}=z have been drawn closer together under composition, and none have been pulled further apart. In general, ixi=iyiixit=iyit\sum_{i}x_{i}=\sum_{i}y_{i}\nrightarrow\sum_{i}x_{i}^{t}=\sum_{i}y_{i}^{t} for any t>1t>1, so this brittleness is not unexpected.

In order to satisfy Conditional Parity under OR-composition, the classifier could sacrifice accuracy by treating all individuals with z=z\mathbf{z}=z equally. However, this necessarily discards useful information about the individuals in AA to satisfy a technicality.

This simple observation implies that in some cases we may observe failures under composition for conditional parity, even when individual fairness is satisfied. Indeed, notice that an individually fair classifier that treats all elements with z=z\mathbf{z}=z equally satisfies conditional parity, and if all of the probabilities of positive classification are greater than 12\frac{1}{2}, then we have seen that the OR of two such classifiers will also be individually fair. However, as we see above, those same two classifiers will only satisfy conditional parity independently.

Although group fairness definitions make no guarantees on the treatment of individuals, the contrast between how Conditional Parity behaves under OR-composition when individuals with the same value of z\mathbf{z} are treated equally or not is worth considering. In some cases we may observe failures under OR-composition for Conditional Parity, even when Individual Fairness is satisfied, and failure to satisfy Individual Fairness when Conditional Parity is satisfied. This brittleness extends to other settings like selecting a cohort of exactly nn elements and satisfying calibration under composition, and to other logical functions as well as constrained settings.

In multiple-task functional composition, classifiers (for potentially distinct tasks) are combined to form a single output with its own fairness considerations. In the group setting, we are also faced with the question of the appropriate choice of protected set and stratification set when more than one task influences an outcome. For example, although protected sets may frequently overlap (eg, race and gender), stratification sets may be very different.

The results in the single outcome setting are very similar to the multiple outcome setting, which we discuss next. Briefly, there are cases both where interactions between different stratification and protected sets result in the predicted unfairness we would expect from the individual fairness results, and cases where no unfairness is detected. However, in the case in which no unfairness is detected, it is not necessarily clear whether this is due to a weakness of the requirements (in particular for socially meaningful subgroups) or a genuinely uninteresting statistical artifact. As the proof techniques and results are nearly identical, we focus our discussion in the multiple-task setting.

A.7.2 Multiple Task Composition

For multiple task composition, we consider two issues. First, we show how to extend our results from individual fairness to show that for a large set of tasks and tie-breaking functions, classifiers which are group fair independently can result in unfair task-competitive compositions. Second, we discuss cases where conditional parity based definitions may fail to detect multiple task composition problems that are intuitively unfair, and consider how subgroup fairness is impacted by composition.

For the system to satisfy multiple task conditional parity, it must be the case that the probabilities of positive classification for each task satisfy both

for all a1,a2Aa_{1},a_{2}\in\mathcal{A} and for all zZz\in\mathcal{Z}, and

for all a1,a2Aa_{1}^{\prime},a_{2}^{\prime}\in\mathcal{A^{\prime}} and all zZz^{\prime}\in\mathcal{Z^{\prime}}.

These two equations simplify, using the conditional parity of the original classifiers, to

for all a1,a2Aa_{1},a_{2}\in\mathcal{A} and for all zZz\in\mathcal{Z}, and

for all a1,a2Aa_{1}^{\prime},a_{2}^{\prime}\in\mathcal{A^{\prime}} and all zZz\in\mathcal{Z^{\prime}}.

In order to show failure to satisfy conditional parity under task-competitive composition, we need to show how to construct CC and CC^{\prime} such that the sums in Equations A.7.2 and A.7.2 above do not balance out, violating the equalities.

There are many cases where failing to satisfy conditional parity under task-competitive composition is clearly a violation of our intuitive notion of group fairness. For example, let’s return to our advertising example where home-goods advertisers have no protected set, but high-paying jobs have gender as a protected attribute. Under composition, home-goods out-bidding high-paying jobs ads for women will clearly violate the conditional parity condition for the job ads (See Figure 10). We formalize this idea in the theorem below.

there exists a pair of classifiers C,CC,C^{\prime} which satisfy conditional parity in isolation but not under task-competitive composition.

We construct C,CC,C^{\prime} that satisfy conditional parity in isolation, but not when combined with task-competitive compositionfor the setting outlined above. First, construct C,CC,C^{\prime} such that each element with z=z\mathbf{z}=z and each element with z=z\mathbf{z^{\prime}}=z^{\prime} is treated equally under CC and CC^{\prime}, respectively. Furthermore, require that every element has probability of positive classification <1<1.

Assume that the classifiers still satisfy conditional parity under task-competitive composition. Therefore we have by Equations A.7.2 and A.7.2:

for all a1,a2Aa_{1},a_{2}\in\mathcal{A} and for all zZz\in\mathcal{Z}, and

for all a1,a2Aa_{1}^{\prime},a_{2}^{\prime}\in\mathcal{A^{\prime}} and all zZz\in\mathcal{Z^{\prime}}.

Let’s first consider positive classification for TT. Since by construction each element uu with z=z\mathbf{z}=z is treated equally by CC (has the same value for pup_{u}), we can simplify the equation above to

Now let’s rewrite the sums in terms of the intersecting sets in Z\mathcal{Z^{\prime}}, letting pzp_{z^{\prime}}^{\prime} denote the probability of positive classification for elements with z=z\mathbf{z^{\prime}}=z^{\prime} by CC^{\prime}.

By assumption, \exists a1,a2,za_{1},a_{2},z^{\prime} such that

Now, let us modify pzp_{z^{\prime}}^{\prime} for all uUzu\in U_{z^{\prime}} by adding α\alpha, that is pz=pu+αp_{z^{\prime}}^{\prime}=p_{u}^{\prime}+\alpha. (This is possible because by assumption all acceptance probabilities are strictly less than 1.) Thus we add

breaking the equality in Equation A.7.2, which completes the construction and the proof. ∎

If (1) the representation is proportional but the tie-breaking function weights are not or (2) if the representation was not proportional to begin with, then it is easy to violate conditional parity under task-competitive composition. In the simplest case, where the tie-breaking function is strict and the same for all individuals, this reduces to different size of intersection for each group. In our advertising example, if more women are targeted for home good advertisements then men, but each person prefers job advertisements, then the system will fail to satisfy conditional parity under task-competitive composition.

As in the case of individual fairness, RandomizeThenClassify\mathsf{RandomizeThenClassify} will fix this problem.

For any two tasks T,TT,T^{\prime} with protected sets A,A\mathcal{A},\mathcal{A^{\prime}} and Z,Z\mathcal{Z},\mathcal{Z^{\prime}}, if classifiers C,CC,C^{\prime} satisfy conditional parity independently but not under task-competitive composition, then RandomizeThenClassify\mathsf{RandomizeThenClassify} of the two classifiers will satisfy conditional parity for both tasks.

Consider the probability that S(u)T=1S(u)_{T}=1 using RandomizeThenClassify\mathsf{RandomizeThenClassify} .

As the probability that tXt\sim\mathcal{X} is identical for all settings of aA,zZa\in\mathcal{A},z\in\mathcal{Z}, and the original classifier CC satisfied conditional parity, it follows that

for all a1,a2Aa_{1},a_{2}\in\mathcal{A} and for all zZz\in\mathcal{Z}.

The argument for S(u)TS(u)_{T^{\prime}} proceeds symmetrically. ∎

Thus, we’ve shown, for many tie-breaking functions and for many non-identical tasks (either with same A\mathcal{A} or different A\mathcal{A}), that composition can result in group-level unfairness and that the same strategy that was effective for mitigating this unfairness for individual fairness is also effective for conditional parity based definitions.

Conditional parity is not always a reliable test for fairness at the subgroup level under composition. In general, we expect conditional parity based definitions of group fairness to detect unfairness in multiple task compositions reasonably well when there is an obvious interaction between protected groups and task qualification, as observed empirically in and . However, there are some cases where it will fail to detect what we might intuitively feel to be unfairness at the subgroup level, which we discuss below.

Given a protected attribute set A\mathcal{A} and a stratification set Z\mathcal{Z}, a predictor YY is subgroup unfair if for any socially meaningful subgroup SS, YY fails to satisfy conditional parity with respect to the attribute set A{1S}\mathcal{A}\cup\{1_{S}\}.

Socially meaningful subgroups can take many forms and will likely depend on context. For example, consider two advertising campaigns, one run by a hospital intended to increase cancer screening in older adults, and one run by a grocery chain aimed at getting subscribers for a new home grocery delivery service. The hospital is primarily targeting older adults and is aware that in the past there have been different levels of outreach to different racial groups, despite similar cancer risk. The grocery service, on the other hand, is primarily targeting women, the default grocery shopper for most households, and is also concerned with preventing racial discrimination. We’ll now see how simply satisfying conditional parity can lead to poor outcomes for a subgroup, namely older women.

First, we introduce the notion of unrelated tasks.

Two tasks T,TT,T^{\prime} are considered unrelated if for all aAa\in\mathcal{A}, aAa^{\prime}\in\mathcal{A}^{\prime}, zZz\in\mathcal{Z} and zZz^{\prime}\in\mathcal{Z^{\prime}}

where probability is taken over selection of members of the universe.

Definition 25 captures the intuition that two tasks are unrelated if the protected set and stratification membership for the either task is not predictive of quality for the other task. Returning to our groceries versus cancer screening public service announcement example, if the two advertisers use conditional parity with the protected set {\{race}\}, then it’s clear that the combination of protected attribute and quality for one task isn’t indicative of quality for the other task, as there are equal numbers of men and women of each race at each age (see Figure 11).

Lemma 27 is interesting to us because in our example of groceries versus cancer public service announcements above, we have seen a case where unrelated tasks interact to cause subgroup unfairness, and yet the Lemma tells us conditional parity will be satisfied anyway.

We want to show that if two tasks are unrelated and the tie-breaking function is the same for all individuals, then if two classifiers satisfy conditional parity in isolation, they will satisfy conditional parity under task-competitive composition. Equivalently, if

for all a1,a2Aa_{1},a_{2}\in\mathcal{A} and for all a1,a2Aa_{1}^{\prime},a_{2}^{\prime}\in\mathcal{A}^{\prime} and for all zZz\in\mathcal{Z} and for all zZz^{\prime}\in\mathcal{Z^{\prime}} then

for all a1,a2Aa_{1},a_{2}\in\mathcal{A} and for all a1,a2Aa_{1}^{\prime},a_{2}^{\prime}\in\mathcal{A}^{\prime} and for all zZz\in\mathcal{Z} and for all zZz^{\prime}\in\mathcal{Z^{\prime}}, where probability is taken over the randomness of the composed system and the choice of individual in each protected set and stratification set setting. Here we have used PrC[E]\Pr_{C}[E] to denote the probability of the event EE taken over the randomness of CC.

where probability is taken over the randomness of the classifiers and the tie-breaking function.

As the random bits of the two classifiers CC and CC^{\prime} are independent, we can write

Now we want to reason about Pr[S(u)T=1]\Pr[S(u)_{T}=1] for particular settings of a\mathbf{a} and z\mathbf{z}. Let us write out these conditions for each protected set and stratification pair as sums to see more clearly.

where probability is taken over the randomness of the classifiers.

Using the usual notation of pu,pup_{u},p_{u}^{\prime} to simplify, we have

By our assumption that each element with z=z\mathbf{z}=z is treated equally in CC, we can simplify the above to

Recall that the two tasks are unrelated, so the qualification of an element uu, that is which zZz^{\prime}\in\mathcal{Z^{\prime}} it lands in, is unrelated to its memberships in A\mathcal{A} and Z\mathcal{Z}. Thus the share of each z=z\mathbf{z^{\prime}}=z^{\prime}, and therefore each pup_{u}^{\prime}, for a1a_{1} and a2a_{2} is the same, satisfying the equality. To see this more clearly, we split up the sums by membership in Z\mathcal{Z}^{\prime}.

By our assumption of unrelatedness, 1Ua1,zUa1,zUz=1Ua2,zUa2,zUz\frac{1}{|U_{a_{1},z}|}*|U_{a_{1},z}\cap U_{z^{\prime}}|=\frac{1}{|U_{a_{2},z}|}*|U_{a_{2},z}\cap U_{z^{\prime}}|, call these values ta,z,zt_{a,z,z^{\prime}} for convenience. Now we have that

The argument for Pr[S(u)T=1]\Pr[S(u)_{T^{\prime}}=1] proceeds analogously. ∎

The key point of this lemma is that such classifiers will never fail to satisfy conditional parity under task-competitive composition, even though in some cases a subgroup is clearly treated poorly, as in the groceries versus public service announcement example.

Notice that many pairs of individually fair classifiers meet the requirements for Lemma 27. In the previous discussion of individual fairness, we also observed how task-competitive composition, even with equal preferences for all universe elements, results in significant violations of individual fairness. Indeed, the characterization of Lemma 27 is incomplete, and other settings may similarly not violate conditional parity, but still intuitively be unfair. Of particular concern in practice is the possibility that classifiers may learn to exclude certain well-defined subgroups in order to achieve conditional parity by simulating unrelatedness.

Recall our simple advertising system with two types of advertisers, employers and home-goods advertisers. If, in response to gender disparity caused by task-competitive composition, classifiers iteratively adjust their bids to try to achieve Conditional Parity, they may unintentionally learn themselves into a state that satisfies Conditional Parity with respect to gender, but behaves poorly for a socially meaningful subgroup. (See Figure 12). For example, let’s imagine that home goods advertisers aggressively advertise to women who are new parents, as their life-time value to the advertiser (Z\mathcal{Z}) is the highest of all universe elements. A competing advertiser for jobs, noticing that its usual strategy of recruiting all people with skill level z=z\mathbf{z^{\prime}}=z^{\prime} equally is failing to reach enough women, bids more aggressively on women. By bidding more aggressively, the advertiser increases the probability of showing ads to women (for example by outbidding low-value competition), but not to women who are bid for by the home goods advertiser (a high-value competitor), resulting in a high concentration of ads for women who are not mothers, while still failing to reach women who are mothers. Furthermore, the systematic exclusion of mothers from job advertisements can, over time, be even more problematic, as it may contribute to the stalling of careers. In this case, the system discriminates against mothers without necessarily discriminating against fathers.

Excluding subgroups is not specifically a problem of composition. It is certainly possible that a malicious advertiser could take the same approach even without composition coming into the picture. However, we stress this potential for subgroup exclusion because subgroups are likely to be targeted or have higher competition in practice, and predicting or identifying all such possible subgroups may be difficult. Furthermore, the attributes used to define these subgroups may be unavailable to some learning procedures, exacerbating the problem of detection. Practitioners whose previous strategies (treat everyone of equal qualification equally) may fall apart under composition, leading them to pursue strategies that lead to such subgroup unfairness, even though their strategy and statistical results are nominally fair.

Although problematic (large) subgroup semantics are part of the motivation for , the danger of composition is that the features describing this subset may be missing from the feature set of the jobs classifier, rendering the protections proposed in and ineffective. In particular, we expect sensitive attributes like parental status are unlikely to appear (or are illegal to collect) in employment-related training or testing datasets.

A.7.3 Dependent Composition

The extension of Individual Fairness results for dependent compositions have several of the same caveats we have seen in the extensions of functional composition and multiple-task composition. We do not belabor these points, and instead focus on the more interesting aspects of the extensions.

The Cohort Selection Problem in the group setting is subtly different from the individual fairness setting, in that we want to maintain an equivalence in probability, rather than preventing an increase in distance between probability distributions. As we saw previously for same-task functional composition, these problems don’t always align.

When all elements with z=z\mathbf{z}=z are treated equally. In this case, the extension of PermuteThenClassify\mathsf{PermuteThenClassify} to the group setting is straightforward. For each permutation we consider, the probability that a given element appears in a particular location in the ordering is independent of its protected attributes, and so the equivalence is maintained.

The most interesting point in the extensions in the online setting is that in some cases Statistical Parity, which corresponds to conditional parity with Z=1|\mathcal{Z}|=1, can be satisfied when individual fairness or more general settings of Conditional Parity do not have fair solutions. Consider Theorem 17, which states that if the ordering of the elements of the universe is adversarial and the stream is of an unknown length, that we cannot select exactly nn elements and satisfy individual fairness. Indeed, this extends to the more interesting cases of conditional parity in a straightforward way, but not to statistical parity if the desired proportions are known.

For any ordering, there exists a solution to the online or offline cohort selection problem for Statistical Parity for unknown length as long as the required proportion of the output for each protected attribute setting is known.

Consider the system which knows that a pap_{a} fraction of all elements chosen should have a particular protected attribute setting aa. In order to satisfy statistical parity in the online setting, the system simply selects the first panp_{a}n elements with protected attribute setting pap_{a}. The system will select the desired pap_{a} fraction for each protected attribute setting aa. ∎

This solution will clearly violate individual fairness, as well as many variants of conditional parity. To see how this technique fails for conditional parity more generally, imagine that an adversary ordered men from highest qualification to lowest, and women from lowest to highest. This system would select the most qualified men and the least qualified women, clearly violating conditional parity for a stratification set relating to job qualification, but not violating Statistical Parity.

Although this case is contrived, it’s important to notice that such a system can appear to be fair (if one is satisfied with statistical parity as a notion of fairness), but clearly results in undesirable long-term effects. In our example above, deliberately hiring under-qualified women (as opposed to the qualified women later in the stream) can poison future decisions, and be used to justify hiring fewer women in the future.This particular problem was called out in the original ‘Catalog of Evils’ in .

Furthermore, it may be difficult to determine that the ordering is adversarial when the relevant subgroup attributes are missing. For example, a system may assume that the ordering of its inputs is drawn uniformly at random because the distribution of observed attributes is statistically indistinguishable from random. However, an adversary may still be able to manipulate the ordering to benefit or harm socially meaningful subgroups which are not explicitly described by the feature set of a particular system. For example, an adversary may select an ordering which appears random with respect to talent and gender, but places parents later in the ordering than non-parents. Without a clear signal of parental status, a system will have difficulty determining that the ordering can have negative consequences on the parent subgroup.

In practice, many cases of seemingly adversarial ordering will be difficult to identify and may not even arise through malicious intent. For example, imagine that a bank, in an effort to fairly process loan applications, has used a fair classifier to assign individuals to descriptive ‘bins’ which indicate their probability of repaying a loan. Loan officers interact with applications through the loan review tool, which only displays the relevant bin information. The loan review tool is based on spreadsheet software and sorts the applications by last name by default. Even though the last name is not displayed to the loan officer (only the descriptive bin), the resulting system will still be unfair if a limited number of loans are available, as loans are more likely to be granted to the first applications processed (Adams and Alvarez) rather than the last applications processed (Zhang and Zou).

Consider a distribution Y\mathcal{Y} over subsets of UU in which at least one element uUu\in U is contained in each protected attribute and stratification pair with positive weight. In this case, the same procedural adjustment proposed in Section A.6.4 will suffice, as each element ww will be selected with probability qminpwq_{min}p_{w}, where pwp_{w} is the probability of selection with uniform inputs. Thus, the equality qminUa1,zuUa1,zpu=qminUa2,zuUa2,zpu\frac{q_{min}}{|U_{a_{1},z}|}\sum_{u\in U_{a_{1},z}}p_{u}=\frac{q_{min}}{|U_{a_{2},z}|}\sum_{u\in U_{a_{2},z}}p_{u} holds.

Unfortunately, the extension for the procedure for comparable outcomes is not as straightforward. Consider again the universe we described above with aa classified positively with probability 0.750.75, and b1b_{1} with probability 11, and b2b_{2} with probability .5.5. Take U\VU\backslash V to be {a,b1,b2}\{a,b_{1},b_{2}\} and VV to be {a,b1}\{a,b_{1}\}. If the system uses such a classification procedure on U\VU\backslash V, it will satisfy conditional parity. However, the same classification procedure applied to VV alone will not satisfy conditional parity. This setting can still be handled with a slightly stronger requirement on the behavior on U\VU\backslash V.

Consider a distribution over subsets Y(U)\mathcal{Y}(U), and a classifier CC^{*} which operates on U\Y(U)U\backslash\mathcal{Y}(U). If CC^{*} satisfies conditional parity when applied to UU, and if all outcomes of CC^{*} are in the potential outcome space of the classifier operating on VV, then then there exists a classifier CC^{\prime} such that the system which applies CC^{*} to U\VU\backslash V and CC^{\prime} to VV satisfies conditional parity.

Take CC^{\prime} to be identical to CC^{*}. As CC^{*} satisfies conditional parity when applied to UU, the combination of CC^{\prime} applied to VV and CC^{*} applied to U\VU\backslash V also satisfies conditional parity. ∎

A.7.4 Group Fairness: Summary

In this section, we’ve shown that composition issues are not merely artifacts of the individual fairness definition, and indeed are observed in many natural settings for group fairness definitions.

We have shown that classifiers which appear to satisfy group fairness properties in isolation may not compose well with other fair classifiers, that the signal provided by group fairness definitions under composition is not always reliable, and that composition requires additional considerations for subgroup fairness. In particular, even if one is satisfied with a notion of actuarial fairness at the group (or individual) level, we have shown that no guarantees can be made under composition. A promising direction for future work is the augmentation of classifiers group fairness for large, intersecting, groups , as well as classifiers with Individual Fairness for large subgroups) , to incorporate contextual information, with the goal of improving composition.

A.8 Summary of Composition Results

Now that we have all of the core results in place, we can make several observations about what it means to have a ‘fair’ classifier.

As we’ve seen in the preceding sections, there are many cases where classifiers are either individually fair or satisfy conditional parity in isolation, but fail to satisfy these definitions under composition. Furthermore Lemma 22 highlights a very natural setting where a classifier which appears unfair in isolation is the right choice for constructing a fair system with composition. In particular, classifiers which seem to heavily rely on attributes “inappropriate” for the task (like parental status or sexual orientation), may specifically be doing so in order to prevent composition failures with other classifiers legitimately targeting based on these features. Conversely, classifiers which seem to be free of influence from “inappropriate” attributes in isolation may fail to provide the same protections under composition. In either direction, it’s clear that certifying a classifier as fair or stating unequivocally that it is unfair requires significant understanding of the composition context in which the classifier will be employed.

Given the need for additional context, one possible path forward is to create augmented classifiers, which provide additional information about their anticipated input distributions (Y\mathcal{Y}), operating mode and ordering (X\mathcal{X}), and expected post-processing. In cases where a particular input ordering is not fixed in advance, we could also imagine a family of classifiers parametrized by Y\mathcal{Y} from which the appropriate classifier may be selected at a later point when more information about Y\mathcal{Y} is available. However, such additional information about expected input or output distributions may have significant privacy implications in cases where the entire output distribution may not have been available to other parties in the past.

A.9 Conclusions and Future Work

There is no guarantee of fairness under composition, fairness under post-processing, or resilience of fairness to arbitrary side information, for either individual fairness or group fairness.

We have shown that naïve composition of fair classifiers can result in unfairness, both for individual fairness and a large class of group fairness definitions. We have also shown mechanisms to mitigate this unfairness in several settings. Finally, we concluded by suggesting that fairness is not a property of classifiers in isolation, and that to construct fair systems in practice augmented definitions of fairness with sufficient context for fair composition are desirable.

Unlike privacy, where a breach of privacy must be considered permanently irreparable, fairness is far more robust to mistakes. In many cases, we can remedy unfairness after the fact, and the harm does not have to be permanent. Consider the difference between a breach of a credit reporting company’s databases and a free school lunch program. When the credit reporting agency loses control of sensitive data, the best they can do is try to limit the impact of the privacy loss, either by providing monetary compensation or credit monitoring. On the contrary, operating under the assumption that all students are equally deserving of lunch, a free or subsidized school lunch program repairs the underlying unfairness of access to lunch money or lunch from home. In this case, the unfairness of access to lunch is repaired entirely, which is impossible with privacy loss. Given that it is possible, either through coordinated algorithmic solutions or external interventions, to remedy unfairness in the system, it makes sense to consider not only the behavior of each component of the system, but the system as a whole.

Auditing and definition choices must take composition into account.

Throughout this work, we have shown that the choice of outcomes on which to enforce fairness is critical to constructing systems which reflect the true intent of the original fairness requirement. Furthermore, we have shown that in some cases group fairness definitions may behave unexpectedly under composition. Thus, any choice of auditing or enforcement must not only carefully consider the points at which fairness is measured or enforced, but whether those conclusions will hold under composition.

We see several directions for future work. First, there are likely many more mechanisms for fair composition with or without coordination in training procedures for the problems we described. In particular, investigating alternatives for RandomizeThenClassify\mathsf{RandomizeThenClassify} that improve allocation and have more practical utility guarantees will likely be necessary for practical adoption. We also did not explicitly show mechanisms for fair composition for constrained cohort selection, for example, in assigning students to public and private schools with limited flexibility in campuses and with potential conflicts in student preferences, which are likely to be common problems. Even if perfectly fair solutions cannot be found, there may be acceptable relaxations.

Augmented classifiers provide another avenue for exploration; how can we specify the requirements, and what are the privacy implications of the additional information that they require? Fairness at the expense of a total loss of privacy is unlikely to be an acceptable solution in practice, so understanding how tradeoffs must be made and whether parties with existing access to private information can enforce fairness is an important question to answer.

A number of the impossibility results, in particular those of constrained cohort selection, could be addressed by requiring similarity over other measures. For example, we could require that similar individuals have similar “rewards to effort.” There are many potential alternatives to explore in the economics literature.

This paper largely ignores the problem of generalization, as our results are primarily negative. However, it is important to understand the generalization properties of the constructions proposed and to understand how generalizable metrics for individual fairness can be learned and represented.

Appendix B Multiple Task Fairness - Empirical Intuition

To more clearly illustrate the potential for unfairness in realistic task-competitive compositions, we devised a simple empirical setting. For our motivating example, we’ll consider the problem of inviting students to a seminar or a free pizza lunch offered in the same time slot on opposite sides of campus (the graduate student’s dilemma). As no student can attend both, the goal is to design a system that fairly allocates at most a single invitation (for either event) to each student.

We generated a sample data set of 100 students, each with pizza and seminar intrinsic qualifications drawn independently from N(0.5,0.25)\mathcal{N}(0.5,0.25), that is qu,pN(0.5,0.25)q_{u,p}\sim\mathcal{N}(0.5,0.25) and independently qu,sN(0.5,0.25)q_{u,s}\sim\mathcal{N}(0.5,0.25).Any values exceeding 1 or less than zero were clamped to keep all distances less than or equal to 1. If we instead discarded these values, we would have fewer equal pairs and fewer values in the extremes. Although the impact is observable empirically, the effect is not significant enough as to impact the overall trends or results. We considered differences in intrinsic qualification to be each pair’s true distance under the metrics for pizza and seminar, that is Dp(u,v)=qu,pqv,p\mathcal{D}_{p}(u,v)=|q_{u,p}-q_{v,p}| and Ds(u,v)=qu,sqv,s\mathcal{D}_{s}(u,v)=|q_{u,s}-q_{v,s}| respectively. Using these metrics, we learned two fair classifiers for each task by solving a linear program maximizing a simple objective function for each task as specified in . We designed our objective functions to maximize the qualification of the recipients of invitations, while keeping to an expected number of invitations of at most ts=30t_{s}=30 and tp=40t_{p}=40 for the two tasks. We then composed the two classifiers in several compositions, the results of which are discussed below and summarized in Table 2.

If the ordering of the preference is switched, we can see the same pattern for seminar invitations in Figures 15 and 16.

Nontrivial Preferences: If we consider instead a task-competitive compositionwhere the preference for pizza and seminar are equal, we see a less dramatic, but two-sided impact as both tasks now have pairs with distance violations, as illustrated in Figures 19 and 20.

Figures 18 and 17 are the first setting we’ve seen where the composition results in unfairness for both tasks, not just one or the other. As noted in Table 2, the maximum violations are smaller than in task-competitive composition, but occur in both tasks, and the total number of pairs impacted is still significant.

Our simple experiment gives good intuition for how easily a simple composition can result in unintended unfairness. Furthermore, as shown in Table 2, the magnitude of the violations gives us intuition that a small ε,δ\varepsilon,\delta approximate definition is unlikely to fix the problem, as maximum violations are routinely larger than 0.20.2.

If we run RandomizeThenClassify\mathsf{RandomizeThenClassify} with pizza and seminar tasks each having probability 0.50.5 in X\mathcal{X}, we should see a reduction in expected utility of about 50%, as each classifier only gets access to approximately half of the candidates. Empirically, we observed this to be about 50%50\% over 1515 trials. However, we can adjust the learned classifiers to try to compensate for this. Because our utility functions are very simple in our setting (giving out pizza or seminar invitations always has positive utility), these adjustments can be very simple. For example, we could increase the probability of positive classification in each classifier by 10%10\% for each candidate (with a maximum of 100%100\%). This modification reduces the loss, as expected, to about 40%40\%. Admittedly, our experimental setting has a very simple objective function, so more complicated settings may require more nuanced modifications to their training procedures to improve performance under RandomizeThenClassify\mathsf{RandomizeThenClassify} .