{'fraction_non_alphanumeric': 0.03202534868588565, 'fraction_numerical': 0.007553682066370555, 'mean_word_length': 5.070410441353254, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
End-To-End Bias Mitigation: Removing Gender Bias in Deep Learning

Machine Learning models have been deployed across many different aspects of society, often in situations that affect social welfare. Although these models offer streamlined solutions to large problems, they may contain biases and treat groups or individuals unfairly based on protected attributes such as gender. In this paper, we introduce several examples of machine learning gender bias in practice followed by formalizations of fairness. We provide a survey of fairness research by detailing influential pre-processing, in-processing, and post-processing bias mitigation algorithms. We then propose an end-to-end bias mitigation framework, which employs a fusion of pre-, in-, and post-processing methods to leverage the strengths of each individual technique. We test this method, along with the standard techniques we review, on a deep neural network to analyze bias mitigation in a deep learning setting. We find that our end-to-end bias mitigation framework outperforms the baselines with respect to several fairness metrics, suggesting its promise as a method for improving fairness. As society increasingly relies on artificial intelligence to help in decision-making, addressing gender biases present in deep learning models is imperative. To provide readers with the tools to assess the fairness of machine learning models and mitigate the biases present in them, we discuss multiple open source packages for fairness in AI.


I. INTRODUCTION
Research in artificial intelligence (AI) and machine learning (ML) has brought about significant advances in recent years. Beyond purely academic literature, ML models are increasingly being applied as decision-makers alongside (or even in lieu of) humans. Many of these models are used in applications with a social impact. For example, models have been deployed to determine optimal coinsurance rates and tax rates [1], efficiently allocate health inspectors in cities [2], decide which patients receive medical interventions based on predicted risk of heart failure [3], assess risk in numerous criminal justice decisions [4], and much more.
However, when ML models make such sensitive decisions, problems can arise. Specifically, predictive models may introduce or reinforce biases implicit in the data. When these models are indiscriminately deployed, they can have major impacts on individuals [5]. As these models become more complex and the data more abundant, accuracy increases but transparency often decreases [6]. Accordingly, questions of fairness in machine learning -such as how to measure it and how to improve it -become all the more important.
The contributions of this review are threefold. First, to our knowledge, this review is the first to focus specifically on gender bias in ML. We detail several examples of ML models that are gender biased to motivate further research in this area, formalize notions of fairness in ML, and survey a number of algorithms for mitigating gender bias. These algorithms can be broadly categorized into three groups based on when during training they are executed: pre-processing, in-processing, and post-processing. Second, we present a novel fusion of these methods to create an end-to-end bias mitigation framework for increasing fairness, which we test on a gender-biased dataset. Third, while the pre-, in-, and post-processing algorithms that comprise our end-to-end approach were applied to statistical models [7]- [9], we extend these algorithms to a deep learning setting to analyze the success of these techniques in complex domains. We close with a discussion of future directions of the field along with open-source packages that make fairness research broadly accessible.

II. GENDER BIAS IN MACHINE LEARNING
When machine learning models are designed to optimize only one performance metric, such as profit or accuracy, they can have inadvertent but detrimental consequences [10]. When these models produce discriminatory results based on sensitive traits such as gender, we consider them to be 'biased' or 'unfair.' Examples of gender-based unfairness in real applications are abundant. For instance, the Gender Shades project, a black-box algorithmic audit of three commercial facial analysis models using their Application Programming Interfaces (APIs), found that the classifiers performed better on male faces than female faces and lighter faces than darker faces. All of the classifiers in the study performed worst on Black, female faces. The Microsoft and IBM facial classifiers performed best on white, male faces [11]. Several months after the study, the three audited companies updated their facial recognition APIs, decreasing accuracy disparities between lighter and darker skinned and male and female individuals [12]. The Gender Shades project thus illustrates the importance of algorithmic fairness research for changing the industry. Machine translation has also been shown to be gender biased. For example, Prates et al. [13] created simple sentences in 12 gender neutral languages of the form "He/she is a teacher" (where "teacher" is an occupation selected from a list of jobs) and then translated them into English using Google Translate. They found that Google Translate was biased against women when picking which gender pronoun to use, choosing the pronoun "he" over "she" for occupations in STEM, legal, corporate, and several other fields. Moreover, the study found that Google Translate amplified gender disparities, yielding male pronouns instead of female ones even more than reflected in the training data. After the paper's placement on arXiv.org and its increasing coverage in the media, Google began offering both masculine and feminine translations, once again indicating the importance of research on gender bias in machine learning.
In natural language processing (NLP), gender biases have been found in examples of word embedding, a method that vectorizes natural language to portray semantic similarities by vector proximity. Even embeddings trained rigorously on large datasets like Google News have been shown to be inherently sexist. For example, when Bolukbasi et al [14] trained a model to solve analogy puzzles, the model returned that "man is to computer programmer as woman is to homemaker." Similarly stereotypical outputs of the model included relating man to "surgeon" and woman to "nurse," man to "shopkeeper" and woman to "housewife," and man to "brilliant" and woman to "lovely." In the realm of search engines, Datta et al. [15] found that Google displayed fewer high-paying jobs to women compared to men. In healthcare, AI algorithms have been deployed to predict personalized preventative and therapeutic care based on genetic and environmental factors. Many of these models discriminate against women by misdiagnosing them or ignoring relevant links between sex and health differences [16]. This bias in model prediction can lead to sub-optimal (and sometimes even fatal) outcomes. Thus, across applications training models on biased data can reinforce gender discrimination, ultimately leading to detrimental societal results.

III. FORMALIZING FAIRNESS
While it is clear that the aforementioned examples constitute unfair machine learning practices, in order for research to mitigate unfair learning, it is necessary to formally define what is fair and what is not.
In general, fair models should indicate the absence of discrimination with respect to protected classes. For instance, in the United States, a number of classes or attributes have been defined as "protected" by law. Protected attributes, according to the Fair Housing and Equal Credit Opportunity Acts [17], [18], include gender identity, age, color, disability, familial status, marital status, national origin, race, religion, sex, and public assistance status. For the purpose of this review, we specifically focus on metrics to evaluate fairness based on sex. 1 While there are a multitude of fairness definitions in the literature, this paper considers the most widely used definitions, motivated by [19] and [20]. The broadest definition of fairness is simply "the absence of any prejudice or favoritism towards an individual or a group based on their intrinsic or acquired traits" [21]. Specific fairness definitions can be separated into two main categories: individual fairness and group fairness.

A. Individual fairness
For a model to be fair at the individual level, similar individuals must receive similar predictions. From a social science perspective, this idea is closest to the notion of fairness as consistency [22]. A simple formalization of individual fairness is fairness through unawareness.
Definition 1: Fairness through unawareness [23] A modelŶ achieves fairness through unawareness if the protected attribute A (i.e. sex) is not utilized to make predictions.
In this case, the model is "unaware" of the sex of an individual, so we expect that similar individuals with different sexes should still receive similar predictions. A more generalized definition of individual fairness is counterfactual fairness, which is achieved if the prediction does not change if an individual's sex is changed to its counterfactual [23].
Definition 2: Counterfactual fairness [23] Formally, a predictorŶ is counterfactually fair if for any attributes X = x and sex A = a, In other words, if we can change only the sex of an individual and still get the same model prediction, we have achieved counterfactual fairness.

B. Group fairness
Group fairness ensures that different groups receive the same predictions with close to equal probability. This is related to the philosophical idea of egalitarianism, particularly from a collectivist standpoint [20], [22]. A practical implementation of group fairness is affirmative action policies. Statistical parity (sometimes called demographic parity) is a common formalization of group fairness [23]. This notion can be measured by the statistical parity difference.

Definition 3: Statistical Parity Difference [23]
The statistical parity difference of a model is The model achieves perfect fairness if SP D = 0.
We can similarly measure a model's group fairness using the equal opportunity difference, which is simply the difference in true positive rates for protected and unprotected groups [20].

Definition 4: Equal Opportunity Difference [24]
Formally, for a predictorŶ with true label Y , the equal opportunity difference is The model achieves perfect fairness if EOD = 0.
This measurement indicates how well the model performs on the entire group of males versus females. Another, similar metric of group fairness is the average odds difference, which additionally incorporates false positive rate.

Definition 5: Average Odds Difference [25]
The average odds difference of a modelŶ is where F P R is the false positive rate and T P R is the true positive rate. The model achieves perfect fairness if AOD = 0 In other words, this is a measure of how different the true versus false positive rates are for each group. Another widely used group fairness metric is disparate impact [8].
Definition 6: Disparate Impact [8] The disparate impact of a modelŶ is The model achieves perfect fairness if DI = 1.
Notice that this metric measures the same relationship as statistical parity difference, just formulated as a proportion. We include it here in addition to statistical parity difference as a commonly reported way to quantify the same effect.

IV. METHOD
Although the problems of gender-focused algorithmic bias outlined above are complex, mitigating these problems is not an insurmountable challenge. Indeed, Dr. Jennifer Chayes, the former Managing Director of Microsoft Research writes that "with careful algorithm design, computers can be fairer than typical human decision-makers, despite the biased training data" [26]. It is with this ideal in mind that we now explore ways to allay the unfairness discussed above. In this section, we first introduce benchmark datasets for evaluating bias mitigation algorithms and then discuss several of these algorithms to provide an overview of current work in the field.

A. Benchmark Datasets
One of the most widely used benchmark datasets for studying gender fairness in machine learning is the Adult dataset, extracted from the 1994 U.S. Census database and available from the UCI Machine Learning Repository [27]. Many researchers test their bias mitigation techniques on the Adult dataset, including [8], [28]- [37]. Models trained on this dataset often aim to predict a binary variable representing whether a person's income is above or below $50,000 per year. The dataset contains 48, 842 observations and a variety of features representing demographic information including sex, ethnic origin, age, and education level. There are two sensitive features in this dataset on which models are often biased: sex and ethnic origin [29]. For our purposes, we focus on sex as the sensitive feature. Accordingly, in Section 5 we run experiments on the UCI Adult dataset to evaluate the gender fairness of several models, omitting the ethnic origin feature entirely as in [8].
Another benchmark dataset worth mentioning is COMPAS, which is used to build predictive models for the likelihood that a defendant will recommit a violent crime. It contains over 100 features, including race, gender, and criminal history. The COMPAS dataset was compiled to assist judges in making many criminal justice decisions but was found to be incredibly unfair. Models trained on COMPAS dataset without any considerations of fairness were far likelier to classify Black defendants as high risk than white ones [38], [39]. Although COMPAS deals with race discrimination, bias mitigation algorithms tested on COMPAS can be extended to reducing gender-based unfairness. Thus, several models reviewed here were originally tested on the COMPAS dataset [7], [31], [33], [37], [38], [40], [41].

B. Bias Mitigation Algorithms
Bias mitigation algorithms can be broadly split into three main approaches: algorithms that reduce bias before model training (pre-processing), during model training (inprocessing), or after model training (post-processing). To provide an overview of the current state of the field, we discuss representative examples of these three methods, specifically focusing on domains in which models have high propensity for gender discrimination. Most of the techniques described were presented only on statistical learning models. We extend this work by applying the algorithms to our own deep learning model in Section 5.
C. Pre-processing: bias mitigation through data manipulation Biases in ML models are often reflections or amplifications of biases already inherent in the training data. Motivated by this fact, researchers have attempted to increase model fairness by directly altering the data distribution [7], [31]- [33], [42], [43]. These methods first quantify the discriminatory effects within the data to subsequently remove or account for them. The specific mechanism for handling discrimination in the data differs across applications, but each aims to create a fair training distribution.
One of the primary benefits of pre-processing is that it is done independently of the model itself, and thus can be used in a black box setting. Furthermore, by changing the data before ever building a model, this technique addresses the root of the fairness issue. However, in some applications it requires unrealistic assumptions about the training distribution or results in the loss of too much information implicit in the original data. To further analyze this technique, we detail two representative pre-processing methods.
In [31], Nabi and Shpitser consider fairness in probabilistic classification and regression as a constrained optimization problem. They employ causal inference in order to quantify the effects of a variable A on an outcome Y -both directly (A − → Y ) and indirectly through causal pathways (A − → M → W − → Y ). These indirect pathways, designated path-specific effects (PSEs), form the basis of their approach. Specifically, they formalize discrimination as the presence of certain PSEs. They can then bound the PSE, effectively transforming the inference problem on a distribution p(Y, X) into an inference problem on another distribution p * (Y, X). Thus, p * serves as the hypothetical mirror of the distribution p in a "fair world." They approximate p * by solving a constrained maximum likelihood problem: where D is a finite set of samples from the original distribution p, L Y,X (D; α) is a likelihood function parameterized by α, g(D) is an estimator of the relevant PSE, and l , u are constraints on the PSE.
A model can then trained on this fair distribution p * , effectively reducing discrimination. To test this method, they train a Bayesian Additive Regression Tree (BART) model on the COMPAS dataset for prediction of recidivism and on the Adult dataset for prediction of income level. Discriminatory PSEs are domain specific and were pre-determined by experts in the specific application. In both of these cases, their constrained optimization approach removed discrimination but did reduce inference accuracy. Specifically, in the unconstrained model trained on the Adult dataset, the original PSE was 3.16, meaning that if a female were instead male, ceteris paribus, she would be 3 times more likely to have a higher income. The constrained model limits this PSE to the fair range (0.95, 1.05) and reduces model accuracy from 82% to 72%. They do not test this approach on any deep learning models, leaving parameterization in nonlinear settings to future work. Nonetheless, their results prove the feasibility of parameter constraints for learning fair classifiers.
In [8], Feldman et al. propose another technique to increase fairness by altering the initial data distribution. They consider the conditional distributions F x (y) for each protected class (i.e. sex) separately and define a distribution F A (y) to be the median of the these. A fully repaired distribution is created such that for each y ∈ Y x , the repairedȳ falls at the same percentile of the median distribution as y did in its conditional distribution based on sex. In this way, the fair distribution preserves relative ordering. Because this fully repaired distribution can degrade predictive accuracy, they also propose a partial repair method. Specifically they define a Geometric Repair: where λ is the level of repair. In this way, they compute a linear interpolation in the original data space to produce partially repaired values that are near their respective fully repaired values.
To test this method, they train a logistic regression, support vector machine (SVM), and Gaussian naive Bayes (GNB) on the Adult dataset. Using their geometric repair algorithm, they are able to reach a fair disparate impact value (DI ≥ .8) for each model and a BER (indicating lack of predictability) of approximately 0.45 compared to 0.38 for the unmitigated baseline.

D. In-Processing: Bias Mitigation Through Model Training
To account for the limitations of pre-processing, some researchers have instead proposed fair training algorithms as a method to reduce bias in various machine learning models. These are, in effect, "online" ways to improve fairness, producing nondiscriminatory results from biased data. Fair model training is primarily accomplished in one of two ways: updating the objective function or imposing constraints on the model. We illustrate both of these approaches, first focusing on adversarial debiasing as an effective example of manipulating the objective function.
Adversarial learning [44] has been proposed as a mechanism for reducing bias in many different applications [34], [40], [45], [46]. In adversarial debiasing, an adversarial network is trained to predict protected demographic information from biased labels. Adversarial learning is then harnessed in order that the fair model learns to decorrelate the protected data from potential biases. This idea originates from the work of Goodfellow et al. [47], who proposed a Generative Adversarial Network (GAN) framework. Although formulated for a very different application (specifically, generating images), Goodfellow's technique of using multiple competing networks in order to train one model to deceive another can be extended to our problem domain. Under this framework, the adversarial network acts as a discriminator in a typical GAN. The fair network must then learn to fool the discriminator -that is, to reduce the likelihood that the discriminator correctly predicts the protected attribute from the model's output -while still maintaining its own accuracy. In this way, adversarial learning serves to reduce the impact that a protected trait has on the model's output, thus mitigating implicit biases in model predictions on account of that trait.
A benefit of this technique is that it is generalizable across datasets and applications. It can offer increased accuracy because it maintains the integrity of the data. Furthermore, it requires no assumptions about the distribution of the dataset. However, it does require access to model parameters, making it impossible in a black-box setting. To further illustrate this adversarial debiasing method, we highlight a specific study that represents the current progress and direction of the field. Zhang et al. propose an adversarial learning framework for a classifier trained on the Adult dataset [34]. They consider both the case in which gender, the protected attribute, is explicitly included in the data and the case in which gender is inferred from latent semantics, such as word embeddings. They implement a model that uses information X to predict Y , and thus is trained by modifying weights W to minimize the loss L p , representing the difference between y andŷ. They then define an adversary that attempts to predict a protected attribute Z fromŶ . The adversary's weights U are updated according to the loss L a , representing the difference between z andẑ. We introduce all of this notation to clearly illustrate the update rule for W according to the adversarial training method: where α is a tunable parameter to balance the trade-off between fairness and model accuracy. Intuitively, the first term helps reduce the loss of the predictive model and the third term helps increase the loss of the adversary. The middle term is included in order to prevent the model from moving in a direction that would actually aid the adversary. Using this adversarial debiasing method, the proposed logistic regression model in [34] for predicting income achieved near equality of odds, meaning that model predictions did not give any additional information about gender to the adversary. More formally,Ŷ and Z were independent given Y . Furthermore, the model's predictive accuracy reduced by only 1.5%. Overall, Zhang et al. prove the efficacy of the adversarial debiasing method on a classification task.
Other researchers have suggested that the fairness problem can be solved during training by subjecting model parameters to a fairness constraint [35], [36], [41], [48], [49]. In this method, a model is trained under a constrained optimization method to reduce bias reflected in the model's output distribution. We detail a specific approach to this idea in order to provide an overview of its possibilities for mitigating gender bias.
Zhao et al. propose a method for training a fair classifier by injecting corpus-level constraints [49]. They focus on models for the NLP tasks of multi-label object classification and visual semantic role labeling, which tend to perpetuate and amplify biases implicit in the data. They build a Reducing Bias Amplification (RBA) framework that constrains the frequency of potentially-biased pairs (e.g. "woman" with "cooking") in model output to at most the rate of co-occurrence in the training distribution. The inference problem is thus formulated as a constrained inference problem: where f θ (y, i) is a scoring function based on the trained model θ, A is a matrix of the coefficients of one constraint, b is the desired gender ratio, and {Y i } is the space spanned by possible combinations of labels for all instances. This method is notably distinct from other training-based approaches in that it does not consider the influence of individual training data on model output. Instead, it calibrates model predictions such that the classification outputs adhere to a fair distribution across the entire test corpus. However, we still thematically group it with this section as it relies on the same principle of mathematically manipulating the model parameters to reduce correlations based on biased attributes. Overall, Zhao et al. trained a conditional random field model to show that this method effectively reduces bias amplification in these NLP tasks by over 40%, without reducing the model's predictive accuracy more than 1%.

E. Post-Processing: Bias Mitigation Through Prediction Constraints
Other researchers have proposed post-processing as a method for bias mitigation [24], [37], [50]- [52]. This method generally works by manipulating model predictions based on a fairness constraint. The primary benefit of this method is, like pre-processing, it does not require access to model parameters, so it can be applied in a black-box setting. This also means it can theoretically be utilized for any kind of machine learning model to increase run-time fairness. Some approaches to postprocessing do not even necessitate access to the input features and can be applied to the joint distribution over labels Y and model predictionsŶ . However, this technique can result in a significant loss in performance and has been shown to be suboptimal [50]. Furthermore, it increases fairness strictly with respect to the specified constraint -not necessarily to any other notions of fairness [37]. We further explore this technique by detailing an example approach.
Pleiss et al. propose Calibrated Equalized Odds [37] as a post-processing algorithm. This technique attempts to retain a model's calibrated probability estimates while minimizing error disparities across different groups. In this method, a cost function is defined to penalize a model for disparities in falsenegative rates, false-positive rates, or a weighted combination of these across different groups such as women and men. The choice of cost function condition is problem-specific and up to practitioners. For example, in experimenting with the Adult Dataset, [37] uses the false-negative condition. A model achieves Calibrated Equalized Odds if the cost of calibrated predictions is the same for each group. They equalize this cost by suppressing predictive information for random subsets of groups with unequal classifier costs. This new, post-processed classifier is derived using a validation (or holdout) set and attains parity, but decreases accuracy by approximately 10%.

V. EXPERIMENTS
To analyze the bias mitigation algorithms discussed above, we present results from several experiments. We train a model to classify income level from the Adult dataset (Section 4.1) and compare examples of the pre-processing, in-processing, and post-processing algorithms on this model. Furthermore, we test combinations of these algorithms as a novel approach for increasing model fairness.

A. Model
As fairness is still a growing field, many bias mitigation techniques are tested on only simple statistical models, rather than more complex ML models. However, neural networks and other complex ML techniques have become popular in recent years because of their capacity to model complicated phenomena [53]. To evaluate the success of standard bias mitigation techniques for deep learning, we perform all of our tests using a neural network model.
We train a network with 3 fully connected layers and 200 hidden units. We use the relu activation function, the Adam optimizer, and sigmoid cross-entropy loss function. We split the dataset into 70% training, 15% testing, and 15% validation. Following [25] and [8], we use the features age, education, capital gain, capital loss, and hours-per-week. We train for 50 epochs with a batch size of 128 and learning rate of 0.001. Hyperparameters remain the same for each bias mitigation algorithm tested.

B. Bias Mitigation
To reduce the gender bias of our baseline model, we first implement bias mitigation algorithms discussed in Section 4. To compare the different techniques, we use the Disparate Impact Remover (pre-processing) [8], Adversarial Debiasing (in-processing) [34], and Calibrated Equalized Odds (postprocessing) [37]. We use the false-negative rate cost function for Calibrated Equalized Odds, following [37] in their experiments with the Adult Dataset.
To further improve fairness, we propose the fusion of multiple of these algorithms to create end-to-end bias mitigation for deep learning. That is, we run each of pre, in, and post processing on the same model. We diagram this approach in Fig. 1. We compare this method to the single method baselines described above.

C. Results and Discussion
The results for each algorithmic combination are presented in Table I, where 'Pre,' 'In,' and 'Post' represent Disparate Impact Remover, Adversarial Debiasing, and Calibrated Equalized Odds, respectively. Since different metrics of fairness are used for different objectives [37], we report the Statistical Parity Difference, Equal Opportunity Difference, and Average Odds Difference. Note that models are considered fair on each of these metrics if they have a value in the range [−0.1, 0.1].
From the results in Table I, it is clear that there is no model that performs best on all fairness metrics. Intuitively, the unmitigated model has the highest accuracy but is unfair on all metrics. Interestingly, the 'Pre' model is actually less fair and less accurate than the unmitigated baseline. This is likely because the disparate impact remover utilizes a linear interpolation method, which is known to lead to a reduction in Fig. 1. End-to-End Bias Mitigation Framework the training objective in neural network models [54]. The 'In' model is fairer on every metric and is only around two percent less accurate compared to the baseline. As noted above, calibrated equalized odds is a sub-optimal algorithm, which is reflected in the 'Post' model's low accuracy. Still, 'Post' achieves the lowest Statistical Parity Difference. The poor performance of 'Post' in terms of Equalized Odds Difference serves as a reminder that these metrics are not equivalent and that practitioners should put ample consideration into which metric they optimize.
Models trained on our fusion algorithms generally outperform the individual ones in terms of fairness, while retaining similar accuracy. All of the fusion algorithms except for 'Pre + Post' have an accuracy above 0.81 and are fair on all metrics. Furthermore, the end-to-end mitigated model ('Pre + In + Post') performs well across all test metrics, achieving the best results on Equalized Odds Difference and Average Odds Difference. Although the end-to-end mitigated model utilizes 'Post', with its low accuracy score, it achieves an accuracy of 0.81, which is comparable to the other models that substantially increased fairness.
Notably, while none of the individual algorithms ('Pre', 'In', and 'Post') achieve fairness on all three metrics in a deep learning setting, our end-to-end mitigated model does -as did two other fusion algorithms. Thus the results indicate that by combining different algorithms we are able to leverage the strengths of each one, creating new algorithms that are fairer but similarly accurate. This suggests that combining bias

VI. RECOMMENDATIONS
Although questions of fairness are receiving more attention in the literature, there are numerous topics surrounding machine learning bias that warrant further research -especially concerning gender. This paper suggests that a worthwhile direction for future work is studying complex models such as machine translation or deep reinforcement learning which would extend to broad, social impact applications beyond the benchmark datasets. Furthermore, as illustrated by the adversarial debiasing approach, many parallels can be drawn from the fairness question to more developed problem domains like privacy and security. These connections may be a highly promising source of advanced bias mitigation algorithms. Finally, we encourage further exploration of the end-to-end bias mitigation method presented in this paper as a promising framework for both academics and practitioners.
There are a plethora of open source fairness in AI tools and packages for those entering the field. We include a discussion of major libraries and tools for fairness in hope that it will provide a foundation for those doing applied work or research in any machine learning domain.
AI Fairness 360 (AIF360), developed by IBM Research and available in Python and R, is an off-the-shelf library that has a number of metrics on which to test models for biases and algorithms to mitigate these biases, including the ones in Table  I. Microsoft's Fairlearn assesses machine learning models for fairness, visualizes these metrics in an interactive dashboard, and contains numerous bias mitigation algorithms [55]. Another tool that offers visual fairness analytics is FairSight, which also includes bias measurement and mitigation features [56]. Fairness Indicators, a package created by Google for assessing Tensorflow models, can compute standard fairness metrics for classifiers. Another popular package is Aequitas, which conducts bias audits on a multitude of metrics [57]. This large number of open source tools for fairness should make fairness applications and research more approachable for those entering the field.

VII. CONCLUSION
In the eternal words of the late Justice Ruth Bader Ginsburg, "Women belong in all places where decisions are being made. It shouldn't be that women are the exception" [58]. As artificial intelligence permeates society, it is incredibly important to remember that while these tools can be revolutionary, they have pitfalls. Without intentionally considering fairness, models may be biased on certain protected attributes -such as race, religion, and sex. Examples of such biases in machine learning models that were actually deployed are plentiful. Thus, we urge researchers and practitioners to consider the fairness of their models, for computer science is still a field that severely lacks diversity, especially gender diversity [59].
To assist in this task of making machine learning models more gender equitable, we reviewed several bias mitigation algorithms and implemented them on a deep learning model, testing on the Adult dataset. We further introduced our endto-end bias mitigation approach, combining pre, in, and postprocessing algorithms. We find that this end-to-end approach performed best on two fairness metrics without losing much accuracy. We hope that these exploratory results encourage others to investigate the implications of this study in applications beyond the Adult dataset and with other baseline models.