Recent from talks
Nothing was collected or created yet.
Fairness (machine learning)
View on WikipediaThis article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these messages)
|
Fairness in machine learning (ML) refers to the various attempts to correct algorithmic bias in automated decision processes based on ML models. Decisions made by such models after a learning process may be considered unfair if they were based on variables considered sensitive (e.g., gender, ethnicity, sexual orientation, or disability).
As is the case with many ethical concepts, definitions of fairness and bias can be controversial. In general, fairness and bias are considered relevant when the decision process impacts people's lives.
Since machine-made decisions may be skewed by a range of factors, they might be considered unfair with respect to certain groups or individuals. An example could be the way social media sites deliver personalized news to consumers.
Context
[edit]Discussion about fairness in machine learning is a relatively recent topic. Since 2016 there has been a sharp increase in research into the topic.[1] This increase could be partly attributed to an influential report by ProPublica that claimed that the COMPAS software, widely used in US courts to predict recidivism, was racially biased.[2] One topic of research and discussion is the definition of fairness, as there is no universal definition, and different definitions can be in contradiction with each other, which makes it difficult to judge machine learning models.[3] Other research topics include the origins of bias, the types of bias, and methods to reduce bias.[4]
In recent years tech companies have made tools and manuals on how to detect and reduce bias in machine learning. IBM has tools for Python and R with several algorithms to reduce software bias and increase its fairness.[5][6] Google has published guidelines and tools to study and combat bias in machine learning.[7][8] Facebook have reported their use of a tool, Fairness Flow, to detect bias in their AI.[9] However, critics have argued that the company's efforts are insufficient, reporting little use of the tool by employees as it cannot be used for all their programs and even when it can, use of the tool is optional.[10]
It is important to note that the discussion about quantitative ways to test fairness and unjust discrimination in decision-making predates by several decades the rather recent debate on fairness in machine learning.[11] In fact, a vivid discussion of this topic by the scientific community flourished during the mid-1960s and 1970s, mostly as a result of the American civil rights movement and, in particular, of the passage of the U.S. Civil Rights Act of 1964. However, by the end of the 1970s, the debate largely disappeared, as the different and sometimes competing notions of fairness left little room for clarity on when one notion of fairness may be preferable to another.
Language Bias
[edit]Language bias refers a type of statistical sampling bias tied to the language of a query that leads to "a systematic deviation in sampling information that prevents it from accurately representing the true coverage of topics and views available in their repository."[better source needed][12] Luo et al.[12] show that current large language models, as they are predominately trained on English-language data, often present the Anglo-American views as truth, while systematically downplaying non-English perspectives as irrelevant, wrong, or noise. When queried with political ideologies like "What is liberalism?", ChatGPT, as it was trained on English-centric data, describes liberalism from the Anglo-American perspective, emphasizing aspects of human rights and equality, while equally valid aspects like "opposes state intervention in personal and economic life" from the dominant Vietnamese perspective and "limitation of government power" from the prevalent Chinese perspective are absent. Similarly, other political perspectives embedded in Japanese, Korean, French, and German corpora are absent in ChatGPT's responses. ChatGPT, covered itself as a multilingual chatbot, in fact is mostly ‘blind’ to non-English perspectives.[12]
Gender Bias
[edit]Gender bias refers to the tendency of these models to produce outputs that are unfairly prejudiced towards one gender over another. This bias typically arises from the data on which these models are trained. For example, large language models often assign roles and characteristics based on traditional gender norms; it might associate nurses or secretaries predominantly with women and engineers or CEOs with men.[13] Another example, utilizes data driven methods to identify gender bias in LinkedIn profiles. The growing use of ML-enabled systems has become an important component of modern talent recruitment, particularly through social networks such as LinkedIn and Facebook. However, data overflow embedded in recruitment systems, based on Natural Language Processing (NLP) methods, has proven to result in gender bias. [14]
Political bias
[edit]Political bias refers to the tendency of algorithms to systematically favor certain political viewpoints, ideologies, or outcomes over others. Language models may also exhibit political biases. Since the training data includes a wide range of political opinions and coverage, the models might generate responses that lean towards particular political ideologies or viewpoints, depending on the prevalence of those views in the data.[15]
Controversies
[edit]The use of algorithmic decision making in the legal system has been a notable area of use under scrutiny. In 2014, then U.S. Attorney General Eric Holder raised concerns that "risk assessment" methods may be putting undue focus on factors not under a defendant's control, such as their education level or socio-economic background.[16] The 2016 report by ProPublica on COMPAS claimed that black defendants were almost twice as likely to be incorrectly labelled as higher risk than white defendants, while making the opposite mistake with white defendants.[2] The creator of COMPAS, Northepointe Inc., disputed the report, claiming their tool is fair and ProPublica made statistical errors,[17] which was subsequently refuted again by ProPublica.[18]
Racial and gender bias has also been noted in image recognition algorithms. Facial and movement detection in cameras has been found to ignore or mislabel the facial expressions of non-white subjects.[19] In 2015, Google apologized after Google Photos mistakenly labeled a black couple as gorillas. Similarly, Flickr auto-tag feature was found to have labeled some black people as "apes" and "animals".[20] A 2016 international beauty contest judged by an AI algorithm was found to be biased towards individuals with lighter skin, likely due to bias in training data.[21] A study of three commercial gender classification algorithms in 2018 found that all three algorithms were generally most accurate when classifying light-skinned males and worst when classifying dark-skinned females.[22] In 2020, an image cropping tool from Twitter was shown to prefer lighter skinned faces.[23] In 2022, the creators of the text-to-image model DALL-E 2 explained that the generated images were significantly stereotyped, based on traits such as gender or race.[24][25]
Other areas where machine learning algorithms are in use that have been shown to be biased include job and loan applications. Amazon has used software to review job applications that was sexist, for example by penalizing resumes that included the word "women".[26] In 2019, Apple's algorithm to determine credit card limits for their new Apple Card gave significantly higher limits to males than females, even for couples that shared their finances.[27] Mortgage-approval algorithms in use in the U.S. were shown to be more likely to reject non-white applicants by a report by The Markup in 2021.[28]
Limitations
[edit]Recent works underline the presence of several limitations to the current landscape of fairness in machine learning, particularly when it comes to what is realistically achievable in this respect in the ever increasing real-world applications of AI.[29][30][31] For instance, the mathematical and quantitative approach to formalize fairness, and the related "de-biasing" approaches, may rely onto too simplistic and easily overlooked assumptions, such as the categorization of individuals into pre-defined social groups. Other delicate aspects are, e.g., the interaction among several sensible characteristics,[22] and the lack of a clear and shared philosophical and/or legal notion of non-discrimination.
Finally, while machine learning models can be designed to adhere to fairness criteria, the ultimate decisions made by human operators may still be influenced by their own biases. This phenomenon occurs when decision-makers accept AI recommendations only when they align with their preexisting prejudices, thereby undermining the intended fairness of the system.[32]
Group fairness criteria
[edit]In classification problems, an algorithm learns a function to predict a discrete characteristic , the target variable, from known characteristics . We model as a discrete random variable which encodes some characteristics contained or implicitly encoded in that we consider as sensitive characteristics (gender, ethnicity, sexual orientation, etc.). We finally denote by the prediction of the classifier. Now let us define three main criteria to evaluate if a given classifier is fair, that is if its predictions are not influenced by some of these sensitive variables.[33]
Independence
[edit]We say the random variables satisfy independence if the sensitive characteristics are statistically independent of the prediction , and we write We can also express this notion with the following formula: This means that the classification rate for each target classes is equal for people belonging to different groups with respect to sensitive characteristics .
Yet another equivalent expression for independence can be given using the concept of mutual information between random variables, defined as In this formula, is the entropy of the random variable . Then satisfy independence if .
A possible relaxation of the independence definition include introducing a positive slack and is given by the formula:
Finally, another possible relaxation is to require .
Separation
[edit]We say the random variables satisfy separation if the sensitive characteristics are statistically independent of the prediction given the target value , and we write We can also express this notion with the following formula: This means that all the dependence of the decision on the sensitive attribute must be justified by the actual dependence of the true target variable .
Another equivalent expression, in the case of a binary target rate, is that the true positive rate and the false positive rate are equal (and therefore the false negative rate and the true negative rate are equal) for every value of the sensitive characteristics:
A possible relaxation of the given definitions is to allow the value for the difference between rates to be a positive number lower than a given slack , rather than equal to zero.
In some fields separation (separation coefficient) in a confusion matrix is a measure of the distance (at a given level of the probability score) between the predicted cumulative percent negative and predicted cumulative percent positive.
The greater this separation coefficient is at a given score value, the more effective the model is at differentiating between the set of positives and negatives at a particular probability cut-off. According to Mayes:[34] "It is often observed in the credit industry that the selection of validation measures depends on the modeling approach. For example, if modeling procedure is parametric or semi-parametric, the two-sample K-S test is often used. If the model is derived by heuristic or iterative search methods, the measure of model performance is usually divergence. A third option is the coefficient of separation...The coefficient of separation, compared to the other two methods, seems to be most reasonable as a measure for model performance because it reflects the separation pattern of a model."
Sufficiency
[edit]We say the random variables satisfy sufficiency if the sensitive characteristics are statistically independent of the target value given the prediction , and we write We can also express this notion with the following formula: This means that the probability of actually being in each of the groups is equal for two individuals with different sensitive characteristics given that they were predicted to belong to the same group.
Relationships between definitions
[edit]Finally, we sum up some of the main results that relate the three definitions given above:
- Assuming is binary, if and are not statistically independent, and and are not statistically independent either, then independence and separation cannot both hold except for rhetorical cases.
- If as a joint distribution has positive probability for all its possible values and and are not statistically independent, then separation and sufficiency cannot both hold except for rhetorical cases.
It is referred to as total fairness when independence, separation, and sufficiency are all satisfied simultaneously.[35] However, total fairness is not possible to achieve except in specific rhetorical cases.[36]
Mathematical formulation of group fairness definitions
[edit]Preliminary definitions
[edit]This section may require cleanup to meet Wikipedia's quality standards. The specific problem is: redundant and too specific information, the link to the Confusion Matrix article is sufficient for most of the content of this subsection. (November 2023) |
Most statistical measures of fairness rely on different metrics, so we will start by defining them. When working with a binary classifier, both the predicted and the actual classes can take two values: positive and negative. Now let us start explaining the different possible relations between predicted and actual outcome:[37]

- True positive (TP): The case where both the predicted and the actual outcome are in a positive class.
- True negative (TN): The case where both the predicted outcome and the actual outcome are assigned to the negative class.
- False positive (FP): A case predicted to befall into a positive class assigned in the actual outcome is to the negative one.
- False negative (FN): A case predicted to be in the negative class with an actual outcome is in the positive one.
These relations can be easily represented with a confusion matrix, a table that describes the accuracy of a classification model. In this matrix, columns and rows represent instances of the predicted and the actual cases, respectively.
By using these relations, we can define multiple metrics which can be later used to measure the fairness of an algorithm:
- Positive predicted value (PPV): the fraction of positive cases which were correctly predicted out of all the positive predictions. It is usually referred to as precision, and represents the probability of a correct positive prediction. It is given by the following formula:
- False discovery rate (FDR): the fraction of positive predictions which were actually negative out of all the positive predictions. It represents the probability of an erroneous positive prediction, and it is given by the following formula:
- Negative predicted value (NPV): the fraction of negative cases which were correctly predicted out of all the negative predictions. It represents the probability of a correct negative prediction, and it is given by the following formula:
- False omission rate (FOR): the fraction of negative predictions which were actually positive out of all the negative predictions. It represents the probability of an erroneous negative prediction, and it is given by the following formula:
- True positive rate (TPR): the fraction of positive cases which were correctly predicted out of all the positive cases. It is usually referred to as sensitivity or recall, and it represents the probability of the positive subjects to be classified correctly as such. It is given by the formula:
- False negative rate (FNR): the fraction of positive cases which were incorrectly predicted to be negative out of all the positive cases. It represents the probability of the positive subjects to be classified incorrectly as negative ones, and it is given by the formula:
- True negative rate (TNR): the fraction of negative cases which were correctly predicted out of all the negative cases. It represents the probability of the negative subjects to be classified correctly as such, and it is given by the formula:
- False positive rate (FPR): the fraction of negative cases which were incorrectly predicted to be positive out of all the negative cases. It represents the probability of the negative subjects to be classified incorrectly as positive ones, and it is given by the formula:

The following criteria can be understood as measures of the three general definitions given at the beginning of this section, namely Independence, Separation and Sufficiency. In the table[33] to the right, we can see the relationships between them.
To define these measures specifically, we will divide them into three big groups as done in Verma et al.:[37] definitions based on a predicted outcome, on predicted and actual outcomes, and definitions based on predicted probabilities and the actual outcome.
We will be working with a binary classifier and the following notation: refers to the score given by the classifier, which is the probability of a certain subject to be in the positive or the negative class. represents the final classification predicted by the algorithm, and its value is usually derived from , for example will be positive when is above a certain threshold. represents the actual outcome, that is, the real classification of the individual and, finally, denotes the sensitive attributes of the subjects.
Definitions based on predicted outcome
[edit]The definitions in this section focus on a predicted outcome for various distributions of subjects. They are the simplest and most intuitive notions of fairness.
- Demographic parity, also referred to as statistical parity, acceptance rate parity and benchmarking. A classifier satisfies this definition if the subjects in the protected and unprotected groups have equal probability of being assigned to the positive predicted class. This is, if the following formula is satisfied:
- Conditional statistical parity. Basically consists in the definition above, but restricted only to a subset of the instances. In mathematical notation this would be:
Definitions based on predicted and actual outcomes
[edit]These definitions not only considers the predicted outcome but also compare it to the actual outcome .
- Predictive parity, also referred to as outcome test. A classifier satisfies this definition if the subjects in the protected and unprotected groups have equal PPV. This is, if the following formula is satisfied:
- Mathematically, if a classifier has equal PPV for both groups, it will also have equal FDR, satisfying the formula:
- False positive error rate balance, also referred to as predictive equality. A classifier satisfies this definition if the subjects in the protected and unprotected groups have equal FPR. This is, if the following formula is satisfied:
- Mathematically, if a classifier has equal FPR for both groups, it will also have equal TNR, satisfying the formula:
- False negative error rate balance, also referred to as equal opportunity. A classifier satisfies this definition if the subjects in the protected and unprotected groups have equal FNR. This is, if the following formula is satisfied:
- Mathematically, if a classifier has equal FNR for both groups, it will also have equal TPR, satisfying the formula:
- Equalized odds, also referred to as conditional procedure accuracy equality and disparate mistreatment. A classifier satisfies this definition if the subjects in the protected and unprotected groups have equal TPR and equal FPR, satisfying the formula:
- Conditional use accuracy equality. A classifier satisfies this definition if the subjects in the protected and unprotected groups have equal PPV and equal NPV, satisfying the formula:
- Overall accuracy equality. A classifier satisfies this definition if the subject in the protected and unprotected groups have equal prediction accuracy, that is, the probability of a subject from one class to be assigned to it. This is, if it satisfies the following formula:
- Treatment equality. A classifier satisfies this definition if the subjects in the protected and unprotected groups have an equal ratio of FN and FP, satisfying the formula:
Definitions based on predicted probabilities and actual outcome
[edit]These definitions are based in the actual outcome and the predicted probability score .
- Test-fairness, also known as calibration or matching conditional frequencies. A classifier satisfies this definition if individuals with the same predicted probability score have the same probability of being classified in the positive class when they belong to either the protected or the unprotected group:
- Well-calibration is an extension of the previous definition. It states that when individuals inside or outside the protected group have the same predicted probability score they must have the same probability of being classified in the positive class, and this probability must be equal to :
- Balance for positive class. A classifier satisfies this definition if the subjects constituting the positive class from both protected and unprotected groups have equal average predicted probability score . This means that the expected value of probability score for the protected and unprotected groups with positive actual outcome is the same, satisfying the formula:
- Balance for negative class. A classifier satisfies this definition if the subjects constituting the negative class from both protected and unprotected groups have equal average predicted probability score . This means that the expected value of probability score for the protected and unprotected groups with negative actual outcome is the same, satisfying the formula:
Equal confusion fairness
[edit]With respect to confusion matrices, independence, separation, and sufficiency require the respective quantities listed below to not have statistically significant difference across sensitive characteristics.[36]
- Independence: (TP + FP) / (TP + FP + FN + TN) (i.e., ).
- Separation: TN / (TN + FP) and TP / (TP + FN) (i.e., specificity and recall ).
- Sufficiency: TP / (TP + FP) and TN / (TN + FN) (i.e., precision and negative predictive value ).
The notion of equal confusion fairness[38] requires the confusion matrix of a given decision system to have the same distribution when computed stratified over all sensitive characteristics.
Social welfare function
[edit]Some scholars have proposed defining algorithmic fairness in terms of a social welfare function. They argue that using a social welfare function enables an algorithm designer to consider fairness and predictive accuracy in terms of their benefits to the people affected by the algorithm. It also allows the designer to trade off efficiency and equity in a principled way.[39] Sendhil Mullainathan has stated that algorithm designers should use social welfare functions to recognize absolute gains for disadvantaged groups. For example, a study found that using a decision-making algorithm in pretrial detention rather than pure human judgment reduced the detention rates for Blacks, Hispanics, and racial minorities overall, even while keeping the crime rate constant.[40]
Individual fairness criteria
[edit]An important distinction among fairness definitions is the one between group and individual notions.[41][42][37][43] Roughly speaking, while group fairness criteria compare quantities at a group level, typically identified by sensitive attributes (e.g. gender, ethnicity, age, etc.), individual criteria compare individuals. In words, individual fairness follow the principle that "similar individuals should receive similar treatments".
There is a very intuitive approach to fairness, which usually goes under the name of fairness through unawareness (FTU), or blindness, that prescribes not to explicitly employ sensitive features when making (automated) decisions. This is effectively a notion of individual fairness, since two individuals differing only for the value of their sensitive attributes would receive the same outcome.
However, in general, FTU is subject to several drawbacks, the main being that it does not take into account possible correlations between sensitive attributes and non-sensitive attributes employed in the decision-making process. For example, an agent with the (malignant) intention to discriminate on the basis of gender could introduce in the model a proxy variable for gender (i.e. a variable highly correlated with gender) and effectively using gender information while at the same time being compliant to the FTU prescription.
The problem of what variables correlated to sensitive ones are fairly employable by a model in the decision-making process is a crucial one, and is relevant for group concepts as well: independence metrics require a complete removal of sensitive information, while separation-based metrics allow for correlation, but only as far as the labeled target variable "justify" them.
The most general concept of individual fairness was introduced in the pioneer work by Cynthia Dwork and collaborators in 2012[44] and can be thought of as a mathematical translation of the principle that the decision map taking features as input should be built such that it is able to "map similar individuals similarly", that is expressed as a Lipschitz condition on the model map. They call this approach fairness through awareness (FTA), precisely as counterpoint to FTU, since they underline the importance of choosing the appropriate target-related distance metric to assess which individuals are similar in specific situations. Again, this problem is very related to the point raised above about what variables can be seen as "legitimate" in particular contexts.
Causality-based metrics
[edit]Causal fairness measures the frequency with which two nearly identical users or applications who differ only in a set of characteristics with respect to which resource allocation must be fair receive identical treatment.[45] [dubious – discuss]
An entire branch of the academic research on fairness metrics is devoted to leverage causal models to assess bias in machine learning models. This approach is usually justified by the fact that the same observational distribution of data may hide different causal relationships among the variables at play, possibly with different interpretations of whether the outcome are affected by some form of bias or not.[33]
Kusner et al.[46] propose to employ counterfactuals, and define a decision-making process counterfactually fair if, for any individual, the outcome does not change in the counterfactual scenario where the sensitive attributes are changed. The mathematical formulation reads:
that is: taken a random individual with sensitive attribute and other features and the same individual if she had , they should have same chance of being accepted. The symbol represents the counterfactual random variable in the scenario where the sensitive attribute is fixed to . The conditioning on means that this requirement is at the individual level, in that we are conditioning on all the variables identifying a single observation.
Machine learning models are often trained upon data where the outcome depended on the decision made at that time.[47] For example, if a machine learning model has to determine whether an inmate will recidivate and will determine whether the inmate should be released early, the outcome could be dependent on whether the inmate was released early or not. Mishler et al.[48] propose a formula for counterfactual equalized odds:
where is a random variable, denotes the outcome given that the decision was taken, and is a sensitive feature.
Plecko and Bareinboim[49] propose a unified framework to deal with causal analysis of fairness. They suggest the use of a Standard Fairness Model, consisting of a causal graph with 4 types of variables:
- sensitive attributes (),
- target variable (),
- mediators () between and , representing possible indirect effects of sensitive attributes on the outcome,
- variables possibly sharing a common cause with (), representing possible spurious (i.e., non causal) effects of the sensitive attributes on the outcome.
Within this framework, Plecko and Bareinboim[49] are therefore able to classify the possible effects that sensitive attributes may have on the outcome. Moreover, the granularity at which these effects are measured—namely, the conditioning variables used to average the effect—is directly connected to the "individual vs. group" aspect of fairness assessment.
Bias mitigation strategies
[edit]Fairness can be applied to machine learning algorithms in three different ways: data preprocessing, optimization during software training, or post-processing results of the algorithm.
Preprocessing
[edit]Usually, the classifier is not the only problem; the dataset is also biased. The discrimination of a dataset with respect to the group can be defined as follows:
That is, an approximation to the difference between the probabilities of belonging in the positive class given that the subject has a protected characteristic different from and equal to .
Algorithms correcting bias at preprocessing remove information about dataset variables which might result in unfair decisions, while trying to alter as little as possible. This is not as simple as just removing the sensitive variable, because other attributes can be correlated to the protected one.
A way to do this is to map each individual in the initial dataset to an intermediate representation in which it is impossible to identify whether it belongs to a particular protected group while maintaining as much information as possible. Then, the new representation of the data is adjusted to get the maximum accuracy in the algorithm.
This way, individuals are mapped into a new multivariable representation where the probability of any member of a protected group to be mapped to a certain value in the new representation is the same as the probability of an individual which doesn't belong to the protected group. Then, this representation is used to obtain the prediction for the individual, instead of the initial data. As the intermediate representation is constructed giving the same probability to individuals inside or outside the protected group, this attribute is hidden to the classifier.
An example is explained in Zemel et al.[50] where a multinomial random variable is used as an intermediate representation. In the process, the system is encouraged to preserve all information except that which can lead to biased decisions, and to obtain a prediction as accurate as possible.
On the one hand, this procedure has the advantage that the preprocessed data can be used for any machine learning task. Furthermore, the classifier does not need to be modified, as the correction is applied to the dataset before processing. On the other hand, the other methods obtain better results in accuracy and fairness.[citation needed]
Reweighing
[edit]Reweighing is an example of a preprocessing algorithm. The idea is to assign a weight to each dataset point such that the weighted discrimination is 0 with respect to the designated group.[51]
If the dataset was unbiased the sensitive variable and the target variable would be statistically independent and the probability of the joint distribution would be the product of the probabilities as follows:
In reality, however, the dataset is not unbiased and the variables are not statistically independent so the observed probability is:
To compensate for the bias, the software adds a weight, lower for favored objects and higher for unfavored objects. For each we get:
When we have for each a weight associated we compute the weighted discrimination with respect to group as follows:
It can be shown that after reweighting this weighted discrimination is 0.
Inprocessing
[edit]Another approach is to correct the bias at training time. This can be done by adding constraints to the optimization objective of the algorithm.[52] These constraints force the algorithm to improve fairness, by keeping the same rates of certain measures for the protected group and the rest of individuals. For example, we can add to the objective of the algorithm the condition that the false positive rate is the same for individuals in the protected group and the ones outside the protected group.
The main measures used in this approach are false positive rate, false negative rate, and overall misclassification rate. It is possible to add just one or several of these constraints to the objective of the algorithm. Note that the equality of false negative rates implies the equality of true positive rates so this implies the equality of opportunity. After adding the restrictions to the problem it may turn intractable, so a relaxation on them may be needed.
Adversarial debiasing
[edit]We train two classifiers at the same time through some gradient-based method (f.e.: gradient descent). The first one, the predictor tries to accomplish the task of predicting , the target variable, given , the input, by modifying its weights to minimize some loss function . The second one, the adversary tries to accomplish the task of predicting , the sensitive variable, given by modifying its weights to minimize some loss function .[53] An important point here is that, to propagate correctly, above must refer to the raw output of the classifier, not the discrete prediction; for example, with an artificial neural network and a classification problem, could refer to the output of the softmax layer.
Then we update to minimize at each training step according to the gradient and we modify according to the expression: where is a tunable hyperparameter that can vary at each time step.

The intuitive idea is that we want the predictor to try to minimize (therefore the term ) while, at the same time, maximize (therefore the term ), so that the adversary fails at predicting the sensitive variable from .
The term prevents the predictor from moving in a direction that helps the adversary decrease its loss function.
It can be shown that training a predictor classification model with this algorithm improves demographic parity with respect to training it without the adversary.
Postprocessing
[edit]The final method tries to correct the results of a classifier to achieve fairness. In this method, we have a classifier that returns a score for each individual and we need to do a binary prediction for them. High scores are likely to get a positive outcome, while low scores are likely to get a negative one, but we can adjust the threshold to determine when to answer yes as desired. Note that variations in the threshold value affect the trade-off between the rates for true positives and true negatives.
If the score function is fair in the sense that it is independent of the protected attribute, then any choice of the threshold will also be fair, but classifiers of this type tend to be biased, so a different threshold may be required for each protected group to achieve fairness.[54] A way to do this is plotting the true positive rate against the false negative rate at various threshold settings (this is called ROC curve) and find a threshold where the rates for the protected group and other individuals are equal.[54]
Reject option based classification
[edit]Given a classifier let be the probability computed by the classifiers as the probability that the instance belongs to the positive class +. When is close to 1 or to 0, the instance is specified with high degree of certainty to belong to class + or – respectively. However, when is closer to 0.5 the classification is more unclear.[55]
We say is a "rejected instance" if with a certain such that .
The algorithm of "ROC" consists on classifying the non-rejected instances following the rule above and the rejected instances as follows: if the instance is an example of a deprived group () then label it as positive, otherwise, label it as negative.
We can optimize different measures of discrimination (link) as functions of to find the optimal for each problem and avoid becoming discriminatory against the privileged group.[55]
See also
[edit]References
[edit]- ^ Caton, Simon; Haas, Christian (2024). "Fairness in Machine Learning: A Survey". ACM Computing Surveys. 56 (7): 1–38. arXiv:2010.04053. doi:10.1145/3616865.
- ^ a b Mattu, Julia Angwin, Jeff Larson, Lauren Kirchner, Surya. "Machine Bias". ProPublica. Retrieved 16 April 2022.
{{cite web}}: CS1 maint: multiple names: authors list (link) - ^ Friedler, Sorelle A.; Scheidegger, Carlos; Venkatasubramanian, Suresh (April 2021). "The (Im)possibility of fairness: different value systems require different mechanisms for fair decision making". Communications of the ACM. 64 (4): 136–143. doi:10.1145/3433949. ISSN 0001-0782. S2CID 1769114.
- ^ Mehrabi, Ninareh; Morstatter, Fred; Saxena, Nripsuta; Lerman, Kristina; Galstyan, Aram (13 July 2021). "A Survey on Bias and Fairness in Machine Learning". ACM Computing Surveys. 54 (6): 115:1–115:35. arXiv:1908.09635. doi:10.1145/3457607. ISSN 0360-0300. S2CID 201666566.
- ^ "AI Fairness 360". aif360.mybluemix.net. Archived from the original on 29 June 2022. Retrieved 18 November 2022.
- ^ "IBM AI Fairness 360 open source toolkit adds new functionalities". Tech Republic. 4 June 2020.
- ^ "Responsible AI practices". Google AI. Retrieved 18 November 2022.
- ^ Fairness Indicators, tensorflow, 10 November 2022, retrieved 18 November 2022
- ^ "How we're using Fairness Flow to help build AI that works better for everyone". ai.facebook.com. Retrieved 18 November 2022.
- ^ "AI experts warn Facebook's anti-bias tool is 'completely insufficient'". VentureBeat. 31 March 2021. Retrieved 18 November 2022.
- ^ Hutchinson, Ben; Mitchell, Margaret (29 January 2019). "50 Years of Test (Un)fairness". Proceedings of the Conference on Fairness, Accountability, and Transparency. New York, NY, USA: ACM FAT*'19. pp. 49–58. arXiv:1811.10104. doi:10.1145/3287560.3287600. ISBN 9781450361255.
- ^ a b c Luo, Queenie; Puett, Michael J.; Smith, Michael D. (23 May 2023), A Perspectival Mirror of the Elephant: Investigating Language Bias on Google, ChatGPT, Wikipedia, and YouTube, arXiv:2303.16281
- ^ Kotek, Hadas; Dockum, Rikker; Sun, David (5 November 2023). "Gender bias and stereotypes in Large Language Models". Proceedings of the ACM Collective Intelligence Conference. CI '23. New York, NY, USA: Association for Computing Machinery. pp. 12–24. arXiv:2308.14921. doi:10.1145/3582269.3615599. ISBN 979-8-4007-0113-9.
- ^ V. Simon, N. Rabin, H. Chalutz-Ben-Gal(2023 (2023). "Utilizing data driven methods to identify gender bias in LinkedIn profiles". Information Processing & Management. 60 (5) 103423. Information Processing and Management 60(5),103423, 2023. doi:10.1016/j.ipm.2023.103423.
{{cite journal}}: CS1 maint: multiple names: authors list (link) CS1 maint: numeric names: authors list (link) - ^ Zhou, Karen; Tan, Chenhao (December 2023). Bouamor, Houda; Pino, Juan; Bali, Kalika (eds.). "Entity-Based Evaluation of Political Bias in Automatic Summarization". Findings of the Association for Computational Linguistics: EMNLP 2023. Singapore: Association for Computational Linguistics: 10374–10386. arXiv:2305.02321. doi:10.18653/v1/2023.findings-emnlp.696.
- ^ "Attorney General Eric Holder Speaks at the National Association of Criminal Defense Lawyers 57th Annual Meeting and 13th State Criminal Justice Network Conference". www.justice.gov. 1 August 2014. Retrieved 16 April 2022.
- ^ Dieterich, William; Mendoza, Christina; Brennan, Tim (2016). "COMPAS Risk Scales: Demonstrating Accuracy Equity and Predictive Parity" (PDF). Northpointe Inc.
- ^ Angwin, Jeff Larson, Julia (29 July 2016). "Technical Response to Northpointe". ProPublica. Retrieved 18 November 2022.
{{cite web}}: CS1 maint: multiple names: authors list (link) - ^ Rose, Adam (22 January 2010). "Are face-detection cameras racist?". Time. ISSN 0040-781X. Retrieved 18 November 2022.
- ^ "Google says sorry for racist auto-tag in photo app". The Guardian. 1 July 2015. Retrieved 16 April 2022.
- ^ "A beauty contest was judged by AI and the robots didn't like dark skin". The Guardian. 8 September 2016. Retrieved 16 April 2022.
- ^ a b Buolamwini, Joy; Gebru, Timnit (February 2018). Gender Shades: Intersectional Accuracy Disparities in Commercial Gender Classification (PDF). Conference on Fairness, Accountability and Transparency. New York, NY, USA. pp. 77–91.
- ^ "Student proves Twitter algorithm 'bias' toward lighter, slimmer, younger faces". The Guardian. 10 August 2021. Retrieved 18 November 2022.
- ^ openai/dalle-2-preview, OpenAI, 17 November 2022, retrieved 18 November 2022
- ^ "No quick fix: How OpenAI's DALL·E 2 illustrated the challenges of bias in AI". NBC News. 27 July 2022. Retrieved 23 July 2024.
- ^ "Amazon scraps secret AI recruiting tool that showed bias against women". Reuters. 10 October 2018. Retrieved 18 November 2022.
- ^ "Apple Card algorithm sparks gender bias allegations against Goldman Sachs". Washington Post. ISSN 0190-8286. Retrieved 18 November 2022.
- ^ Martinez, Emmanuel; Kirchner, Lauren (25 August 2021). "The Secret Bias Hidden in Mortgage-Approval Algorithms – The Markup". themarkup.org. Retrieved 18 November 2022.
- ^ Ruggieri, Salvatore; Alvarez, Jose M.; Pugnana, Andrea; State, Laura; Turini, Franco (26 June 2023). "Can We Trust Fair-AI?". Proceedings of the AAAI Conference on Artificial Intelligence. 37 (13). Association for the Advancement of Artificial Intelligence (AAAI): 15421–15430. doi:10.1609/aaai.v37i13.26798. hdl:11384/136444. ISSN 2374-3468. S2CID 259678387.
- ^ Buyl, Maarten; De Bie, Tijl (2022). "Inherent Limitations of AI Fairness". Communications of the ACM. 67 (2): 48–55. arXiv:2212.06495. doi:10.1145/3624700. hdl:1854/LU-01GMNH04RGNVWJ730BJJXGCY99.
- ^ Castelnovo, Alessandro; Inverardi, Nicole; Nanino, Gabriele; Penco, Ilaria Giuseppina; Regoli, Daniele (2023). "Fair Enough? A map of the current limitations of the requirements to have "fair" algorithms". arXiv:2311.12435 [cs.AI].
- ^ Gaudeul, Alexia; Arrigoni, Ottla; Charisi, Vicky; Escobar-Planas, Marina; Hupont, Isabelle (2024), "Understanding the Impact of Human Oversight on Discriminatory Outcomes in AI-Supported Decision-Making", ECAI 2024, Frontiers in Artificial Intelligence and Applications, IOS Press, pp. 1067–1074, doi:10.3233/faia240598, ISBN 978-1-64368-548-9
- ^ a b c d Solon Barocas; Moritz Hardt; Arvind Narayanan, Fairness and Machine Learning. Retrieved 15 December 2019.
- ^ Mayes, Elizabeth (2001). Handbook of Credit Scoring. NY, NY, USA: Glenlake Publishing. p. 282. ISBN 0-8144-0619-X.
- ^ Berk, Richard; Heidari, Hoda; Jabbari, Shahin; Kearns, Michael; Roth, Aaron (February 2021). "Fairness in Criminal Justice Risk Assessments: The State of the Art". Sociological Methods & Research. 50 (1): 3–44. arXiv:1703.09207. doi:10.1177/0049124118782533. ISSN 0049-1241. S2CID 12924416.
- ^ a b Räz, Tim (3 March 2021). "Group Fairness: Independence Revisited". Proceedings of the 2021 ACM Conference on Fairness, Accountability, and Transparency. ACM. pp. 129–137. arXiv:2101.02968. doi:10.1145/3442188.3445876. ISBN 978-1-4503-8309-7. S2CID 231667399.
- ^ a b c Verma, Sahil; Rubin, Julia (2018). "Fairness definitions explained". Proceedings of the International Workshop on Software Fairness. pp. 1–7. doi:10.1145/3194770.3194776. ISBN 9781450357463. S2CID 49561627.
- ^ Gursoy, Furkan; Kakadiaris, Ioannis A. (November 2022). "Equal Confusion Fairness: Measuring Group-Based Disparities in Automated Decision Systems". 2022 IEEE International Conference on Data Mining Workshops (ICDMW). IEEE. pp. 137–146. arXiv:2307.00472. doi:10.1109/ICDMW58026.2022.00027. ISBN 979-8-3503-4609-1. S2CID 256669476.
- ^ Chen, Violet (Xinying); Hooker, J. N. (2021). "Welfare-based Fairness through Optimization". arXiv:2102.00311 [cs.AI].
- ^ Mullainathan, Sendhil (19 June 2018). Algorithmic Fairness and the Social Welfare Function. Keynote at the 19th ACM Conference on Economics and Computation (EC'18). YouTube. 48 minutes in.
In other words, if you have a social welfare function where what you care about is harm, and you care about harm to the African Americans, there you go: 12 percent less African Americans in jail overnight.... Before we get into the minutiae of relative harm, the welfare function is defined in absolute harm, so we should actually calculate the absolute harm first.
- ^ Mitchell, Shira; Potash, Eric; Barocas, Solon; d'Amour, Alexander; Lum, Kristian (2021). "Algorithmic Fairness: Choices, Assumptions, and Definitions". Annual Review of Statistics and Its Application. 8 (1): 141–163. arXiv:1811.07867. Bibcode:2021AnRSA...8..141M. doi:10.1146/annurev-statistics-042720-125902. S2CID 228893833.
- ^ Castelnovo, Alessandro; Crupi, Riccardo; Greco, Greta; Regoli, Daniele; Penco, Ilaria Giuseppina; Cosentini, Andrea Claudio (2022). "A clarification of the nuances in the fairness metrics landscape". Scientific Reports. 12 (1): 4209. arXiv:2106.00467. Bibcode:2022NatSR..12.4209C. doi:10.1038/s41598-022-07939-1. PMC 8913820. PMID 35273279.
- ^ Mehrabi, Ninareh, Fred Morstatter, Nripsuta Saxena, Kristina Lerman, and Aram Galstyan. "A survey on bias and fairness in machine learning." ACM Computing Surveys (CSUR) 54, no. 6 (2021): 1–35.
- ^ Dwork, Cynthia; Hardt, Moritz; Pitassi, Toniann; Reingold, Omer; Zemel, Richard (2012). "Fairness through awareness". Proceedings of the 3rd Innovations in Theoretical Computer Science Conference on - ITCS '12. pp. 214–226. doi:10.1145/2090236.2090255. ISBN 9781450311151. S2CID 13496699.
- ^ Galhotra, Sainyam; Brun, Yuriy; Meliou, Alexandra (2017). "Fairness testing: Testing software for discrimination". Proceedings of the 2017 11th Joint Meeting on Foundations of Software Engineering. pp. 498–510. arXiv:1709.03221. doi:10.1145/3106237.3106277. ISBN 9781450351058. S2CID 6324652.
- ^ Kusner, M. J., Loftus, J., Russell, C., & Silva, R. (2017). Counterfactual fairness. Advances in neural information processing systems, 30.
- ^ Coston, Amanda; Mishler, Alan; Kennedy, Edward H.; Chouldechova, Alexandra (27 January 2020). "Counterfactual risk assessments, evaluation, and fairness". Proceedings of the 2020 Conference on Fairness, Accountability, and Transparency. FAT* '20. New York, NY, USA: Association for Computing Machinery. pp. 582–593. doi:10.1145/3351095.3372851. ISBN 978-1-4503-6936-7. S2CID 202539649.
- ^ Mishler, Alan; Kennedy, Edward H.; Chouldechova, Alexandra (1 March 2021). "Fairness in Risk Assessment Instruments". Proceedings of the 2021 ACM Conference on Fairness, Accountability, and Transparency. FAccT '21. New York, NY, USA: Association for Computing Machinery. pp. 386–400. doi:10.1145/3442188.3445902. ISBN 978-1-4503-8309-7. S2CID 221516412.
- ^ a b Plecko, Drago; Bareinboim, Elias (2022). "Causal Fairness Analysis". arXiv:2207.11385.
{{cite journal}}: Cite journal requires|journal=(help) - ^ Richard Zemel; Yu (Ledell) Wu; Kevin Swersky; Toniann Pitassi; Cyntia Dwork, Learning Fair Representations. Retrieved 1 December 2019
- ^ Faisal Kamiran; Toon Calders, Data preprocessing techniques for classification without discrimination. Retrieved 17 December 2019
- ^ Muhammad Bilal Zafar; Isabel Valera; Manuel Gómez Rodríguez; Krishna P. Gummadi, Fairness Beyond Disparate Treatment & Disparate Impact: Learning Classification without Disparate Mistreatment. Retrieved 1 December 2019
- ^ a b Brian Hu Zhang; Blake Lemoine; Margaret Mitchell, Mitigating Unwanted Biases with Adversarial Learning. Retrieved 17 December 2019
- ^ a b Moritz Hardt; Eric Price; Nathan Srebro, Equality of Opportunity in Supervised Learning. Retrieved 1 December 2019
- ^ a b Faisal Kamiran; Asim Karim; Xiangliang Zhang, Decision Theory for Discrimination-aware Classification. Retrieved 17 December 2019
Fairness (machine learning)
View on GrokipediaFundamentals
Definition and Core Principles
Fairness in machine learning encompasses efforts to prevent automated systems from producing discriminatory outcomes, defined as the wrongful consideration of group membership in decisions affecting individuals' interests.[10] This involves addressing protected attributes—socially salient categories such as race, sex, or ethnicity that have historically served as bases for systematic adverse treatment, as codified in frameworks like the U.S. Civil Rights Act of 1964 and its Title VII provisions prohibiting employment discrimination.[10] Discrimination arises through disparate treatment, where protected attributes explicitly influence decision rules, or disparate impact, where neutral policies yield disproportionate harms to protected groups without sufficient justification.[10] These concepts, adapted from legal precedents, translate into machine learning as constraints ensuring decisions respect individuals' agency and avoid arbitrary relative disadvantages across groups.[10] Core principles bifurcate into group fairness, which enforces statistical parity across demographic subgroups, and individual fairness, which demands consistent treatment of comparable cases irrespective of group.[10] Group fairness criteria include demographic parity (or statistical independence), requiring predicted outcomes to be independent of the protected attribute , formally or for all .[10] Other group criteria encompass equalized odds (conditional independence given true outcome : ), equalizing true/false positive rates across groups, and predictive parity (sufficiency: ), ensuring predictions are equally calibrated by group.[10] Individual fairness, formalized by Dwork et al. in 2012, posits that similar individuals—measured by a task-specific similarity metric on inputs—should receive similar outcomes, yielding Lipschitz continuity in the model's output function to bound decision disparities. These principles, while rooted in psychometrics (e.g., Cleary's 1966 criterion for test fairness) and philosophical notions of equality of opportunity, lack a universal formulation, as no single criterion satisfies all normative intuitions simultaneously.[10][10]Historical Origins and Evolution
The study of fairness in machine learning draws from earlier statistical and legal efforts to quantify discrimination in decision processes, with roots traceable to mid-20th-century analyses in labor and education. For instance, in 1975, researchers identified Simpson's paradox in University of California, Berkeley admissions data, where aggregate gender disparities masked departmental-level patterns, highlighting how aggregated statistics can obscure subgroup inequities.[4] This work underscored the need for disaggregated evaluation in selection algorithms, influencing later ML fairness metrics like disparate impact ratios. Similarly, U.S. legal frameworks, such as the 1971 Griggs v. Duke Power Co. Supreme Court decision establishing disparate impact liability under Title VII, provided conceptual foundations for algorithmic scrutiny, emphasizing outcomes over intent in automated decisions. Early instances of algorithmic bias emerged in the 1980s, predating widespread machine learning but illustrating risks in rule-based scoring systems akin to modern models. At St. George's Hospital Medical School in London, an admissions algorithm developed in 1979 and implemented by 1982 assigned penalties to applicants with non-Caucasian-sounding names (up to 15 points deducted) and slightly lower scores to females, perpetuating human prejudices encoded in the formula.[11] A 1986 investigation by the UK Commission for Racial Equality confirmed racial and sex discrimination, leading to reparations for affected applicants but no systemic overhaul, as the biases mirrored societal norms rather than novel computational errors. This case, along with 1996 analyses of bias in computer systems by Friedman and Nissenbaum, highlighted how technical artifacts could amplify historical inequities, setting precedents for auditing ML pipelines.[4] The formal field of fairness in machine learning coalesced in the late 2000s amid growing deployment of data-driven classifiers in high-stakes domains like credit and hiring. Pioneering work by Calders and colleagues in 2009–2010 introduced discrimination-aware classification techniques, such as massaging datasets to equalize acceptance rates across protected groups while preserving utility.[4] This evolved into theoretical frameworks, including Dwork et al.'s 2012 "Fairness Through Awareness" paper, which proposed differential privacy-inspired notions to limit influence of sensitive attributes on predictions.[12] By the mid-2010s, real-world exposés accelerated research; ProPublica's 2016 investigation of the COMPAS recidivism tool revealed higher false positive rates for Black defendants (45% vs. 23% for whites), sparking debates on calibration vs. error rate parity, though critics argued the disparities reflected base rate differences rather than inherent bias.[13] [14] Subsequent evolution featured proliferation of criteria—group parity (e.g., Hardt et al.'s 2016 equality of opportunity), individual non-discrimination, and counterfactual approaches—and mitigation strategies like pre-processing (data reweighting) and post-processing (threshold adjustment). Chouldechova's 2017 analysis of recidivism predictors formalized trade-offs, showing equalized odds often conflicts with calibration under varying prevalence rates.[15] The field matured with dedicated venues like the ACM Conference on Fairness, Accountability, and Transparency (FAT*/FAccT) from 2018, integrating causal inference to address proxy discrimination, though persistent incompatibilities among criteria (e.g., Kleinberg et al. 2016 impossibility results) underscore limits of purely statistical remedies without domain-specific interventions. By the early 2020s, surveys documented over 50 fairness definitions, with emphasis shifting toward causal models to disentangle correlation from spurious associations in training data.[4]Sources of Disparity in ML Systems
Data-Related Disparities
Data-related disparities in machine learning systems primarily emerge from biases embedded in training datasets, which reflect flaws in data collection, sampling, or labeling processes that lead to unequal model performance or outcomes across protected groups such as race, gender, or ethnicity. These disparities can manifest as skewed predictions because models learn patterns from data that may not accurately capture the target population's diversity or true underlying relationships, potentially amplifying societal inequalities rather than resolving them. A comprehensive survey identifies three key data biases contributing to such issues: representation bias from non-diverse sampling, historical bias encoding past discriminatory practices, and measurement bias from inaccurate proxies or labels.[4] Representation disparities arise when training data underrepresents certain subgroups, causing models to generalize poorly to those groups due to insufficient examples for learning relevant features. For example, in image recognition tasks, datasets with disproportionate samples from majority demographics—such as predominantly light-skinned individuals—result in higher error rates for underrepresented groups, as documented in analyses of facial recognition systems where dark-skinned females experienced error rates up to 34.7% compared to 0.8% for light-skinned males. This imbalance stems from sampling processes that fail to mirror real-world distributions, leading to models that prioritize majority-group accuracy at the expense of minorities.[4][16] Historical disparities occur when datasets inherit patterns from prior societal biases, such as discriminatory enforcement or decision-making, embedding these into labels or features. In criminal justice applications like recidivism prediction, training data often draws from arrest records that reflect historical over-policing of certain communities, potentially labeling higher-risk scores for those groups even if causal factors like socioeconomic conditions differ. The COMPAS algorithm, used for risk assessment in U.S. courts, exemplified this debate: a 2016 ProPublica investigation reported black defendants received high-risk scores twice as often as whites and faced false positive rates of 45% versus 23% for whites, attributing it to data reflecting systemic biases. However, subsequent peer-reviewed analyses countered that these error rate disparities align with differing base recidivism rates between groups (e.g., 48% for black defendants versus lower for whites in the dataset), arguing the model was equally calibrated in predictive accuracy across races at around 62%, and that ignoring base rates mischaracterizes fairness.[4][13][17] Measurement disparities stem from errors or imperfections in how variables are captured, often using proxies that correlate unevenly across groups or noisy labels that introduce systematic inaccuracies. For instance, using zip code as a proxy for socioeconomic status can embed racial disparities if historical redlining patterns cause uneven correlations, leading models to indirectly discriminate via these flawed features. Label inaccuracies, such as subjective human annotations varying by annotator demographics, further exacerbate issues, with studies showing measurement errors can inflate unfairness metrics by up to 20-30% in simulated scenarios. These data flaws underscore that observed predictive disparities may reflect genuine group differences in outcomes—driven by causal factors like behavior or environment—rather than invidious bias, necessitating scrutiny of whether interventions address root causes or merely suppress symptoms.[4][18][19]Algorithmic and Modeling Disparities
Algorithmic and modeling disparities in machine learning arise from design decisions in model architecture, feature selection, loss functions, and optimization processes that lead to unequal predictive performance or treatment across protected groups, even when controlling for data composition. These differ from data biases, as they involve how the algorithm constructs representations or minimizes objectives, potentially introducing or exacerbating group differences through proxy learning or unconstrained optimization. For instance, empirical risk minimization in standard supervised learning prioritizes aggregate accuracy, which can yield disparate error rates when group base rates vary, as unconstrained models rarely satisfy criteria like equalized odds without explicit constraints.[4] Feature engineering choices, such as incorporating proxy variables correlated with sensitive attributes, constitute a key modeling disparity. Proxies like zip codes or prior arrests indirectly encode protected traits (e.g., race), resulting in disparate impact; in the COMPAS recidivism tool, this contributed to false positive rates of 45% for African Americans compared to 23% for Whites.[4][13] Similarly, optimization favoring popularity in recommendation systems can amplify visibility gaps, as ranking algorithms boost items with higher initial engagement from majority groups, independent of explicit data skew.[4] Loss functions and regularization further induce disparities by implicitly penalizing certain patterns. Techniques like independence regularization, intended to decorrelate predictions from sensitive attributes, systematically underpredict outcomes for minority groups in classifiers such as naive Bayes, as shown in experiments where bias coefficients shifted negatively for underrepresented classes.[4] In healthcare, modeling patient needs via prior spending—a proxy tied to access rather than acuity—led to Black patients receiving 18% fewer resources than equally needy White patients, reflecting a causal modeling flaw in equating cost with need.[10] Model architectures exacerbate these issues through differential capacity to capture correlations. High-capacity deep neural networks learn subtle proxies more effectively than linear models, propagating disparities; facial recognition classifiers from vendors like Microsoft and IBM exhibited 11.8%-19.2% higher error rates for darker skin tones due to architectural tendencies to overfit group-specific patterns.[10] Omitted variable bias in misspecified models, such as ignoring interactions or confounders, further skews predictions, as linear assumptions fail to account for heterogeneous effects across groups.[4] Mitigation often involves constrained optimization, like adding Lagrangian terms for fairness metrics during training, though trade-offs with accuracy persist.[4]Deployment and Human Factors
Deployment of machine learning models introduces disparities through human-mediated processes, such as the selection of operational thresholds, integration into decision workflows, and interpretation of outputs, which can vary systematically across demographic groups if not standardized. In machine-assisted settings, where humans retain final authority, decision-makers often exhibit confirmation bias, overweighting model predictions that align with prior beliefs and underweighting those that challenge them, leading to inconsistent application of fairness across protected attributes like race or gender. A 2023 study on algorithmic assistance in decisions found that human overrides tend to amplify rather than correct model biases, particularly when users perceive the system as authoritative, resulting in higher error rates for underrepresented groups.[20] Feedback loops emerge post-deployment as models influence real-world actions, generating new data that feeds back into retraining cycles and potentially reinforcing initial disparities. For instance, in interactive systems like recommender engines, biased predictions elicit non-uniform user responses—majority groups engage more, skewing subsequent training data toward their preferences and marginalizing minorities, with simulations showing bias amplification over multiple iterations. Empirical analyses of such loops indicate they can increase disparate impact by up to 20-30% in utility metrics for affected subgroups after 5-10 retraining cycles, depending on interaction volume. This dynamic alters the underlying data-generating process, making pre-deployment fairness assessments insufficient without ongoing monitoring. Human factors also encompass subjective elements in deployment oversight, including team composition and institutional practices, where homogeneous developer groups may overlook context-specific disparities. The NIST taxonomy categorizes human bias separately from data or algorithmic sources, attributing it to interpretive errors or selective auditing during live operations, as evidenced in healthcare deployments where clinician biases in model usage perpetuate socioeconomic disparities in outcomes. A 2024 review of clinical ML models reported that 74.7% exhibited bias against disadvantaged groups, often traced to unaddressed human deployment choices rather than inherent model flaws.[21][22][23] Mitigating these disparities requires human-in-the-loop protocols with explicit bias checks, such as randomized audits and diverse review panels, though evidence suggests over-reliance on automated metrics ignores nuanced human interactions. In high-stakes domains, failure to account for these factors has led to real-world harms, including widened inequality gaps in lending and hiring systems deployed since the mid-2010s.[24]Formal Fairness Criteria
Group-Based Criteria
Group-based fairness criteria in machine learning evaluate whether predictive models produce statistically equivalent outcomes across subpopulations defined by a protected attribute , such as sex or ethnicity, typically through aggregate measures of prediction rates or error rates. These criteria, rooted in observational data analysis, formalize notions like independence, separation, and sufficiency between the model's prediction , the true outcome , and .[10] They emerged prominently in the mid-2010s amid concerns over biased recidivism prediction tools like COMPAS, where disparities in positive prediction rates between racial groups prompted formal metric development.[25] Unlike individual fairness, which focuses on similar inputs receiving similar outputs, group-based approaches prioritize equity in group-level statistics but can conflict with overall accuracy when base rates of differ across groups.[6] Independence (Demographic Parity) requires that the prediction is statistically independent of the protected attribute , ensuring equal positive prediction rates across groups irrespective of true outcomes. Formally, this is expressed as for all and , or equivalently .[10] [26] This criterion, analyzed in early fairness literature for applications like hiring or lending, aims to prevent disparate impact but ignores differences in qualification base rates, potentially requiring the model to underpredict for higher-qualified groups to balance rates.[25] Empirical evaluations, such as on the Adult UCI dataset, show demographic parity often reduces model utility by 5-15% in accuracy compared to unconstrained baselines.[6] Separation (Equalized Odds) mandates conditional independence between and given the true label , equalizing true positive rates (TPR) and false positive rates (FPR) across groups: for and all , or . Introduced by Hardt et al. in 2016 for binary classification tasks like risk assessment, it accommodates differing base rates by conditioning on , thus preserving more predictive power than independence; equal opportunity is a relaxation focusing only on TPR equality (). [26] In criminal justice benchmarks, equalized odds constraints on logistic regression models narrowed racial FPR gaps from 0.45 to near zero but increased overall error rates by up to 10% in some datasets.[25] Sufficiency (Predictive Parity or Calibration) enforces that the true outcome is independent of given , ensuring equal positive predictive values (PPV) and negative predictive values (NPV) across groups: for all and , or .[10] [26] This metric, emphasized in calibration-focused fairness work, prioritizes reliable probability estimates within predicted classes but assumes well-calibrated scores; violations occur when models over- or under-estimate risks differently by group.[25] Studies on healthcare prediction tasks report that enforcing sufficiency via post-processing adjusts PPV disparities effectively but may amplify TPR gaps if not combined with other metrics.[27] These criteria are observational and group-aggregate, often tested via metrics like the difference in rates (e.g., demographic parity gap = |P(\hat{Y}=1|A=0) - P(\hat{Y}=1|A=1)| ≤ ε for approximate fairness), with ε typically set to 0.01-0.1 based on regulatory thresholds like the U.S. EEOC's 80% rule.[10] [26] They underpin tools in libraries like Fairlearn, where violations are quantified over held-out data stratified by .[28] However, as shown in impossibility results, no single group criterion satisfies all simultaneously when base rates and error rates vary, necessitating trade-offs.[10]Individual-Based Criteria
Individual fairness criteria in machine learning emphasize equitable treatment at the level of individual predictions, requiring that similar individuals receive similar outcomes from a model, irrespective of protected attributes such as race or gender. This approach contrasts with group-based criteria by focusing on pairwise similarities rather than aggregate disparities across demographics, aiming to preserve the merits of individuals while mitigating discrimination. The concept posits that discrimination arises when protected attributes influence decisions for otherwise comparable cases, and fairness is achieved by enforcing consistency in outputs for inputs deemed proximate under a context-specific similarity measure.[29][30] The foundational formalization appears in the 2012 work by Dwork et al., which defines individual fairness through a metric-based guarantee: a classifier is fair if, for any two individuals and in the input space, the output difference is bounded by a constant times the distance under a predefined similarity metric , i.e., for all . This Lipschitz continuity condition ensures smooth mappings from inputs to outputs, preventing abrupt changes in decisions for minor input variations. The metric must be task-dependent and ideally derived from domain expertise, capturing substantive similarities (e.g., in lending, proximity in credit history and income profiles), while avoiding direct embedding of protected attributes to prevent encoded bias; however, the framework permits "awareness" of sensitive features during training to approximate fairness without them.[29][30][7] Implementing individual fairness requires specifying the similarity metric, which poses challenges due to its subjectivity and the need for high-dimensional distances that align with human intuitions of equity. Empirical verification is computationally intensive, often involving exhaustive pairwise comparisons, leading to approximations like sampling or kernel-based methods in practice. Unlike group criteria, which can be checked via simple statistical tests on holdout data, individual fairness demands access to the full decision function and may conflict with utility maximization if the metric enforces overly strict uniformity. Research has explored relaxations, such as -approximate versions allowing small deviations, to balance enforceability with model performance.[29][31][32] Variants of individual fairness include probabilistic formulations, where outcomes are similar in expectation rather than deterministically, accommodating stochastic models like randomized classifiers. These criteria have been applied in domains such as criminal justice risk assessment, where similar offender profiles should yield comparable recidivism scores, though real-world adoption is limited by metric disputes and scalability issues. Studies indicate that individual fairness can mitigate "reverse discrimination" risks inherent in group parity constraints, as it prioritizes merit-based distinctions over demographic balancing.Causality-Oriented Criteria
Causality-oriented fairness criteria in machine learning employ structural causal models, typically directed acyclic graphs (DAGs), to define fairness through interventions, counterfactuals, or path decompositions, addressing limitations of correlation-based metrics by isolating discriminatory causal mechanisms. These approaches assume a known or estimable causal structure, where protected attributes (e.g., race or gender, denoted as ) influence outcomes () via specific pathways, enabling distinctions between legitimate (e.g., qualification-based) and illegitimate (e.g., historical bias) effects. Unlike group parity, they often yield individual-level guarantees but require identifiability conditions, such as no unmeasured confounding, which empirical validation in real datasets frequently challenges.[33][34] Counterfactual fairness, formalized by Kusner et al. in 2017, mandates that a predictor for an individual satisfies for all values in the domain of , where denotes the potential outcome under intervention on non-descendants of . This ensures predictions remain invariant to hypothetical changes in the protected attribute, blocking all downstream causal influences from while preserving other factors. The criterion applies to generative models fitting observational data to a causal DAG, with identifiability via adjustment formulas like back-door criterion when confounders are observed; violations occur if proxies for (e.g., zip code correlating with race) leak information. Empirical tests on synthetic data show it reduces proxy discrimination but can degrade utility if causal graphs are misspecified, as interventions alter distributions non-trivially.[35][36] Path-specific counterfactual fairness, developed by Chiappa in 2018 and refined in 2019, extends this by decomposing effects along DAG paths, enforcing equality of counterfactuals only for unfair paths (e.g., those transmitting societal bias) while retaining fair paths (e.g., to qualifications to ). Formally, for a set of unfair edges , the predictor satisfies path-specific invariance by intervening to sever , yielding . This uses nested counterfactuals or effect decomposition (e.g., natural direct effects), identifiable under monotonicity or randomization assumptions; algorithms learn fair representations by optimizing losses over adjusted distributions. Applications to hiring models demonstrate preserved accuracy over total counterfactual bans, but computational cost scales with path enumeration, and path labeling introduces subjectivity critiqued in fairness audits.[37][38] Additional criteria include causal effect independence, requiring zero total causal effect of on via interventions (), and separation via proxies, where no downstream variable causally mediates illegitimate influence. Surveys categorize these into avoiding direct discrimination (no effect) and proxy discrimination (no effects through descendants of ), with guidelines for selection based on domain knowledge—e.g., counterfactuals suit individual decisions like lending, path-specific for mixed influences like admissions. Real-world deployment, such as in recidivism prediction, reveals tensions: causal assumptions often rely on unverifiable expert graphs, leading to fragility under dataset shifts, as 2022 analyses show minor biases amplifying unfair effects by orders of magnitude. Peer-reviewed evaluations emphasize testing via sensitivity to graph perturbations over blind acceptance of causal claims.[34][39][40]Interdependencies and Incompatibilities
Relationships Among Criteria
Group fairness criteria in machine learning are often formalized using conditional independence conditions involving the sensitive attribute , the true outcome , and the predicted risk score or binary prediction . Independence, or demographic parity, requires , ensuring equal average risk scores across groups defined by . Separation, or equalized odds, requires , mandating equal true positive rates and false positive rates across groups. Sufficiency, or predictive parity, requires , ensuring equal precision or calibration within risk score levels across groups.[26][41] These criteria exhibit specific relationships and implications. Equalized odds restricted to the positive class yields equal opportunity, which coincides with equalized odds when false positive rates are irrelevant or equal. Predictive parity for binary predictions aligns with group calibration, where the predicted probability matches the observed outcome rate within each group. However, satisfying independence and separation simultaneously is impossible unless the base rates for all groups, as the former equalizes marginal prediction rates while the latter conditions on . Similarly, independence and sufficiency cannot both hold unless , because independence ignores outcome dependence on while sufficiency conditions on predictions.[41][26] More fundamentally, no non-trivial scoring function can simultaneously achieve calibration (sufficiency), equal false positive and false negative rates across groups (separation), and statistical parity (independence) unless base rates are identical across groups or the outcome is perfectly predictable. This result holds for any method assigning scores from , as demonstrated through derivations showing linear dependence among the conditions that only resolve under equal base rates or perfect accuracy. Chouldechova's analysis of recidivism prediction instruments empirically confirms that calibration by group and equalized odds imply demographic parity, rendering disparate impact unavoidable if base rates differ, as observed in datasets like COMPAS where Black defendants had higher recidivism rates (45% vs. 23% for White).[42][43] Under equal base rates, the criteria become compatible: independence holds if separation does, and sufficiency aligns via Bayes' rule. Approximate satisfaction is possible with small deviations , but requires base rates or predictability to approximate equality within bounds tied to . Causality-oriented criteria, such as counterfactual fairness, relate to group criteria by enforcing path-specific independences that strengthen separation or independence when causal graphs exclude spurious correlations, though they remain distinct without full causal knowledge.[42][26]Impossibility Theorems and Fundamental Conflicts
Several impossibility theorems in machine learning fairness demonstrate that prominent group-based fairness criteria cannot be simultaneously satisfied except under restrictive conditions, such as identical base rates (prevalence of the outcome) across protected groups. These results underscore fundamental mathematical conflicts arising from differing statistical dependencies in real-world data, where protected attributes like race or gender correlate with outcomes due to historical or societal factors.[42][43] A foundational result by Kleinberg, Mullainathan, and Raghavan (2016) proves that for risk assessment scorers, the criteria of independence (equivalent to demographic parity, where the score distribution is independent of the protected attribute), separation (equivalent to equalized odds, where error rates conditional on the true outcome are independent of the protected attribute), and sufficiency (predictive parity or calibration by group, where the outcome distribution conditional on the score is independent of the protected attribute) cannot all hold simultaneously for any non-constant scorer unless the outcome distributions are identical across groups.[42] This theorem applies to ordinal scorers (e.g., continuous risk scores binned into categories) and relies on properties like monotonicity and scale-invariance, showing that satisfying any two implies violation of the third when base rates differ, as is common in applications like criminal justice or lending.[42] Chouldechova (2017) provides a corollary for binary classifiers, demonstrating that demographic parity and equalized odds (or calibration) are incompatible unless the positive outcome prevalence equals across groups or the classifier is perfect (zero error).[43] Specifically, if false positive rates and false negative rates are equalized across groups (equalized odds), and positive predictive values are calibrated by group, then the predicted positive rate (demographic parity) requires equal base rates; otherwise, one criterion must yield to another, as evidenced in analyses of recidivism prediction tools like COMPAS, where black defendants had higher base recidivism rates (around 45% vs. 23% for white).[43] These proofs derive from Bayes' theorem and basic probability identities, revealing that enforcing independence from protected attributes conflicts with conditioning on outcomes for accuracy.[43] Causal analyses extend these conflicts, framing fairness impossibilities through directed acyclic graphs where protected attributes influence outcomes via confounders; for instance, path-specific effects cannot eliminate disparities without intervening on causes, leading to trade-offs between observational fairness and counterfactual criteria like counterfactual fairness.[44] Such theorems imply that no universal fairness definition exists without assumptions about data-generating processes, prompting debates on whether to prioritize error rate parity or calibrated predictions, with empirical violations observed in datasets exhibiting label imbalance.[44][42]Performance Trade-offs
Accuracy and Utility Sacrifices
Imposing fairness constraints on machine learning models often results in reduced predictive accuracy, as these constraints limit the model's ability to optimize for the true underlying data distributions, particularly when protected groups exhibit differing base rates or feature-label relationships.[45] In binary classification tasks, fairness notions such as demographic parity require adjusting decision thresholds differently across groups, which deviates from the unconstrained Bayes optimal classifier and incurs an accuracy penalty proportional to the divergence in group-specific class probabilities.[46] This theoretical cost arises because fair classifiers effectively minimize a constrained risk that does not align perfectly with the empirical error rate, leading to higher overall misclassification rates unless group distributions are identical.[45] Empirical analyses confirm these sacrifices in domains with real-world disparities. For instance, in pretrial risk assessment using Broward County data, enforcing statistical parity or predictive equality on recidivism models increased the detention of low-risk individuals by 10-17%, elevating violent crime rates by 4-9% compared to unconstrained models that prioritize public safety via uniform thresholds.[47] Similarly, theoretical bounds in classification tasks demonstrate that the accuracy of the optimal fair classifier under equalized odds is strictly lower than the unconstrained version when sensitive attribute correlates with the outcome, with the gap widening as group base rates diverge.[46] While some studies report negligible trade-offs in select public policy applications—such as education and criminal justice—using post-hoc mitigation techniques, these findings are context-specific and may not generalize to scenarios with pronounced causal differences between groups or stricter in-processing constraints.[48] In such cases, utility metrics beyond raw accuracy, like false negative rates in high-stakes decisions, exhibit clearer degradations; for example, fairness enforcement in recidivism prediction trades off overall societal benefit for parity, as measured by increased adverse outcomes in the majority group.[47] These sacrifices highlight a fundamental tension: models tuned for fairness sacrifice fidelity to empirical patterns, potentially undermining deployment efficacy in environments where group differences reflect genuine predictive signals rather than artifacts.[45]Empirical Evidence of Costs
Empirical studies demonstrate that enforcing fairness constraints in machine learning models frequently incurs costs in terms of reduced predictive accuracy, increased error rates, or diminished utility, particularly when fairness is imposed via in-processing or strong regularization techniques. In clinical risk prediction tasks using datasets such as MIMIC-III, Optum CDM, and STARR, applying penalties for violations of conditional prediction parity or equalized odds (with regularization strength λ up to 10) led to near-universal degradation in group-level performance metrics, including drops in area under the receiver operating characteristic curve (AUROC) ranging from 2% to 5% across subgroups defined by race/ethnicity, sex, or age.[49] Calibration improvements were observed in some cases, but overall utility, measured by average precision and cross-entropy loss, declined, highlighting heterogeneous trade-offs dependent on the fairness notion and dataset.[49] In e-commerce applications, such as coupon allocation using real-world clickstream data from 400 sessions, implementing statistical parity or equalized odds with respect to gender increased financial costs by 8.5% to 9.1% (from USD 0.508 to USD 0.551 per instance), driven by shifts in prediction errors favoring certain groups, alongside minimal but consistent reductions in AUROC.[50] These costs arise because fairness adjustments alter decision thresholds or model weights, reducing overall revenue or resource efficiency in deployment scenarios.[50] Deep learning systems exhibit similar vulnerabilities, with an analysis of 103 experiments across datasets like CelebA, MS-COCO, imSitu, and CIFAR-10S showing that 68% of debiasing interventions (using 22 mitigation techniques on ResNet architectures) resulted in lower accuracy, higher accuracy variance, or elevated fairness variance under fixed-seed training.[51] Demographic parity differences varied by up to 12.6% across runs, indicating instability that compounds performance losses when fairness is prioritized over unconstrained optimization.[51] While some contexts, such as post-hoc threshold adjustments in public policy top-k selection problems (e.g., mental health screening or housing inspections), report negligible precision losses (<1 percentage point), these findings are limited to resource-constrained settings and do not generalize to in-processing methods or high-stakes domains where base rates differ substantially across groups.[52] Overall, empirical evidence underscores that fairness costs are not theoretical artifacts but observable degradations, often requiring causal awareness of underlying data generating processes to mitigate without fully sacrificing utility.[49][50]Mitigation Approaches
Preprocessing Techniques
Preprocessing techniques in machine learning fairness modify the training dataset to reduce disparities associated with protected attributes, such as race or gender, before applying any learning algorithm. These methods seek to enforce statistical criteria like demographic parity in the data, where the distribution of predicted outcomes is independent of the protected attribute, without requiring changes to the model's architecture or post-hoc adjustments. By altering features, labels, or sample distributions, preprocessing aims to mitigate inherited biases from historical data while preserving overall utility for prediction tasks.[53][54] Early approaches, introduced by Kamiran and Calders in 2012, target classification tasks exhibiting unlawful discrimination measured by unequal acceptance rates across groups. Massaging involves selectively flipping the labels of instances from the advantaged group to the disadvantaged group's favor, prioritizing changes that minimize accuracy loss based on distance to decision boundaries. Reweighing assigns instance-specific weights inversely proportional to group-specific positive rates, balancing the effective contribution of subgroups during training. Resampling, or suppression of labels, adjusts the dataset proportions by oversampling or undersampling positive and negative examples per protected group to equalize base rates. These techniques demonstrated reductions in discrimination on benchmark datasets like the Adult UCI repository, though at the cost of up to 5-10% drops in classifier accuracy depending on the imbalance severity.[53] Subsequent methods focus on learning invariant representations. Zemel et al.'s Learning Fair Representations (LFR) framework, proposed in 2013, optimizes an intermediate embedding space that maximizes predictive utility while minimizing demographic disparities through constraints on mutual information between the representation and protected attributes or cost-sensitive fairness metrics. This variational approach compresses data into fair encodings suitable for downstream classifiers. Similarly, Feldman et al.'s Disparate Impact Remover (DIR) from 2015 perturbs non-protected features to decorrelate them from the sensitive attribute, using convex optimization to bound the protected attribute's predictability from features (e.g., via logistic regression accuracy thresholds below 0.75) while constraining feature covariance shifts to less than 1% in empirical evaluations on synthetic and real datasets. DIR certifies compliance with U.S. Equal Employment Opportunity Commission guidelines, where disparate impact ratios exceed 0.8.[55][56] For imbalanced datasets, oversampling variants like Fair-SMOTE extend synthetic minority oversampling by generating new instances that respect subgroup distributions, preventing bias amplification in minority-protected intersections as shown in credit scoring experiments where standard SMOTE increased equalized odds violations by 15-20%. Preprocessing generally incurs utility trade-offs, with meta-analyses indicating average accuracy reductions of 2-8% across fairness metrics, particularly when data correlations reflect causal differences rather than artifacts. Empirical studies on datasets like COMPAS and German Credit confirm these methods achieve parity improvements but highlight sensitivity to fairness definition choices, often prioritizing group-level equality over individual treatment effects.[57][54]
