Learning Controllable Fair Representations

Jiaming Song, Pratyusha Kalluri, Aditya Grover, Shengjia Zhao, Stefano Ermon

INTRODUCTION

Statistical learning systems are increasingly being used to assess individuals, influencing consequential decisions such as bank loans, college admissions, and criminal sentences. This yields a growing demand for systems guaranteed to output decisions that are fair with respect to sensitive attributes such as gender, race, and disability.

In the typical classification and regression settings with fairness and privacy constraints, one is concerned about performing a single, specific task. However, situations arise where a data owner needs to release data to downstream users without prior knowledge of the tasks that will be performed (Madras et al., 2018). In such cases, it is crucial to find representations of the data that can be used on a wide variety of tasks while preserving fairness (Calmon et al., 2017).

This gives rise to two desiderata. On the one hand, the representations need to be expressive, so that they can be used effectively for as many tasks as possible. On the other hand, the representations also need to satisfy certain fairness constraints to protect sensitive attributes. Further, many notions of fairness are possible, and it may not be possible to simultaneously satisfy all of them (Kleinberg et al., 2016; Chouldechova, 2017). Therefore, the ability to effectively trade off multiple notions of fairness is crucial to fair representation learning.

To this end, we present an information theoretically motivated constrained optimization framework (Section 2). The goal is to maximize the expressiveness of representations while satisfying certain fairness constraints. We represent expressiveness as well as three dominant notions of fairness (demographic parity (Zemel et al., 2013), equalized odds, equalized opportunity (Hardt et al., 2016)) in terms of mutual information, obtain tractable upper/lower bounds of these mutual information objectives, and connect them with existing objectives such as maximum likelihood, adversarial training (Goodfellow et al., 2014), and variational autoencoders (Kingma and Welling, 2013; Rezende and Mohamed, 2015).

As we demonstrate in Section 3, this serves as a unifying framework for existing work (Zemel et al., 2013; Louizos et al., 2015; Edwards and Storkey, 2015; Madras et al., 2018) on learning fair representations. A range of existing approaches to learning fair representations, which do not draw connections to information theory, optimize an approximation of the Lagrangian dual of our objective with fixed values of the Lagrange multipliers. These thus require the user to obtain different representations for different notions of fairness as in Madras et al. (2018).

Instead, we consider a dual optimization approach (Section 4), in which we optimize the model as well as the Lagrange multipliers during training (Zhao et al., 2018), thereby also learning the trade-off between expressiveness and fairness. We further show that our proposed framework is strongly convex in distribution space.

Our work is the first to provide direct user control over the fairness of representations through fairness constraints that are interpretable by non-expert users. Empirical results in Section 5 demonstrate that our notions of expressiveness and fairness based on mutual information align well with existing definitions, our method encourages representations that satisfy the fairness constraints while being more expressive, and that our method is able to balance the trade-off between multiple notions of fairness with a single representation and a significantly lower computational cost.

AN INFORMATION-THEORETIC OBJECTIVE FOR CONTROLLABLE FAIR REPRESENTATIONS

We are given a dataset Du={(xi,ui)}i=1M\mathcal{D}_{u}=\{{{({{\bf x}}_{i},{{\bf u}}_{i})}}\}_{i=1}^{M} containing pairs of observations x∈X{{\bf x}}\in\mathcal{X} and sensitive attributes u∈U{{\bf u}}\in\mathcal{U}. We assume the dataset is sampled i.i.d. from an unknown data distribution q(x,u){{q({{\bf x}},{{\bf u}})}}. Our goal is to transform each data point (x,u)({{\bf x}},{{\bf u}}) into a new representation z∈Z{{\bf z}}\in\mathcal{Z} that is (1) transferable, i.e., it can be used in place of (x,u)({{\bf x}},{{\bf u}}) by multiple unknown vendors on a variety of downstream tasks, and (2) fair, i.e., the sensitive attributes u{{\bf u}} are protected. For conciseness, we focus on the demographic parity notion of fairness (Calders et al., 2009; Zliobaite, 2015; Zafar et al., 2015), which requires the decisions made by a classifier over z{{\bf z}} to be independent of the sensitive attributes u{{\bf u}}. We discuss in Appendix D how our approach can be extended to control other notions of fairness simultaneously, such as the equalized odds and equalized opportunity notions of fairness (Hardt et al., 2016).

We assume the representations z∈Z{{\bf z}}\in\mathcal{Z} of (x,u)({{\bf x}},{{\bf u}}) are obtained by sampling from a conditional probability distribution qϕ(z∣x,u){{q_{\phi}({{\bf z}}|{{\bf x}},{{\bf u}})}} parameterized by ϕ∈Φ\phi\in\Phi. The joint distribution of (x,z,u)({{\bf x}},{{\bf z}},{{\bf u}}) is then given by qϕ(x,z,u)=q(x,u)qϕ(z∣x,u){{q_{\phi}({{\bf x}},{{\bf z}},{{\bf u}})}}={{q({{\bf x}},{{\bf u}})}}{{q_{\phi}({{\bf z}}|{{\bf x}},{{\bf u}})}}. We formally express our desiderata for learning a controllable fair representation z{{\bf z}} through the concept of mutual information:

Fairness: z{{\bf z}} should have low mutual information with the sensitive attributes u{{\bf u}}.

Expressiveness: z{{\bf z}} should have high mutual information with the observations x{{\bf x}}, conditioned on u{{\bf u}} (in expectation over possible values of u{{\bf u}}).

The first condition encourages z{{\bf z}} to be independent of u{{\bf u}}; if this is indeed the case, the downstream vendor cannot learn a classifier over the representations z{{\bf z}} that discriminates based on u{{\bf u}}. Intuitively, the mutual information Iq(z,u){{I_{q}}}({{\bf z}},{{\bf u}}) is related to the optimal predictor of u{{\bf u}} given z{{\bf z}}. If Iq(z,u){{I_{q}}}({{\bf z}},{{\bf u}}) is zero, then no such predictor can perform better than chance; if Iq(z,u){{I_{q}}}({{\bf z}},{{\bf u}}) is large, vendors in downstream tasks could utilize z{{\bf z}} to predict the sensitive attributes u{{\bf u}} and make unfair decisions.

The second condition encourages z{{\bf z}} to contain as much information as possible from x{{\bf x}} conditioned on the knowledge of u{{\bf u}}. By conditioning on u{{\bf u}}, we ensure we do not encourage information in x{{\bf x}} that is correlated with u{{\bf u}} to leak into z{{\bf z}}. The two desiderata allow z{{\bf z}} to encode non-sensitive information from x{{\bf x}} (expressiveness) while excluding information in u{{\bf u}} (fairness).

Our goal is to choose parameters ϕ∈Φ\phi\in\Phi for qϕ(z∣x,u){{q_{\phi}({{\bf z}}|{{\bf x}},{{\bf u}})}} that meet both these criteriaSimply ignoring u{{\bf u}} as an input is insufficient, as x{{\bf x}} may still contain information about u{{\bf u}}.. Because we wish to ensure our representations satisfy fairness constraints even at the cost of using less expressive z{{\bf z}}, we synthesize the two desiderata into the following constrained optimization problem:

where Iq(x;z∣u){{I_{q}}}({{\bf x}};{{\bf z}}|{{\bf u}}) denotes the mutual information of x{{\bf x}} and z{{\bf z}} conditioned on u{{\bf u}}, Iq(z;u){{I_{q}}}({{\bf z}};{{\bf u}}) denotes mutual information between z{{\bf z}} and u{{\bf u}}, and the hyperparameter ϵ>0\epsilon>0 controls the maximum amount of mutual information allowed between z{{\bf z}} and u{{\bf u}}. The motivation of our “hard” constraint on Iq(z;u)I_{q}({{\bf z}};{{\bf u}}) – as opposed to a “soft” regularization term – is that even at the cost of learning less expressive z{{\bf z}} and losing some predictive power, we view as important ensuring that our representations are fair to the extent dictated by ϵ\epsilon.

Both mutual information terms in Equation 1 are difficult to compute and optimize. In particular, the optimization objective in Equation 1 can be expressed as the following expectation:

while the constraint on Iq(z;u){{I_{q}}}({{\bf z}};{{\bf u}}) involves the following expectation:

Even though qϕ(z∣x,u){{q_{\phi}({{\bf z}}|{{\bf x}},{{\bf u}})}} is known analytically and assumed to be easy to evaluate, both mutual information terms are difficult to estimate and optimize.

To offset the challenge in estimating mutual information, we introduce upper and lower bounds with tractable Monte Carlo gradient estimates. We introduce the following lemmas, with the proofs provided in Appendix A. We note that similar bounds have been proposed in Alemi et al. (2016, 2017); Zhao et al. (2018); Grover et al. (2019).

We begin with a (variational) lower bound on the objective function Iq(x;z∣u){{I_{q}}}({{\bf x}};{{\bf z}}|{{\bf u}}) related to expressiveness which we would like to maximize in Equation 1.

For any conditional distribution pθ(x∣z,u)p_{\theta}({{\bf x}}|{{\bf z}},{{\bf u}}) (parametrized by θ\theta)

Since entropy and KL divergence are non-negative, the above lemma implies the following lower bound:

Next, we provide an upper bound for the constraint term Iq(z;u){{I_{q}}}({{\bf z}};{{\bf u}}) that specifies the limit on unfairness. In order to satisfy this fairness constraint, we wish to implicitly minimize this term.

For any distribution p(z){{p({{\bf z}})}}, we have:

Again, using the non-negativity of KL divergence, we obtain the following upper bound:

In summary, Equation 2 and Equation 4 imply that we can compute tractable Monte Carlo estimates for the lower and upper bounds to Iq(x;z∣u){{I_{q}}}({{\bf x}};{{\bf z}}|{{\bf u}}) and Iq(z;u){{I_{q}}}({{\bf z}};{{\bf u}}) respectively, as long as the variational distributions p(x∣z,u)p({{\bf x}}|{{\bf z}},{{\bf u}}) and p(z){{p({{\bf z}})}} can be evaluated tractably, e.g., Bernoulli and Gaussian distributions. Note that the distribution qϕ(z∣x,u){{q_{\phi}({{\bf z}}|{{\bf x}},{{\bf u}})}} is assumed to be tractable.

It would be tempting to use C1C_{1}, the tractable upper bound from Equation 4, as a replacement for Iq(z,u){{I_{q}}}({{\bf z}},{{\bf u}}) in the constraint of Equation 1. However, note from Equation 3 that C1C_{1} is also an upper bound to Iq(x,z∣u){{I_{q}}}({{\bf x}},{{\bf z}}|{{\bf u}}), which is the objective function (expressiveness) we would like to maximize in Equation 1. If this was constrained too tightly, we would constrain the expressiveness of our learned representations. Therefore, we introduce a tighter bound via the following lemma.

For any distribution p(u){{p({{\bf u}})}}, we have:

Using the non-negativity of KL divergence as before, we obtain the following upper bound on Iq(z;u){{I_{q}}}({{\bf z}};{{\bf u}}):

While C^2\hat{C}_{2} is a valid upper bound to Iq(z;u){{I_{q}}}({{\bf z}};{{\bf u}}), the term qϕ(u∣z){{q_{\phi}({{\bf u}}|{{\bf z}})}} appearing in C^2\hat{C}_{2} is intractable to evaluate, requiring an integration over x{{\bf x}}. Our solution is to approximate qϕ(u∣z){{q_{\phi}({{\bf u}}|{{\bf z}})}} with a parametrized model pψ(u∣z){{p_{\psi}({{\bf u}}|{{\bf z}})}} with parameters ψ∈Ψ\psi\in\Psi obtained via the following objective:

Note that the above objective corresponds to maximum likelihood prediction with inputs z{{\bf z}} and labels u{{\bf u}} using pψ(u∣z){{p_{\psi}({{\bf u}}|{{\bf z}})}}. In contrast to qϕ(u∣z){{q_{\phi}({{\bf u}}|{{\bf z}})}}, the distribution pψ(u∣z){{p_{\psi}({{\bf u}}|{{\bf z}})}} is tractable and implies the following lower bound to C^2\hat{C}_{2}:

It follows that we can approximate Iq(z;u){{I_{q}}}({{\bf z}};{{\bf u}}) through the following adversarial training objective:

4 A practical objective for controllable fair representations

Recall that our goal is to find tractable estimates to the mutual information terms in Equation 1 to make the objective and constraints tractable. In the previous sections, we have derived a lower bound for Iq(x,u∣z){{I_{q}}}({{\bf x}},{{\bf u}}|{{\bf z}}) (which we want to maximize) and upper bounds for Iq(u,z){{I_{q}}}({{\bf u}},{{\bf z}}) (which we want to implicitly minimize to satisfy the constraint). Therefore, by applying these results to the optimization problem in Equation 1, we obtain the following constrained optimization problem:

where Lr\mathcal{L}_{r}, C1C_{1}, and C2C_{2} are introduced in Equations 2, 4 and 6 respectively.

Both C1C_{1} and C2C_{2} provide a way to limit Iq(z,u){{I_{q}}}({{\bf z}},{{\bf u}}). C1C_{1} is guaranteed to be an upper bound to Iq(z;u){{I_{q}}}({{\bf z}};{{\bf u}}) but also upper-bounds Iq(x;z∣u){{I_{q}}}({{\bf x}};{{\bf z}}|{{\bf u}}) (which we would like to maximize), so it is more suitable when we value true guarantees on fairness over expressiveness. C2C_{2} may more accurately approximate Iq(z;u){{I_{q}}}({{\bf z}};{{\bf u}}) but is guaranteed to be an upper bound only in the case of an optimal adversary. Hence, it is more suited for scenarios where the user is satisfied with guarantees on fairness in the limit of adversarial training, and we wish to learn more expressive representations. Depending on the underlying application, the user can effectively remove either of the constraints C1C_{1} or C2C_{2} (or even both) by setting the corresponding ϵ\epsilon to infinity.

A UNIFYING FRAMEWORK FOR RELATED WORK

Multiple methods for learning fair representations have been proposed in the literature. Zemel et al. (2013) propose a method for clustering individuals into a small number of discrete fair representations. Discrete representations, however, lack the representational power of distributed representations, which vendors desire. In order to learn distributed fair representations, Edwards and Storkey (2015), Eissman et al. (2018) and Madras et al. (2018) each propose adversarial training, where the latter (LAFTR) connects different adversarial losses to multiple notions of fairness. Louizos et al. (2015) propose VFAE for learning distributed fair representations by using a variational autoencoder architecture with additional regularization based on Maximum Mean Discrepancy (MMD) (Gretton et al., 2007). Each of these methods is limited to the case of a binary sensitive attribute because their measurements of fairness are based on statistical parity (Zemel et al., 2013), which is defined only for two groups.

Interestingly, each of these methods can be viewed as optimizing an approximation of the Lagrangian dual of our objective in Equation 10, with particular fixed settings of the Lagrangian multipliers:

where Lr\mathcal{L}_{r}, CiC_{i} and ϵi\epsilon_{i} are defined as in Equation 10, and the multipliers λi≥0\lambda_{i}\geq 0 are hyperparameters controlling the relative strengths of the constraints (which now act as “soft” regularizers).

We use “approximation” to suggest these objectives are not exactly the same as ours, as ours can deal with more than two groups in the fairness criterion C2C_{2} and theirs cannot. However, all the fairness criteria achieve z⊥u{{\bf z}}\perp{{\bf u}} at a global optimum; in the following discussions, for brevity we use C2C_{2} to indicate their objectives, even when they are not identical to oursWe also have not included the task classification error in their methods, as we do not assume a single, specific task or assume access to labels in our setting..

Here, the values of ϵ\epsilon do not affect the final solution. Therefore, if we wish to find representations that satisfy specific constraints, we would have to search over the hyperparameter space to find feasible solutions, which could be computationally inefficient. We call this class of approaches Mutual Information-based Fair Representations (MIFRPronounced “Mipha”.). In Table 1, we summarize these existing methods.

Zemel et al. (2013) consider Lr\mathcal{L}_{r} as well as minimizing statistical parity (Equation 4 in their paper); they assume z{{\bf z}} is discrete, bypassing the need for adversarial training. Their objective is equivalent to Equation 11 with λ1=0,λ2=Az/Ax\lambda_{1}=0,\lambda_{2}=A_{z}/A_{x}.

Edwards and Storkey (2015) considers Lr\mathcal{L}_{r} (where pθ(x∣z,u){{p_{\theta}({{\bf x}}|{{\bf z}},{{\bf u}})}} is Gaussian) and adversarial training where the adversary tries to distinguish the representations from two groups (Equation 9). Their objective is equivalent to Equation 11 with λ1=0,λ2=α/β\lambda_{1}=0,\lambda_{2}=\alpha/\beta.

Madras et al. (2018) considers Lr\mathcal{L}_{r} and adversarial training, which optimizes over surrogates to the demographic parity distance between two groups (Equation 4). Their objective is equivalent to Equation 11 with λ1=0,λ2=γ/β\lambda_{1}=0,\lambda_{2}=\gamma/\beta.

Louizos et al. (2015) consider Lr\mathcal{L}_{r}, C1C_{1} with λ1=1\lambda_{1}=1 and the maximum mean discrepancy between two sensitive groups (C2C_{2}) (Equation 8). However, as Lr+C1\mathcal{L}_{r}+C_{1} is the VAE objective, their solutions does not prefer high mutual information between x{{\bf x}} and z{{\bf z}} (referred to as the “information preference” property (Chen et al., 2016; Zhao et al., 2017b, a, 2018)). Their objective is equivalent to Equation 11 with λ1=1,λ2=β\lambda_{1}=1,\lambda_{2}=\beta.

All of the above methods requires hand-tuning λ\lambda to govern the trade-off between the desiderata, because each of these approaches optimizes the dual with fixed multipliers instead of optimizing the multipliers to satisfy the fairness constraints, ϵ\epsilon is ignored, so these approaches cannot ensure that the fairness constraints are satisfied. Using any of these approaches to empirically achieve a desirable limit on unfairness requires manually tuning the multipliers (e.g., increase some λi\lambda_{i} until the corresponding constraint is satisfied) over many experiments and is additionally difficult because there is no interpretable relationship between the multipliers and a limit on unfairness.

Our method is also related to other works on fairness and information theory. Komiyama et al. (2018) solve least square regression under multiple fairness constraints. Calmon et al. (2017) transform the dataset to prevent discrimination on specific classification tasks. Zhao et al. (2018) discussed information-theoretic constraints in the context of learning latent variable generative models, but did not discuss fairness.

DUAL OPTIMIZATION FOR CONTROLLABLE FAIR REPRESENTATIONS

In order to exactly solve the dual of our practical objective from Equation 10 and guarantee that the fairness constraints are satisfied, we must optimize the model parameters as well as the Lagrangian multipliers, which we do using the following dual objective:

where λ=[λ1,λ2]{{\bm{\lambda}}}=[\lambda_{1},\lambda_{2}] are the multipliers and ϵ=[ϵ1,ϵ2]{{\bm{\epsilon}}}=[\epsilon_{1},\epsilon_{2}] and C=[C1,C2]{{\bf C}}=[C_{1},C_{2}] represent the constraints.

If we assume we are optimizing in the distribution space (i.e. Φ,Θ\Phi,\Theta corresponds to the set of all valid distributions (qϕ(z∣x,u),pθ(x∣z,u),pθ(z))({{q_{\phi}({{\bf z}}|{{\bf x}},{{\bf u}})}},{{p_{\theta}({{\bf x}}|{{\bf z}},{{\bf u}})}},p_{\theta}({{\bf z}}))), then we can show that strong duality holds (our primal objective from Equation 10 equals our dual objective from Equation 12).

If ϵ1,ϵ2>0\epsilon_{1},\epsilon_{2}>0, then strong duality holds for the following optimization problem over distributions pθp_{\theta} and qϕq_{\phi}:

where qϕq_{\phi} denotes qϕ(z∣x,u){{q_{\phi}({{\bf z}}|{{\bf x}},{{\bf u}})}} and pθp_{\theta} denotes pθ(z)p_{\theta}({{\bf z}}) and pθ(x∣z,u){{p_{\theta}({{\bf x}}|{{\bf z}},{{\bf u}})}}.

We show the complete proof in Appendix A.4. Intuitively, we utilize the convexity of KL divergence (over the pair of distributions) and mutual information (over the conditional distribution) to verify that Slater’s conditions hold for this problem.

In practice, we can perform standard iterative gradient updates in the parameter space: standard gradient descent over θ,ϕ\theta,\phi, gradient ascent over ψ\psi (which parameterizes only the adversary), and gradient ascent over λ{{\bm{\lambda}}}. Intuitively, the gradient ascent over λ{{\bm{\lambda}}} corresponds to a multiplier λ{{\bm{\lambda}}} increasing when its constraint is not being satisfied, encouraging the representations to satisfy the fairness constraints even at a cost to representation expressiveness. Empirically, we show that this scheme is effective despite non-convexity in the parameter space.

Note that given finite model capacity, an ϵ{{\bm{\epsilon}}} that is too small may correspond to no feasible solutions in the parameter space; that is, it may be impossible for the model to satisfy the specified fairness constraints. Here we introduce heuristics to estimate the mimimum feasible ϵ{{\bm{\epsilon}}}. The minimum feasible ϵ1\epsilon_{1} and ϵ3\epsilon_{3} can be estimated by running the standard conditional VAE algorithm on the same model and estimating the value of each divergence. Feasible ϵ2\epsilon_{2} can be approximated by Hq(u){{H_{q}}}({{\bf u}}), since Iq(z;u)≤Hq(u){{I_{q}}}({{\bf z}};{{\bf u}})\leq{{H_{q}}}({{\bf u}}); This can easily be estimated empirically when u{{\bf u}} is binary or discrete.

EXPERIMENTS

We aim to experimentally answer the following:

Do our information-theoretical objectives align well with existing notions of fairness?

Do our constraints achieve their intended effects?

How do MIFR and L-MIFR compare when learning controllable fair representations?

How are the learned representations affected by other hyperparameters, such as the number of iterations used for adversarial training in C2C_{2}?

Does L-MIFR have the potential to balance different notions of fairness?

We evaluate our results on three datasets (Zemel et al., 2013; Louizos et al., 2017; Madras et al., 2018). The first is the UCI German credit datasethttps://archive.ics.uci.edu/ml/datasets, which contains information about 1000 individuals, with a binary sensitive feature being whether the individual’s age exceeds a threshold. The downstream task is to predict whether the individual is offered credit or not. The second is the UCI Adult datasethttps://archive.ics.uci.edu/ml/datasets/adult, which contains information of over 40,000 adults from the 1994 US Census. The downstream task is to predict whether an individual earns more than 50K/year.Weconsiderthesensitiveattributetobegender,whichispre−processedtobeabinaryvalue.ThethirdistheHeritageHealthdatasethttps://www.kaggle.com/c/hhp,whichcontainsinformationofover60,000patients.ThedownstreamtaskistopredictwhethertheCharlsonIndex(anestimationofpatientmortality)isgreaterthanzero.Divergingfrompreviouswork(Madrasetal.,2018),weconsidersensitiveattributestobeageandgender,wherethereare9possibleagevaluesand2possiblegendervalues;hencethesensitiveattributeshave18configurations.ThispreventsVFAE(Louizosetal.,2015)andLAFTR(Madrasetal.,2018)frombeingapplied,asbothmethodsreplyonsomestatisticaldistancebetweentwogroups,whichisnotdefinedwhenthereare18groupsinquestion50K/year. We consider the sensitive attribute to be gender, which is pre-processed to be a binary value. The third is the Heritage Health datasethttps://www.kaggle.com/c/hhp, which contains information of over 60,000 patients. The downstream task is to predict whether the Charlson Index (an estimation of patient mortality) is greater than zero. Diverging from previous work (Madras et al., 2018), we consider sensitive attributes to be age and gender, where there are 9 possible age values and 2 possible gender values; hence the sensitive attributes have 18 configurations. This prevents VFAE (Louizos et al., 2015) and LAFTR (Madras et al., 2018) from being applied, as both methods reply on some statistical distance between two groups, which is not defined when there are 18 groups in question\Delta_{DP}$ is only defined for binary sensitive variables in (Madras et al., 2018)..

We assume that the model does not have access to labels during training; instead, it supplies its representations to an unknown vendor’s classifier, whose task is to achieve high prediction with labels. We compare the performance of MIFR, the model with fixed multipliers, and L-MIFR, the model using the Lagrangian dual optimization method. We provide details of the experimental setup in Appendix B. Specifically, we consider the simpler form for p(z){{p({{\bf z}})}} commonly used in VAEs, where p(z){{p({{\bf z}})}} is a fixed prior; the use of other more flexible parametrized forms of p(z){{p({{\bf z}})}}, such as normalizing flows (Dinh et al., 2016; Rezende and Mohamed, 2015) and autoregressive models (Kingma et al., 2016; van den Oord et al., 2016), is left as future work.

We estimate the mutual information values Iq(x;z∣u){{I_{q}}}({{\bf x}};{{\bf z}}|{{\bf u}}) and Iq(u;z){{I_{q}}}({{\bf u}};{{\bf z}}) on the test set using the following equations:

where qϕ(z∣u){{q_{\phi}({{\bf z}}|{{\bf u}})}} is estimated via kernel density estimation over samples from qϕ(z∣x,u){{q_{\phi}({{\bf z}}|{{\bf x}},{{\bf u}})}} with (x,u)({{\bf x}},{{\bf u}}) sampled from the training set. Kernel density estimates are reasonable since both z{{\bf z}} and u{{\bf u}} are low dimensional (for example, Adult considers a 10-dimension z{{\bf z}} for 40,000 individuals). However, computing qϕ(z∣u){{q_{\phi}({{\bf z}}|{{\bf u}})}} requires a summation over the training set, so we only compute these mutual information quantities during evaluation. We include our implementations in https://github.com/ermongroup/lag-fairness.

2 Mutual Information, Prediction Accuracy, and Fairness

We investigate the relationship between mutual information and prediction performance by considering area under the ROC curve (AUC) for prediction tasks. We also investigate the relationship between mutual information and traditional fairness metrics by considering the ΔDP\Delta_{DP} fairness metric in Madras et al. (2018), which compares the absolute expected difference in classifier outcomes between two groups. ΔDP\Delta_{DP} is only defined on two groups of classifier outcomes, so it is not defined for the Health dataset when considering the sensitive attributes to be “age and gender”, which has 18 groups. We use logistic regression classifiers for prediction tasks.

From the results results in Figure 1, we show that there are strong positive correlations between Iq(x;z∣u){{I_{q}}}({{\bf x}};{{\bf z}}|{{\bf u}}) and test AUC, and between Iq(z,u){{I_{q}}}({{\bf z}},{{\bf u}}) and ΔDP\Delta_{DP}; increases in Iq(z,u){{I_{q}}}({{\bf z}},{{\bf u}}) decrease fairness. We also include a baseline in Figure 1 where the features are obtained via the top-kk principal components (where kk is the dimension of z{{\bf z}}), which has slightly better AUC but significantly worse fairness as measured by ΔDP\Delta_{DP}. Therefore, our information theoretic notions of fairness/expressiveness align well with existing notions such as ΔDP\Delta_{DP}/test AUC.

3 Controlling Representation Fairness with L-MIFR

Keeping all other constraint budgets fixed, any increase in ϵi\epsilon_{i} for an arbitrary constraint CiC_{i} implies an increase in the unfairness budget; consequently, we are able to trade-off fairness for more informative representations when desired.

We demonstrate this empirically via an experiment where we note the CiC_{i} values corresponding to a range of budgets ϵi\epsilon_{i} at a fixed configuration of the other constraint budgets ϵj\epsilon_{j} (j≠ij\neq i). From Figure 2, CiC_{i} increases as ϵi\epsilon_{i} increases, and Ci<ϵiC_{i}<\epsilon_{i} holds under different values of the other constraints ϵj\epsilon_{j}. This suggest that we can use ϵi\epsilon_{i} to control CiC_{i} (our fairness criteria) of the learned representations.

We further show the changes in ΔDP\Delta_{DP} (a traditional fairness criteria) values as we vary ϵi\epsilon_{i} in Figure 3. In Adult, ΔDP\Delta_{DP} clearly increases as ϵi\epsilon_{i} increases; this is less obvious in German, as ΔDP\Delta_{DP} is already very low. These results suggest that the L-MIFR user can control the level of fairness of the representations quantitatively via ϵ\epsilon.

4 Improving Representation Expressiveness with L-MIFR

Recall that our goal is to perform controlled fair representation learning, which requires us to learn expressive representations subject to fairness constraints. We compare two approaches that could achieve this: 1) MIFR, which has to consider a range of Lagrange multipliers (e.g. from a grid search) to obtain solutions that satisfy the constraints; 2) L-MIFR, which finds feasible solutions directly by optimizing the Lagrange multipliers.

We evaluate both methods on 4 sets of constraints by modifying the values of ϵ2\epsilon_{2} (which is the tighter estimate of Iq(z;u){{I_{q}}}({{\bf z}};{{\bf u}})) while keeping ϵ1\epsilon_{1} fixed, and we compare the expressiveness of the features learned by the two methods in Figure 4. For MIFR, we perform a grid search running 52=255^{2}=25 configurations. In contrast, we run one instance of L-MIFR for each ϵ\epsilon setting, which takes roughly the same time to run as one instance of MIFR (the only overhead is updating the two scalar values λ1\lambda_{1} and λ2\lambda_{2}).

In terms of representation expressiveness, L-MIFR outperforms MIFR even though MIFR took almost 25x the computational resources. Therefore, L-MIFR is significantly more computationally efficient than MIFR at learning controlled fair representation.

5 Ablation Studies

The C2C_{2} objective requires adversarial training, which involves iterative training of (θ,ϕ)(\theta,\phi) with ψ\psi. We assess the sensitivity of the expressiveness and fairness of the learned representations to the number of iterations DD for ψ\psi per iteration for (θ,ϕ)(\theta,\phi). Following practices in (Gulrajani et al., 2017) to have more iterations for critic, we consider D={1,2,5,10}D=\{1,2,5,10\}, and use the same number of total iterations for training.

In Table 2, we evaluate Iq(x;z∣u){{I_{q}}}({{\bf x}};{{\bf z}}|{{\bf u}}) and Iq(z;u){{I_{q}}}({{\bf z}};{{\bf u}}) obtained L-MIFR on Adult (ϵ2=0.10\epsilon_{2}=0.10) and Health (ϵ2=0.30\epsilon_{2}=0.30). This suggests that the final solution of the representations is not very sensitive to DD, although larger DD seem to find solutions that are closer to ϵ2\epsilon_{2}.

6 Fair Representations under Multiple Notions

Finally, we demonstrate how L-MIFR could control multiple fairness constraints simultaneously, thereby finding representations that are reasonably fair when there are multiple fairness notions being considered. We consider the Adult dataset, and describe the demographic parity, equalized odds and equalized opportunity notions of fairness in terms of mutual information, which we denote as IDP:=Iq(z;u)I_{DP}:={{I_{q}}}({{\bf z}};{{\bf u}}), IEOI_{EO}, IEOppI_{EOpp} respectively (see details in Appendix D about how IEOI_{EO} and IEOppI_{EOpp} are derived).

For L-MIFR, we set ϵ1=10\epsilon_{1}=10 and other ϵ\epsilon values to 0.10.1. For MIFR, we consider a more efficient approach than random grid search. We start by setting every λ=0.1\lambda=0.1; then we multiply the λ\lambda value for a particular constraint by 22 until the constraint is satisfied by MIFR; we finish when all the constraints are satisfiedThis allows MIFR to approach the feasible set from outside, so the solution it finds will generally have high expressiveness.. We find that this requires us to update the λ\lambda of IDPI_{DP}, IEOI_{EO} and IEOppI_{EOpp} four times each (so corresponding λ=1.6\lambda=1.6); this costs 12x the computational resources needed by L-MIFR.

We compare the representations learned by L-MIFR and MIFR in Figure 3. L-MIFR outperforms MIFR in terms of Iq(x;z∣u){{I_{q}}}({{\bf x}};{{\bf z}}|{{\bf u}}), IDPI_{DP}, IEOI_{EO} and IEOppI_{EOpp}, while only being slightly worse in terms of C1C_{1}. Since ϵ1=10\epsilon_{1}=10, the L-MIFR solution is still feasible. This demonstrates that even with a thoughtfully designed method for tuning λ\lambda, MIFR is still much inferior to L-MIFR in terms of computational cost and representation expressiveness.

DISCUSSION

In this paper, we introduced an objective for learning controllable fair representations based on mutual information. This interpretation allows us to unify and explain existing work. In particular, we have shown that a range of existing approaches optimize an approximation to the Lagrangian dual of our objective with fixed multipliers, fixing the trade-off between fairness and expressiveness. We proposed a dual optimization method that allows us to achieve higher expressiveness while satisfying the user-specified limit on unfairness.

In future work, we are interested in formally and empirically extending this framework and the corresponding dual optimization method to other notions of fairness. It is also valuable to investigate alternative approaches to training the adversary (Gulrajani et al., 2017), the usage of more flexible p(z)p({{\bf z}}) (Rezende and Mohamed, 2015), and alternative solutions to bounding Iq(z,u){{I_{q}}}({{\bf z}},{{\bf u}}).

This research was supported by NSF (#1651565, #1522054, #1733686), ONR (N00014-19-1-2145), AFOSR (FA9550-19-1-0024), and FLI. We thank Xudong Shen for helpful discussions.

Bibliography

Appendix A Proofs

where the last inequality holds because KL divergence is non-negative. ∎

A.2 Proof of Lemma 2

A.3 Proof of Lemma 3

Again, the last inequality holds because KL divergence is non-negative. ∎

A.4 Proof of Theorem 5

Let us first verify that this problem is convex.

Let q=βq1+(1−β)q2q=\beta q_{1}+(1-\beta)q_{2}, ∀β∈,q1,q2\forall\beta\in,q_{1},q_{2}. We have

Hence, Slater’s condition holds, which is a sufficient condition for strong duality. ∎

Appendix B Experimental Setup Details

We consider the following setup for our experiments.

For MIFR, we modify the weight for reconstruction error α=1\alpha=1, as well as λ1∈{0.0,0.1,0.2,1.0,2.0}\lambda_{1}\in\{0.0,0.1,0.2,1.0,2.0\} and λ2∈{0.1,0.2,1.0,2.0,5.0}\lambda_{2}\in\{0.1,0.2,1.0,2.0,5.0\} for the constraints, which creates a total of 52=255^{2}=25 configurations; λ1\lambda_{1} values smaller since high values of λ1\lambda_{1} prefers solutions with low Iq(x;z∣u){{I_{q}}}({{\bf x}};{{\bf z}}|{{\bf u}}).

For L-MIFR, we modify ϵ1\epsilon_{1} and ϵ2\epsilon_{2} according to the estimated values for each dataset. This allows us to claim results that holds for a certain hyperparameter in general (even as other hyperparameter change).

We use the Adam optimizer with initial learning rate 1e−31e-3 and β1=0.5\beta_{1}=0.5 where the learning rate is multiplied by 0.980.98 every 10001000 optimization iterations, following common settings for adversarial training (Gulrajani et al., 2017).

For L-MIFR, we initialize the λi\lambda_{i} parameters to 1.01.0, and allow for a range of (0.01,100)(0.01,100).

Unless otherwise specified, we update pψ(u∣z){{p_{\psi}({{\bf u}}|{{\bf z}})}} 1010 times per update of qϕ(z∣x,u){{q_{\phi}({{\bf z}}|{{\bf x}},{{\bf u}})}} and pθ(x∣z,u){{p_{\theta}({{\bf x}}|{{\bf z}},{{\bf u}})}}.

For Adult and Health we optimize for 2000 epochs; for German we optimize for 10000 epochs (since there are only 1000 low dimensional data points).

For both cases, we consider qϕ(z∣x,u),pθ(x∣z,u),pψ(u∣z)q_{\phi}({{\bf z}}|{{\bf x}},{{\bf u}}),p_{\theta}({{\bf x}}|{{\bf z}},{{\bf u}}),p_{\psi}({{\bf u}}|{{\bf z}}) as a two layer neural networks with a hidden layer of 50 neurons with softplus activations, and use z{{\bf z}} of dimension 10 for German and Adult, and 30 for Health. For the joint of two variables (i.e. (x,u)({{\bf x}},{{\bf u}})) we simply concatenate them at the input layer. We find that our conclusions are insensitive to a reasonable change in architectures (e.g. reduce number of neurons to 50 and z{{\bf z}} to 25 dimensions).

Appendix C Comparison with LAFTR

Our work have several notable differences from prior methods (such as LAFTR (Madras et al., 2018)) that make it hard to compare them directly. First, we do not assume access to the prediction task while learning the representation, thus our method does not directly include the “classification error” objective. Second, our method is able to deal with any type of sensitive attributes, as opposed to binary ones.

Nevertheless, we compare the performance of MIFR and LAFTR (Madras et al.) with the demographic parity notion of fairness (measured by DeltaDPDelta_{DP}, lower is better). To make a fair comparison, we add a classification error to MIFR during training. MIFR achieves an accuracy of 0.829 and ΔDP\Delta_{DP} of 0.037, whereas LAFTR achieves an accuracy of 0.821 and ΔDP\Delta_{DP} of 0.029. This shows that MIFR and LAFTR are comparable in terms of the accuracy / fairness trade-off. MIFR is still useful for sensitive attributes that are not binary, such as Health, which LAFTR cannot handle.

We further show a comparison of ΔDP\Delta_{DP}, ΔEO\Delta_{EO}, ΔEOpp\Delta_{EOpp} between L-MIFR and LAFTR (Madras et al., 2018) on the Adult dataset in Table 4, where L-MIFR is trained with the procedure in Section 5.6. While LAFTR achieves better fairness on each notion if it is specifically trained for that notion, it often achieves worse performance on other notions of fairness. We note that L-MIFR uses a logistic regression classifier, whereas LAFTR uses a one layer MLP. Moreover, these measurements are also task-specific as opposed to mutual information criterions.

Appendix D Extension to Equalized Odds and Equalized Opportunity

If we are also provided labels yy for a particular task, in the form of Dl={(xi,ui,yi)}i=1M\mathcal{D}_{l}=\{{{({{\bf x}}_{i},{{\bf u}}_{i},y_{i})}}\}_{i=1}^{M}, we can also use the representations to predict yy, which leads to a third condition:

Classification z{{\bf z}} can be used to classify yy with high accuracy.

We can either add this condition to the primal objective in Equation 1, or add an additional constraint that we wish to have accuracy that is no less than a certain threshold.

With access to binary labels, we can also consider information-theoretic approaches to equalized odds and equalized opportunity (Hardt et al., 2016). Recall that equalized odds requires that the predictor and sensitive attribute are independent conditioned on the label, whereas equalized opportunity requires that the predictor and sensitive attribute are independent conditioned on the label being positive. In the case of learning representations for downstream tasks, our notions should consider any classifier over z{{\bf z}}.

For equalized odds, we require that zz and uu have low mutual information conditioned on the label, which is Iq(z,u∣y)I_{q}({{\bf z}},{{\bf u}}|y). For equalized opportunity, we require that zz and uu have low mutual information conditioned on the label y=1y=1, which is Iq(z,u)∣y=1I_{q}({{\bf z}},{{\bf u}})|_{y=1}.

We can still apply the upper bounds similar to the case in C2C_{2}. For equalized opportunity we have

which can be implemented by using a separate classifier for each yy or using yy as input. If yy is an input to the classifier, our mutual information formulation of equalized odds does not have to be restricted to the case where yy is binary.