<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Achieving Causal Fairness through Generative Adversarial Networks</title></titleStmt>
			<publicationStmt>
				<publisher></publisher>
				<date>08/10/2019</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10126320</idno>
					<idno type="doi">10.24963/ijcai.2019/201</idno>
					<title level='j'>Proceedings of the Twenty-Eighth International Joint Conference on Artificial Intelligence</title>
<idno></idno>
<biblScope unit="volume"></biblScope>
<biblScope unit="issue"></biblScope>					

					<author>Depeng Xu</author><author>Yongkai Wu</author><author>Shuhan Yuan</author><author>Lu Zhang</author><author>Xintao Wu</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[<p>Achieving fairness in learning models is currently an imperative task in machine learning. Meanwhile, recent research showed that fairness should be studied from the causal perspective, and proposed a number of fairness criteria based on Pearl's causal modeling framework. In this paper, we investigate the problem of building causal fairness-aware generative adversarial networks (CFGAN), which can learn a close distribution from a given dataset, while also ensuring various causal fairness criteria based on a given causal graph. CFGAN adopts two generators, whose structures are purposefully designed to reflect the structures of causal graph and interventional graph. Therefore, the two generators can respectively simulate the underlying causal model that generates the real data, as well as the causal model after the intervention. On the other hand, two discriminators are used for producing a close-to-real distribution, as well as for achieving various fairness criteria based on causal quantities simulated by generators. Experiments on a real-world dataset show that CFGAN can generate high quality fair data.</p>]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1">Introduction</head><p>Fairness-aware learning is receiving an increasing attention in machine learning fields. How to obtain the training data that satisfy fairness is an important research problem, as machine learning models learned from biased training data may also have biased performance against sensitive attributes, such as gender, race, age <ref type="bibr">[Pedreshi et al., 2008;</ref><ref type="bibr">Zliobaite et al., 2011;</ref><ref type="bibr">Hardt et al., 2016;</ref><ref type="bibr">Zhang et al., 2017;</ref><ref type="bibr">Zhang et al., 2018b]</ref>. In the literature, many methods have been proposed to modify the training data for mitigating biases and achieving fairness. These methods include: Massaging [Kamiran and <ref type="bibr">Calders, 2009]</ref>, Reweighting <ref type="bibr">[Calders et al., 2009]</ref>, Sampling <ref type="bibr">[Kamiran and Calders, 2012]</ref>, Disparate Impact Removal <ref type="bibr">[Feldman et al., 2015]</ref>, Causal-based Removal <ref type="bibr">[Zhang et al., 2017;</ref><ref type="bibr">Zhang et al., 2018c]</ref> and Fair Representation Learning <ref type="bibr">[Edwards and Storkey, 2016;</ref><ref type="bibr">Xie et al., 2017;</ref><ref type="bibr">Madras et al., 2018;</ref><ref type="bibr">Zhang et al., 2018a]</ref>.</p><p>As the general requirement of modifying datasets is to preserve the data utility as much as possible, a recent study leverages Generative Adversarial Networks (GAN) for generating high quality fair data <ref type="bibr">[Xu et al., 2018]</ref>. GAN is a generative model that has demonstrated impressive performance on generating synthetic data that are indistinguishable from real data <ref type="bibr">[Goodfellow et al., 2014]</ref>. The idea of GAN is to let a generator and a discriminator play the adversarial game with each other. In <ref type="bibr">[Xu et al., 2018]</ref>, the authors modify the architecture of GAN to consist of one generator and two discriminators, where one discriminator aims to ensure closeto-real generation and the other discriminator aims to ensure fairness. Their method, entitled FairGAN, can meet both requirements of high data utility and fairness.</p><p>The critical limitation of FairGAN is that it can only achieve fairness in terms of a simple statistical-based fairness criterion called demographic parity. However, as paid increasing attentions recently by researchers, fairness is a causal notion that concerns the causal connection between the sensitive attributes and the challenged decisions or outputs <ref type="bibr">[Zhang et al., 2017;</ref><ref type="bibr">Zhang and Bareinboim, 2018;</ref><ref type="bibr">Nabi and Shpitser, 2018;</ref><ref type="bibr">Kusner et al., 2017;</ref><ref type="bibr">Chiappa, 2019;</ref><ref type="bibr">Wu et al., 2019;</ref><ref type="bibr">Salimi et al., 2019]</ref>. Based on Pearl's causal modeling framework <ref type="bibr">[Pearl, 2009]</ref>, a number of causal-based fairness notions and criteria have been proposed, including total effect <ref type="bibr">[Zhang and Bareinboim, 2018]</ref>, direct discrimination <ref type="bibr">[Zhang et al., 2017]</ref>, indirect discrimination <ref type="bibr">[Zhang et al., 2017]</ref>, and counterfactual fairness <ref type="bibr">[Kusner et al., 2017]</ref>. Each notion captures fairness in one particular situation from the causal perspective. Total effect treats all causal effects from the sensitive attribute to the decision as unfair. Direct and indirect discrimination, on the other hand, consider the situation where discrimination is transmitted through certain paths in the causal graph. Counterfactual fairness, again considers a different situation where we focus on the fairness with respect to a particular individual or a subgroup of individuals instead of the whole population. The causal blindness of FairGAN makes it unable to handle some causal-based notions such as counterfactual fairness, and may also affect its utility as it may remove both causal and spurious effects.</p><p>In this paper, we propose a causal fairness-aware generative adversarial network (CFGAN) for generating data that achieve various causal-based fairness criteria. Motivated by <ref type="bibr">CausalGAN [Kocaoglu et al., 2018]</ref>, we preserve the causal structure in the generator by arranging the neural network structure of the generator following a given causal graph. As a result, the generator can be considered as to simulate the underlying causal model of generating the observational data.<ref type="foot">foot_1</ref> Then, in order to handle different fairness criteria, we adopt two generators for explicitly modeling the real world and the world after we perform some hypothetical interventions. The two generators differ in some aspects to reflect the effect of interventions, but are also synchronized in terms of sharing parameters to reflect the connections between the two worlds. Then we adopt two discriminators for achieving both the high data utility and causal-based fairness. Experiments using the real world dataset show that CFGAN can generate high quality fair data based on different criteria.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2">Preliminary</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.1">Causal Model and Intervention</head><p>Definition 1. A causal model <ref type="bibr">[Pearl, 2009]</ref> is a triple M = {U, V, F} where 1) U is a set of hidden random variables that are determined by factors outside the model. A joint probability distribution P (U) is defined over the variables in U.</p><p>2) V is a set of observed random variables that are determined by variables in U &#8746; V.</p><p>3) F is a set of deterministic functions; for each</p><p>A causal model is often illustrated by a causal graph G <ref type="bibr">[Pearl, 2009]</ref>, where each observed variable is represented by a node, and the causal relationships are represented by directed edges &#8594;. In this graphical representation, the definition of parents is consistent with that in the causal model. In addition, each node V i is associated with a conditional distribution given all its parents, i.e., P (V i |P a Vi ).</p><p>Inferring causal effects in the causal model is facilitated by do-operator <ref type="bibr">[Pearl, 2009]</ref>, which simulates the physical intervention that forces some variable X &#8712; V to take certain value x. For a causal model M, intervention do(X = x) is performed by replacing original function X = f X (P a X , U X ) with X = x. After replacing, the distributions of all variables that are the descendants of X may be changed. We call the causal model after the intervention the interventional model, denoted by M x . Correspondingly, M x can be illustrated by the interventional graph G x where all incoming edges to X are deleted and node X is replaced with constant x. The interventional distribution for any Y &#8838; V \ {X} is denoted by P (Y|do(X = x)) or P (Y x ). Symbolically, P (Y x ) can be expressed as a truncated factorization formula <ref type="bibr">[Pearl, 2009]</ref> and computed from the observed distribution.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.2">Causal Effects</head><p>With the help of do-operator, we can infer the causal effect of X on Y by comparing the difference in interventional distributions under different interventions. Based on how the intervention is transferred in the causal model (graph), there are mainly three types of causal effects: total effect, path-specific effect, counterfactual effect <ref type="bibr">[Pearl, 2009]</ref>.</p><p>The total effect measures the causal effect of X on Y where the intervention is transferred along all causal paths (i.e., directed paths) from X to Y . Definition 2. The total effect of the value change of X from</p><p>The path-specific effect measures the causal effect of X on Y where the intervention is transferred only along a subset of causal paths from X to Y , which is also referred to as the &#960;-specific effect denoting the subset of causal paths as &#960;.</p><p>Definition 3. Given a path set &#960;, the &#960;-specific effect of the value change of X from x 1 to x 2 on Y (with reference x 1 ) is given by SE &#960; (x 2 , x 1 ) = P (Y x2|&#960; ) -P (Y x1|&#960; ), where P (Y x|&#960; ) represents the interventional distribution where the intervention is transferred only along &#960;.</p><p>In the total effect and path-specific effect, the intervention is performed on the whole population. The counterfactual effect measures the causal effect while the intervention is performed conditioning on only certain individuals or groups specified by a subset of observed variables</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.3">Generative Adversarial Network</head><p>Generative Adversarial Networks (GAN) <ref type="bibr">[Goodfellow et al., 2014]</ref> are generative models that consist of two components: a generator and a discriminator. Typically, both the generator and discriminator are multilayer neural networks. Generator G(Z) takes random noises Z as input and attempts to learn a generative distribution P G to match the real data distribution P data . On the contrary, the discriminative model D is a binary classifier that predicts whether an input is a real data x or a generated fake data from G(Z). By playing the adversarial game, GAN is formalized as a minimax problem min</p><p>where D(&#8226;) outputs the probability that &#8226; is from real data rather than generated fake data.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.4">CausalGAN</head><p>Research in <ref type="bibr">[Kocaoglu et al., 2018]</ref> shows that GAN can be modified to generate both observational and interventional distributions while preserving the causal structure among all attributes, referred to as the CausalGAN. Given a causal graph, generator G(Z) attempts to play the role of a causal model that agrees with this causal graph in terms of both the graph structure and conditional distributions. To this end, noises Z are partitioned into |V| subsets {Z V1 , Z V2 , . . .}, each of which Z Vi plays the role of hidden variables U Vi . Similarly, generator G(Z) is partitioned into |V| sub-neural networks {G V1 , G V2 , . . .}, each of which G Vi plays the role of function f Vi for generating the values of V i . Then, if node V j is a parent of V i in the causal graph, the output of G Vj is designed as an input of G Vi to reflect this connection. Meanwhile, the adversarial game is played to ensure P G (G(Z) = v) = P (V = v), &#8704;v. The authors have proved that G(Z) is consistent with any causal model that agrees with the same causal graph in terms of any identifiable interventional distributions, if: (1) P (V) is strictly positive; (2) the connections of sub-neural networks G Vi are arranged to reflect the causal graph structure; and (3) the generated observational distribution matches the real observational distribution, i.e., P G (G(Z) = v) = P (V = v), &#8704;v. Therefore, CausalGAN can be used to simulate the real causal model that agrees with the causal graph in identifiable situations.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3">CFGAN</head><p>To discuss the design of CFGAN, we first formulate our problem (Section 3.1), and then discuss the overall framework (Section 3.2). The CFGAN based on different fairness criteria will be discussed in Sections 3.3, 3.4 and 3.5. For all types of causal effects, we simply assume they are identifiable.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.1">Problem Statement</head><p>In this paper, we follow the conventional notations in fairness-aware learning. We consider V = {X, Y, S}, where S denotes the sensitive variable, Y denotes the decision variable, and X denotes the set of all other variables (profile attributes). Given a causal graph G = (V, E) and a dataset with m samples (x, y, s) &#8764; P data = P (V), the goal of CF-GAN is to (1) generate new data (x, &#375;, &#349;) which preserves the distribution of all attributes in the real data and (2) ensure that in the generated data &#348; has no discriminatory effect on &#374; in terms of various causal-based criteria. Note that we use the hatted variables to denote the fake data generated by the generator. For ease of discussion, we consider both S and Y as binary variables, where s + denotes S = 1 and s -denotes S = 0. It's straightforward to extend this to the multicategorical or numerical cases. In this paper we mostly discuss the causal effect of a single variable S on another single variable Y . However, the model is capable to handle causal effects between multiple variables as well.</p><p>We consider causal fairness criteria based on total effect <ref type="bibr">[Zhang and Bareinboim, 2018]</ref>, direct discrimination <ref type="bibr">[Zhang et al., 2017]</ref>, indirect discrimination <ref type="bibr">[Zhang et al., 2017]</ref>, and counterfactual fairness <ref type="bibr">[Kusner et al., 2017]</ref>, defined below. Definition 5. There is no total effect in the data if T E(s + , s -) = 0. Definition 6. There is no direct discrimination in the data if SE &#960; d (s + , s -) = 0, where &#960; d is the path set that only contains the direct edge from S to Y , i.e., S &#8594; Y . Definition 7. Given a subset of attributes R &#8838; X that cannot be objectively justified in decision making, there is no indirect discrimination in the data if SE &#960;i (s + , s -) = 0, where &#960; i is the set of causal paths from S to Y that pass through R. Definition 8. Given a subset of attributes O &#8838; X, counterfactual fairness is achieved in the data if CE(s + , s -|o) = 0 under any context O = o. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2">Model Framework</head><p>We propose the CFGAN model which consists of two generators (G 1 , G 2 ) and two discriminators (D 1 , D 2 ). Figure <ref type="figure">1</ref> shows the framework of CFGAN.</p><p>As shown in Sections 2.2 and 3.1, in general, causal-based fairness criteria compare the intervention distributions of Y under two different interventions do(S = s + ) and do(S = s -). To implement these criteria, CFGAN adopts two generators. One generator G 1 plays the role of original causal model M similar to CausalGAN, while the other generator G 2 explicitly plays the roles of different interventional models M s based on the type of causal effects. Generator G 1 aims to generate observational data whose distribution is close to the real observational distribution, and generator G 2 aims to generate interventional data that satisfy the criterion defined in Section 3.1. The two generators share the input noises and parameters to reflect the connections between the two causal models, and differ in connections of sub-neural networks to reflect the intervention. Then, CFGAN adopts two discriminators, where one discriminator D 1 tries to distinguish the generated data from the real data, and the other discriminator D 2 tries to distinguish the two intervention distributions under do(S = s + ) and do(S = s -). Finally, generators and discriminators play the adversarial game to produce high quality fair data.</p><p>Next, we give the details in designing the generators and discriminators for different fairness criteria.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.3">CFGAN based on Total Effect</head><p>We first show the CFGAN with no total effect (Definition 5). Generators. Generator G 1 is designed to agree with the causal graph G = (V, E). It consists of |V| sub-neural networks, where each of them corresponds to a node in V. All sub-neural networks are connected following the connections in G. To be specific, each sub-neural network G 1</p><p>Vi takes as input an independent noise vector Z Vi as well as the output of any other sub-neural network</p><p>Then, it outputs sample values of V i , i.e., vi .</p><p>The other generator G 2 is designed to agree with the interventional graph G s = (V, E \ {V j &#8594; S} Vj &#8712;Pa S ), where all incoming edges to S are deleted under intervention do(S = s). The structure of G 2 is similar to that of G 1 , except for   <ref type="table"/>and<ref type="table">G 2</ref> S &#8801; 0 if s = s -. The two generators G 1 and G 2 are synchronized by sharing the same set of parameters for each pair of corresponding sub-neural networks, i.e., G 1</p><p>Vi and G 2</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Vi</head><p>for each V i except for S, as well as the same noise vectors Z = z. As a result, G 1 can generate samples from the observational distribution, and G 2 can generate samples from two interventional distributions, i.e., (x, &#375;, &#349;</p><p>Consider an example in Figure <ref type="figure">2</ref> which involves 4 variables {A, S, B, Y }. Figure <ref type="figure">2a</ref> shows the causal graph G and the interventional graph G s under do(S = s), where the double headed arrows indicate the pair of nodes that share the same hidden variables and the function. Figure <ref type="figure">2b</ref> shows the structures of the generators where G 1 agrees with G and G 2 agrees with G s . The double headed arrows indicate the sharing of noises and parameters of sub-neural networks. As shown, the edge from A to S is deleted in G s , which is also reflected in G 2 . In addition, for each pair of nodes in the graphs, e.g., B in G and B in G s , the corresponding sub-neural networks are also synchronized, e.g., G 1 B and G 2 B . Discriminators. Discriminator D 1 is designed to distinguish between the real observational data (x, y, s) &#8764; P data (X, Y, S) and the generated fake observational data (x, &#375;, &#349;) &#8764; P G 1 (X, Y, S). The other discriminator D 2 is designed to distinguish between the two interventional distributions &#375;s</p><p>Putting the generators and discriminators together, generator G 1 plays the adversarial game with the discriminator D 1 , and generator G 2 plays the adversarial game with the discriminator D 2 . The overall minimax game is described as:</p><p>and &#955; is a hyperparameter which controls a trade-off between utility and fairness of data generation. The first value function J 1 aims to achieve P G 1 (X, Y, S) = P data (X, Y, S), i.e., to make the generated observational data indistinguishable from the real data. The second value function J 2 aims to achieve</p><p>Since Definition 5 requires T E(s + , s -) = 0, or equivalently P (Y s + ) = P (Y s -), J 2 actually makes the generated interventional data satisfy the fairness criterion. As G 1 and G 2 share the same sets of parameters, the observational data generated by G 1 can be considered as being generated by a causal model which is close to the real causal model and also satisfies the fairness criterion.</p><p>Finally, the generated fair data can be released to public.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.4">CFGAN based on Direct and Indirect Discrimination</head><p>Both direct and indirect discrimination are based on pathspecific effects. In this section, we focus on the indirect discrimination criterion, and direct discrimination criterion can be achieved similarly. Given a path set &#960; i that contains the paths pass through unjustified attributes, Definition 7 requires that SE &#960;i (s + , s -) = 0, or equivalently P (Y s</p><p>The design of generator G 1 is similar to that in Section 3.3, but G 2 is different in that it needs to simulate the situation where the intervention is transferred along &#960; i only. To this end, we first similarly design the structure of G 2 to agree with the interventional graph G s = (V, E \ {V j &#8594; S} Vj &#8712;Pa S ). Then, we consider two types of value settings for sub-neural network G 2 S : the reference setting and the interventional setting. For the reference setting, G 2 S is always set as G 2 S &#8801; 0. For the interventional setting, G 2 S is set as G 2 S &#8801; 1 if s = s + and G 2 S &#8801; 0 if s = s -. On the other hand, each of other sub-neural networks may output two types of sample values according to the value setting of G 2 S , referred to as the reference value and interventional value respectively. For a subneural network, if its corresponding node is not on any path in &#960; i , it always takes reference values as input and outputs reference values. However, for any other sub-neural network G 2 Vj that is on at least one path in &#960; i , it may take both types of val- generates fair decisions using a classifier that is built on nondescendants of S. A3 is similar to A1 but presupposes an additive noise model for estimating noise terms, which are then used for building the classifier. For both A1 and A3, we use SVM as the classifier for generating fair decisions.</p><p>For data utility, we compute the &#967; 2 distance, where a smaller &#967; 2 indicates better utility. We also use the generated data to train classifiers and measure the accuracy. We evaluate 4 classifiers: support vector machine (SVM), decision tree (DT), logistic regression (LR) and random forest (RF).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.2">Total Effect</head><p>We calculate the total effect for the original dataset and different generated datasets. The results are shown in Table <ref type="table">1</ref>. As can be seen, the original data has a total effect of 0.1936, and CausalGAN preserves similar total effect. FairGAN produces no total effect, but with the worst utility in terms of &#967; 2 . This may be because FairGAN removes too much information due to its causal blindness. The generated data by CFGAN based on total effect (CFGAN (TE), &#955; = 1) produces no total effect, and also preserves good data utility.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.3">Indirect Discrimination</head><p>For indirect discrimination, we consider all the paths passing through marital status as &#960; i . The results are also shown in Table <ref type="table">1</ref>. Similar to total effect, CausalGAN preserves indirect discrimination close to the original data, and FairGAN removes indirect discrimination but causes the largest utility loss. On the other hand, PSE-DR and our method (CFGAN (SE), &#955; = 1) can remove indirect discrimination and also have good data utility. We see that the two methods achieve comparable performance based on different techniques.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.4">Counterfactual Fairness</head><p>For counterfactual fairness, we consider the observation of two attributes, i.e., O = {race, native country}, which has 4 value combinations. Table <ref type="table">2</ref> shows the results for all 4 subgroups. As can be seen, the original data and CausalGAN contain biases in terms of counterfactual fairness in all subgroups. A1 is counterfactual fair as expected since it is proved to be so in <ref type="bibr">[Kusner et al., 2017]</ref>. However, the data utility is bad especially in terms of classifier accuracy, since it only uses non-descendants of sex in labeling decisions. A3 cannot achieve counterfactual fairness, probably because its linear assumption does not fit the original data well. Finally, our method (CFGAN (CE), &#955; = 1) achieves both counterfactual fairness and good data utility.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.5">Parameter Sensitivity</head><p>We evaluate the trade-off between utility and fairness when changing &#955; in the overall minimax game. A larger &#955; indicates a stronger enforcement on the fairness and compromise on utility. Figure <ref type="figure">5</ref> shows the results for total effect, where we get a fairly good trade-off between utility and fairness at &#955; = 1. We observe similar results for other fairness types.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5">Conclusions</head><p>We proposed the causal fairness-aware generative adversarial networks (CFGAN) for generating high quality fair data. We considered various causal-based fairness criteria, including total effect, direct discrimination, indirect discrimination, and counterfactual fairness. CFGAN consists of two generators and two discriminators. The two generators aim to simulate the original causal model and the interventional model. This is achieved by arranging the neural network structure of the generators following the original causal graph and the interventional graph. Then, two discriminators are adopted for achieving both the high data utility and causal fairness. Experiments using the Adult dataset showed that CFGAN can achieve all types of fairness with relatively small utility loss.</p></div><note xmlns="http://www.tei-c.org/ns/1.0" place="foot" xml:id="foot_0"><p>Proceedings of the Twenty-Eighth International Joint Conference on Artificial Intelligence </p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="1" xml:id="foot_1"><p>It is worth noting that causal effects may not be estimated from observational data in certain situations, referred to as unidentifiable situations. The generator can be treated as simulating the true causal model only in identifiable situations.</p></note>
		</body>
		</text>
</TEI>
