<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta>
      <journal-title-group>
        <journal-title>American Journal
of Psychology 15 (1904) 72-101.
[25] M. G. Kendall</journal-title>
      </journal-title-group>
    </journal-meta>
    <article-meta>
      <article-id pub-id-type="doi">10.1145/3531146.3533105</article-id>
      <title-group>
        <article-title>Multiple Protected Attributes⋆</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Manh Khoi Duong</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Stefan Conrad</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Heinrich Heine University</institution>
          ,
          <addr-line>Universitätsstraße 1, 40225 Düsseldorf</addr-line>
          ,
          <country country="DE">Germany</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2022</year>
      </pub-date>
      <volume>80</volume>
      <fpage>2564</fpage>
      <lpage>2572</lpage>
      <abstract>
        <p>Motivated by the recital (67) of the current corrigendum of the AI Act in the European Union, we propose and present measures and mitigation strategies for discrimination in tabular datasets. We specifically focus on datasets that contain multiple protected attributes, such as nationality, age, and sex. This makes measuring and mitigating bias more challenging, as many existing methods are designed for a single protected attribute. This paper comes with a twofold contribution: Firstly, new discrimination measures are introduced. These measures are categorized in our framework along with existing ones, guiding researchers and practitioners in choosing the right measure to assess the fairness of the underlying dataset. Secondly, a novel application of an existing bias mitigation method, FairDo, is presented. We show that this strategy can mitigate any type of discrimination, including intersectional discrimination, by transforming the dataset. By conducting experiments on real-world datasets (Adult, Bank, COMPAS), we demonstrate that de-biasing datasets with multiple protected attributes is possible. All transformed datasets show a reduction in discrimination, on average by 28%. Further, these datasets do not compromise any of the tested machine learning models' performances significantly compared to the original datasets. Conclusively, this study demonstrates the efectiveness of the mitigation strategy used and contributes to the ongoing discussion on the implementation of the European Union's AI Act.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;Machine Learning</kwd>
        <kwd>Bias Mitigation</kwd>
        <kwd>Intersectional Discrimination</kwd>
        <kwd>Fairness</kwd>
        <kwd>AI Act</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        Discrimination in artificial intelligence (AI) applications is a growing concern since the adoption of
the AI Act by the European Parliament on March 13, 2024 [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. It still remains a significant challenge
across numerous domains [
        <xref ref-type="bibr" rid="ref2 ref3 ref4 ref5">2, 3, 4, 5</xref>
        ]. To prevent biased outcomes, pre-processing methods are often
used to mitigate biases in datasets before training machine learning models [
        <xref ref-type="bibr" rid="ref6 ref7 ref8 ref9">6, 7, 8, 9</xref>
        ]. The current
corrigendum of the AI Act [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] emphasizes this in Recital (67):
“[...] The data sets should also have the appropriate statistical properties, including as regards
the persons or groups of persons in relation to whom the high-risk AI system is intended to be
used, with specific attention to the mitigation of possible biases in the data sets [...]”
Since datasets often consist of multiple protected attributes, pre-processing methods should be able
to handle these cases. However, only a few works have addressed this issue [
        <xref ref-type="bibr" rid="ref10 ref11 ref12 ref13 ref7">7, 10, 11, 12, 13</xref>
        ] and
de-biasing such datasets is still an ongoing research topic. In addition, there is no straightforward
approach to managing multiple protected attributes, as shown in Figure 1.
      </p>
      <p>
        Our paper mainly focuses on how to measure and mitigate discrimination in datasets where multiple
protected attributes are present. In our first contribution, we provide a comprehensive categorization
of discrimination measuring methods. Besides introducing new measures for some of these cases, we
also categorize existing measures from the literature. Some of the listed measures specifically address
intersectional discrimination and non-binary groups. The second contribution deals with bias mitigation.
For this, we use our published pre-processing framework, FairDo [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ], that is fairness-agnostic. The
fairness-agnostic property makes it possible to define any discrimination measure that should be
      </p>
      <p>Color
e
p
a
h
S
r
o
l
o
C
e
p
a
h
S</p>
      <p>
        Non-intersectional
minimized. By implementing the introduced measures, we can therefore mitigate biases for multiple
protected attributes. Another advantage of FairDo is that it preserves data integrity and does not
modify the features of individuals during the optimization process, unlike other methods [
        <xref ref-type="bibr" rid="ref14 ref3 ref7">14, 3, 7</xref>
        ].
      </p>
      <p>
        We evaluated our methodology on popular tabular datasets with fairness concerns, such as Adult [
        <xref ref-type="bibr" rid="ref15">15</xref>
        ],
Bank [
        <xref ref-type="bibr" rid="ref16">16</xref>
        ], and COMPAS [
        <xref ref-type="bibr" rid="ref17">17</xref>
        ]. We used diferent discrimination measures to evaluate the efectiveness of
the bias mitigation process. Because a successful mitigation process does not guarantee that the outcomes
of machine learning models are fair, we trained machine learning models on the transformed datasets
and evaluated their predictions regarding fairness and performance. The code for the experiments can
be found in the accompanying repository: https://github.com/mkduong-ai/fairdo/evaluation.
      </p>
      <p>
        The results of the bias mitigation process as well as the performance of the machine learning models
are promising. They indicate that achieving fairness in datasets with multiple protected attributes
is possible, and FairDo is a proper framework for this task. Overall, our work contributes technical
solutions for stakeholders to enhance the fairness of datasets and machine learning models, aiming for
compliance with the AI Act [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ].
      </p>
    </sec>
    <sec id="sec-2">
      <title>2. Preliminaries</title>
      <p>
        To handle multiple protected attributes, we define  = {1, . . . , } as a set of protected attributes. It
can represent the set of sociodemographic features such as age, gender, and ethnicity. These factors
may make individuals vulnerable to discrimination. Each protected attribute  ∈  is formally a
discrete random variable that can take on values from the sample space . In this context, we refer 
to groups that describe distinct social categories of a protected attribute. For example, let  represent
gender; then  is a set containing the genders male, female, and non-binary. To avoid limitations to a
particular group fairness notion, we introduce a generalized notation based on the works of Žliobaitė
[
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], Duong and Conrad [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] in the following.
      </p>
      <p>Definition 2.1 (Treatment). Let 1, 2 be events and  be a random variable that can take on values
from , then we call the conditional probability</p>
      <p>(1 | 2,  = )
treatment, where  ∈ . 1 describes some favorable outcome, such as getting accepted for a job, while 2
often represents some additional information about the individual, such as their qualifications.
Definition 2.2 (Fairness Criteria). With the definition of treatment, we can define fairness criteria that
demand equal treatment for diferent groups. Let  (1 | 2,  = ) and  (1 | 2,  = ) be
treatments, then we call the following equation:</p>
      <p>(1 | 2,  = ) =  (1 | 2,  = )
a fairness criterion, for all ,  ∈ .</p>
      <p>
        Definition 2.2 allows us to define various group fairness criteria, including statistical parity [
        <xref ref-type="bibr" rid="ref18">18</xref>
        ],
predictive parity [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ], equality of opportunity [
        <xref ref-type="bibr" rid="ref19">19</xref>
        ], etc. They all demand some sort of equal outcome for
diferent groups and can be defined by configuring the events 1, 2. For instance, statistical parity [
        <xref ref-type="bibr" rid="ref18">18</xref>
        ]
requires that two diferent groups have an equal probability of receiving a favorable outcome ( = 1).
Example 2.1 (Statistical Parity [
        <xref ref-type="bibr" rid="ref18">18</xref>
        ]). To define statistical parity for the attribute  using our notation,
we set 1 := ( = 1) and 2 := Ω. By setting 2 to the sample space Ω, we compare the probabilities of
the event  = 1 across diferent groups without conditioning on any additional event:
 ( = 1 | Ω,  = ) =  ( = 1 | Ω,  = )
⇐⇒  ( = 1 |  = ) =  ( = 1 |  = ),
where ,  ∈  represent diferent groups.
      </p>
      <p>
        In real-world applications, achieving equal probabilities for certain outcomes is not always possible.
Due to variations in sample sizes in the groups, it is common to yield unequal treatments, even when
they are similar. Thus, existing literature [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] uses the absolute diference to quantify the strength of
discrimination.
      </p>
      <p>Definition 2.3 (Disparity). Let  (1 | 2,  = ) and  (1 | 2,  = ) be two treatments, then we
refer to</p>
      <p>(, , 1, 2) = | (1 | 2,  = ) −  (1 | 2,  = )|
as the disparity, for all ,  ∈ . Trivially,   is commutative regarding , . In practice, it prevents
reverse discrimination due to the absolute value.</p>
      <p>Definition 2.4 (Discrimination). We use  : D → R to denote some discrimination measure that quantifies
the discrimination inherent in any dataset  ∈ D. A dataset  consists of features, protected attributes,
and labels for each individual. The explicit form of  depends on the cases introduced in Section 3.</p>
    </sec>
    <sec id="sec-3">
      <title>3. Measuring Discrimination for Multiple Attributes</title>
      <p>
        We found that numerous scenarios arise when dealing with multiple protected attributes. We categorize
these scenarios based on the number of groups, denoted as ||, and the number of protected attributes,
denoted as ||. By going through all cases, we present possible approaches from the literature as well
as our own suggestions to measure discrimination.
3.1. Single Protected Attribute (|| = 1)
In the case of having only one protected attribute, i.e., || = |{1}| = 1, we distinguish between
cases by the number of available groups || in the dataset. We categorize the cases by || = 0, 1, 2, and
|| &gt; 2.
3.1.1. No Groups (|| = 0)
When there are no groups, the measurement of discrimination is impossible if no assumptions are being
made. Discrimination can be assessed through proxy variables [
        <xref ref-type="bibr" rid="ref20">20</xref>
        ]; however, this approach can be
imprecise and may introduce new biases. This case is equivalent to having no protected attribute, i.e.,
|| = 0.
3.1.2. Single Group (|| = 1)
Similarly to the case of having no groups, discrimination cannot be measured when having only one
group. For this, we propose practices where prior information can be incorporated:
1. No discrimination: As no diference towards any other group can be measured, returning a
discrimination score of 0 is one viable option.
      </p>
      <p>() = 0.
2. Diference to optimal treatment : Another way is to return the absolute diference of the group’s
outcome to the optimal treatment. For example, group  has an 80% chance of receiving the
favorable treatment. Ideally, having a 100% chance would represent the optimal scenario. Therefore,
the discrimination score is 20% in this case. It is given by:</p>
      <p>() = | (1 | 2, 1 = ) − 1|.
3. Diference to expected treatment : We can use the expected treatment as a reference point. For
example, we know that a company has a 50% acceptance rate for job applications. Now a machine
learning classifier is trained to predict whether an applicant will be accepted and the model’s
predictions result in a 60% acceptance rate for group . Hence, the model is positively biased
towards group  by 10%. This can be formulated as:</p>
      <p>() = | (1 | 2, 1 = ) − expect.|,
where expect. is the expected treatment. It can describe the average treatment across all groups [21]
or some other prior information that is not included in the dataset.
(1)
(2)
(3)
(4)
(5)
(6)
 () =</p>
      <p>max   (, , 1, 2)
,∈,&lt;
= max  (1 | 2,  = ) − ∈</p>
      <p>min  (1 | 2,  = ).</p>
      <p>
        ∈
Equation (5) describes the maximum discrimination obtainable between two groups. An alternative and
equivalent formulation is given in Equation (6) [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]. The latter is computationally more eficient as it
requires (2||) operations compared to (||2) operations for the former.
3.1.3. Binary Groups (|| = 2)
Without using any prior information, we can calculate the discrimination score by taking the absolute
diference between the treatments of the two groups, as advised by Žliobait ė [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. The discrimination
measure  is then simply given by the disparity as mentioned in Definition 2.3.
3.1.4. Non-binary Groups (|| &gt; 2)
While the case for binary attributes is straightforward, it becomes non-trivial for non-binary attributes
that arise naturally in real-world data. We can fall back to || = 2 by calculating the absolute diference
between every distinct group ,  ∈ . Because the discrimination between  and  is the same as
between  and , only (︀ ||)︀ pairs need to be compared and we use an aggregation function agg(1) to
2
report the diferences [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. Lum et al. [22] refers to measures that aggregate or summarize discrimination
scores as meta-metrics. The aggregate can be the sum or maximum function, depending on the use case.
The result for a single protected attribute  with two or more groups can be computed as follows:
 () =
      </p>
      <p>
        agg(1)   (, , 1, 2),
,∈,&lt;
where   is the disparity as defined in Definition 2.3 and  &lt;  ensures that each pair is considered
only once (assuming label-encoded groups). According to Žliobaitė [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] and her personal discussions
with legal experts, she advocates using the maximum function, i.e.,
      </p>
      <p>
        A more general approach to measuring discrimination is to calculate some form of correlation
coeficient between the protected attribute and the outcome. The correlation coeficient can be calculated
using Pearson’s correlation [23], Spearman or Kendall’s rank correlation [24, 25]. The discrimination
measure can then be defined as the absolute value of the correlation coeficient:
 () = |Corr(1, )|.
(7)
This approach can be applied to any number of groups. Fairlearn provides a pre-processing method
that removes the correlation between the protected attribute and the outcome by transforming the
data [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]. However, the given approach violates data integrity constraints as categorical attributes are
transformed into continuous values. Moreover, zero correlation does not imply independence between
two variables.
3.2. Multiple Protected Attributes (|| &gt; 1)
There are several ways to measure discrimination for multiple protected attributes (|| &gt; 1). Based
on the works of Kearns et al. [21], Yang et al. [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ] and Kang et al. [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ], we categorize them into two
approaches: intersectional and non-intersectional (see Figure 1). Intersectional approaches consider the
intersection of identities. The overlapping of such identities forms subgroups [21]. Non-intersectional
approaches treat each protected attribute independently [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ].
      </p>
      <sec id="sec-3-1">
        <title>3.2.1. Intersectional Discrimination</title>
        <p>The central idea of intersectionality is that individuals experience overlapping forms of oppression or
privilege based on the combination of multiple social categories they belong to. In the following, we
will introduce definitions to formulate intersectional discrimination, which is based on the work of
Kearns et al. [21].</p>
        <p>Definition 3.1 (Subgroup [21]). Let  = {1, . . . , } be a set of discrete random variables representing
protected attributes that can take on values from corresponding groups 1, . . . , . A subgroup  is defined
as  = (1, . . . , ) ∈ 1 × . . . × . In other words, a subgroup encompasses multiple groups from diferent
protected attributes.</p>
        <p>Definition 3.2 (Subgroup Treatment). Let  be a subgroup as defined in Definition 3.1 and let
{1, . . . , } be a set of discrete random variables. Subgroup treatment is then defined as:
 =
 (1 | 2, 1 = 1, . . . ,  = ).</p>
        <p>Definition 3.3 (Subgroup Disparity). Let  = {1, . . . , } be a set of discrete random variables. Let
,  ∈ 1 × . . . ×  be two subgroups with  = (1, . . . , ) and  = (1, . . . , ). The disparity between
two subgroups is denoted as ^ and is given by:</p>
        <p>^ (, , 1, 2) = | (1 | 2, 1 = 1, . . . ,  = ) −  (1 | 2, 1 = 1, . . . ,  = )|.
Similarly to Equation (4), we can calculate the discrimination score for multiple protected attributes by
aggregating disparities across all subgroups. A subgroup can be treated like a normal group. According
to Definition 3.1, there are theoretically at least 2 subgroups, where  is the number of protected
attributes. However, not all subgroups may be available in the dataset. For unavailable subgroups, the
disparity cannot be calculated as the corresponding treatment is undefined.</p>
        <p>Let us denote the set of available subgroups as avail ⊆ 1 × . . . × . To finally capture the
discrepancies across all available subgroup pairs, an aggregation function agg(1) is applied to the
subgroup disparities ^ :
 intersect() = agg(1) ^ (, , 1, 2).</p>
        <p>,∈avail
(8)
Equation (8) represents the aggregated discrimination between all available subgroups in the dataset.
When using the maximum function as the aggregator, the calculations are equivalent to Equation (5)
and Equation (6). The only diference is that the conditionals are now subgroups instead of groups:
= max  (1 | 2, 1 = 1, . . . ,  = ) − ∈avail</p>
        <p>min  (1 | 2, 1 = 1, . . . ,  = ).</p>
        <p>
          ∈avail
Kang et al. [
          <xref ref-type="bibr" rid="ref13">13</xref>
          ] also dealt with intersectional discrimination in their work by introducing a multivariate
random variable  where each dimension represents a protected attribute. Their fairness objective
is to minimize the mutual information between the outcome and the multivariate random variable.
By minimizing the mutual information, the outcome is independent of the protected attributes, which
is a desirable property for fairness [
          <xref ref-type="bibr" rid="ref14">14, 26</xref>
          ]. In this context, zero mutual information implies the
absence of intersectional discrimination [
          <xref ref-type="bibr" rid="ref13">13</xref>
          ]. However, this approach relies on expensive techniques to
approximate the mutual information. Using our notation, their formulation can be written as [
          <xref ref-type="bibr" rid="ref13">13</xref>
          ]:
 MI() = MI(1, ),
where MI denotes the mutual information.
        </p>
      </sec>
      <sec id="sec-3-2">
        <title>3.2.2. Non-intersectional Discrimination</title>
        <p>The problem with measuring discrimination for intersectional groups is that it has an upward bias
when using meta-metrics [22]. This is because the number of subgroups grows exponentially with the
number of protected attributes. This leads to many subgroups where the number of samples in each
subgroup is possibly small, resulting in larger noise in the treatment estimates [22].</p>
        <p>
          Besides intersectional groups, Yang et al. [
          <xref ref-type="bibr" rid="ref11">11</xref>
          ] listed a non-intersectional definition of groups, called
independent groups. Building on the definition of independent groups, we propose an appropriate
approach to measure discrimination for this type of groups. It is more suitable when dealing with a
large number of subgroups or when intersectional discrimination is not deemed important. Our
nonintersectional approach treats each protected attribute independently and aggregates the discrimination
scores across all protected attributes. For this, a second aggregate function with agg(2) is introduced,
yielding the following equation:
 indep() = agg(2)
∈
{︃
        </p>
        <p>}︃
agg(1)   (, , 1, 2) .</p>
        <p>,∈,&lt;
The first-level aggregator agg(1) aggregates disparities within a protected attribute, considering unique
pairs of groups  and . The second-level aggregator agg(2) then combines the results across all protected
attributes. By applying both operators, we obtain a discrimination measure that captures disparities
between groups across multiple attributes.</p>
        <p>(9)
(10)
(11)
3.2.3. Example
Let us consider a dataset with two protected attributes, age and sex (see Table 1). The set of protected
attributes is  = {1, 2} = {Age, Sex} and the set of available subgroups in the dataset is avail =
{Old, Young} × {</p>
        <p>Male, Female}. We measure discrimination using statistical disparity. For simplicity,
all aggregation functions are set to the maximum function. The intersectional approach yields the
following discrimination score:
max  ( = 1 | 1 = 1, 2 = 2) − ∈avail</p>
        <p>min  ( = 1 | 1 = 1, 2 = 2)
= | ( = 1 | Age = Old, Sex = Male) −  ( = 1 | Age = Young, Sex = Male)| = 1,
(12)
(13)
while the discrimination score for the non-intersectional approach is given by:</p>
        <p>︂{
 indep() = max
∈</p>
        <p>max
,∈,&lt;
  (, , ( = 1), Ω)</p>
        <p>︂}
= max {︀  Age(Old, Young, ( = 1), Ω),  Sex(Male, Female, ( = 1), Ω)}︀
= max{|0.5 − 0.5|, |0.5 − 0.5|} = max{0, 0} = 0.</p>
        <p>The non-intersectional approach yields a discrimination score of 0 because the disparities for both
protected attributes are 0. This is quite diferent from the intersectional approach, which reports a
discrimination score of 1. As seen, the results can difer depending on the approach.</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>4. Experiments</title>
      <p>
        Our experimentation follows a pipeline consisting of data pre-processing, bias mitigation, model training,
and evaluation. To mitigate bias in tabular datasets with multiple protected attributes, we used the
sampling method, FairDo [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ], that constructs fair datasets by selectively sampling data points. The
method is very flexible and only requires the user to define the discrimination measure that should be
minimized. In our case, we are interested in a dataset that has minimal bias across multiple protected
attributes. The experiments revolve around the following research questions:
• RQ1 Is it possible to yield a fair dataset with FairDo, where bias for multiple protected attributes
• RQ2 Are machine learning models trained on fair datasets more fair in their predictions than
is reduced?
those trained on original datasets?
      </p>
      <sec id="sec-4-1">
        <title>4.1. Experimental Setup</title>
        <sec id="sec-4-1-1">
          <title>Datasets and Pre-processing</title>
          <p>
            The tabular datasets employed in our experiments include the
Adult [
            <xref ref-type="bibr" rid="ref15">15</xref>
            ], Bank [
            <xref ref-type="bibr" rid="ref16">16</xref>
            ], and COMPAS [
            <xref ref-type="bibr" rid="ref17">17</xref>
            ] datasets. They are known for their use in fairness research and
contain multiple protected attributes. We pre-processed the datasets by applying one-hot encoding to
categorical variables and label encoding to protected attributes. Table 2 shows important characteristics
of the datasets after pre-processing.
          </p>
          <p>
            Each dataset was divided into training and testing sets using an 80/20 split, respectively. We ensured
that the split was stratified (if possible) based on protected attributes to maintain representativeness
across diferent groups in both sets.
Bias Mitigation Applying the bias mitigation method FairDo [
            <xref ref-type="bibr" rid="ref9">9</xref>
            ] to the datasets can be regarded as
a pre-processing step, too. This is because the method simply returns a dataset that is fair with respect
to the given discrimination measure. FairDo [
            <xref ref-type="bibr" rid="ref9">9</xref>
            ] ofers a variety of options to mitigate bias, and we
chose the undersampling method that removes samples. In this option, the optimization objective is
stated as [
            <xref ref-type="bibr" rid="ref9">9</xref>
            ]:
          </p>
          <p>min  (fair), (14)
fair⊆
where  is the training set of Adult, Bank, or COMPAS, and  is the fairness objective function. We
experimented with both  intersect and  indep as objectives functions. Bias mitigation is only applied to
the training set and the testing set remains unchanged. FairDo internally uses genetic algorithms to
select a subset of the training set that minimizes the objective function. We used the same settings and
operators as provided in the package and only adjusted the population size (200) and the number of
generations (400).</p>
          <p>Model Training We utilized the scikit-learn library [27] to train various machine learning
classifiers, namely Logistic Regression (LR), Support Vector Machine (SVM), Random Forest (RF), and
Artificial Neural Network (ANN). These classifiers were trained on both the original and fair datasets.
Classifiers trained on the original datasets serve as a baseline for comparison. We used the default
hyperparameters given by scikit-learn package for each classifier.</p>
          <p>Evaluation Metrics We evaluated the models’ predictions on fairness and performance using the
test set. For fairness, we assessed  intersect and  indep. For the classifiers’ performances, we report the
area under the receiver operating characteristic curve (AUROC) [28], where higher values indicate better
performances. Because removing data points can compromise the overall quality of the data, we also
report the number of subgroups before and after bias mitigation to check for representativeness.
Trials For each dataset and discrimination measure combination, the bias mitigation process was
repeated 10 times. The results were averaged over the trials to obtain a more robust evaluation.</p>
        </sec>
      </sec>
      <sec id="sec-4-2">
        <title>4.2. Results</title>
        <p>Fair Dataset Generation Table 3 shows the average discrimination before and after mitigating
bias in the training sets. On all datasets, discrimination was reduced after applying FairDo. Without
considering group intersections, discrimination was reduced by 7%, 19%, and 25% for Adult, Bank, and
COMPAS, respectively. When considering intersectionality, the discrimination was reduced by 15%,
18%, and 83%. Hence, discrimination was reduced by 28% on average across all datasets, thus answering
RQ1 positively. When comparing the discrimination scores, it can be observed that the intersectional
discrimination scores are generally higher. This is because in the intersectional setting, more subgroups
are considered, which potentially leads to larger diferences between them [21].</p>
        <p>We also report the number of subgroups before and after bias mitigation to assess the impact of
the undersampling method on the dataset. The removal of subgroups can only be observed in the
intersectional setting. In the COMPAS dataset 5.2 out of 34 subgroups were removed on average,
indicating the largest amount of subgroups removed across all datasets. While the Bank dataset consists
of 48 subgroups, only 1.8 subgroups were removed on average. Because the COMPAS dataset’s initial
intersectional discrimination score is 100%, removing more subgroups seems inevitable to reduce bias.
Model Performance and Fairness Figure 2 shows the results of the classifiers’ performances on
the test set. The classifiers’ performances are displayed on the y-axis, while the discrimination values
are shown on the x-axis. We note that the axes do not share the same scale across the subfigures for
analytical purposes.</p>
        <p>Classifiers trained on fair datasets did not sufer a significant decline in performance compared to
those trained on original datasets. In all cases, only a slight decrease of 1%-3% in performance can be
noted. This indicates that the bias mitigation process does not compromise the dataset’s fidelity and,
therefore, the classifiers’ performances. Regarding discrimination, a significant reduction is evident.
The x-axis scales are much larger than the y-axis scales, suggesting that changes in discrimination
are larger than changes in performance. For example, the RF classifier trained on the Bank dataset
(Figure 2g) shows a decrease in intersectional discrimination from 38% to 15%, while the performance
only decreases by 2%. Similar results can be observed for the other classifiers and datasets as well,
successfully addressing RQ2. The results suggest that FairDo can be reliably used to mitigate bias in
tabular datasets for various measures that consider multiple protected attributes. Still, we advise users
to carefully perform similar analyses when applying the method to their datasets.</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>5. Discussion</title>
      <p>The results of our experiments show that the presented measures detect discrimination in datasets
with multiple protected attributes diferently. When using the intersectional discrimination measure,
more groups are identified and compared to each other. While subgroups are not ignored by this
measure, measuring higher discrimination scores by random chance becomes more likely [21, 22]. In
contrast, treating each protected attribute separately prevents this issue but may lead to overlooking
discrimination. The choice of measure is up to the stakeholders and depends on the context of the dataset
and the regulations that apply to the AI system. We generally recommend using the intersectional
discrimination measure if the number of individuals in each subgroup is large enough to draw statistically
significant conclusions. Otherwise, treating each protected attribute separately is more suitable.</p>
      <p>
        By using the mitigation strategy FairDo [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ], the resulting datasets in the experiments have improved
0.4
      </p>
      <p>
        Discrimination
(a) Adult (LR)
statistical properties regarding fairness. Whether intersectionality was considered or not, reducing
discrimination in datasets was possible. At the current state, the AI Act [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] does not explicitly mention
intersectional discrimination nor how to deal with multiple protected attributes generally. While recital
(67) states that datasets “should [...] have the appropriate statistical properties”, it does not specify what
these properties are. Hence, our work serves as an initial guideline for what these properties could be
and how to achieve them in practice.
      </p>
    </sec>
    <sec id="sec-6">
      <title>6. Conclusion</title>
      <p>Datasets often come with multiple protected attributes, which makes measuring and mitigating
discrimination more challenging. Most existing studies only deal with a single protected attribute, and
works that consider multiple protected attributes often focus on intersectionality. In opposition to
this, we proposed a new non-intersectional measure that treats each protected attribute separately.
This is more suitable when the number of subgroups is too large or the number of individuals in each
subgroup is small. We used both intersectional and non-intersectional measures as objectives and
applied the FairDo framework to mitigate discrimination in multiple datasets. The experiments show
that discrimination was reduced in all datasets and on average by 28%. Machine learning models trained
on the bias-mitigated datasets also improved their fairness while maintaining performance compared
to models trained on the original datasets.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>European</given-names>
            <surname>Commission</surname>
          </string-name>
          ,
          <source>Artificial Intelligence Act, Corrigendum, 19 April</source>
          <year>2024</year>
          , Available online: https://www.europarl.europa.eu/doceo/document/TA-9
          <article-title>-2024-0138-FNL-COR01_EN</article-title>
          .pdf,
          <year>2024</year>
          . Accessed: 17 May
          <year>2024</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <surname>I. Žliobaitė</surname>
          </string-name>
          ,
          <article-title>Measuring discrimination in algorithmic decision making</article-title>
          ,
          <source>Data Mining and Knowledge Discovery</source>
          <volume>31</volume>
          (
          <year>2017</year>
          )
          <fpage>1060</fpage>
          -
          <lpage>1089</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>M. B.</given-names>
            <surname>Zafar</surname>
          </string-name>
          , I. Valera,
          <string-name>
            <given-names>M. Gomez</given-names>
            <surname>Rodriguez</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K. P.</given-names>
            <surname>Gummadi</surname>
          </string-name>
          ,
          <article-title>Fairness beyond disparate treatment &amp; disparate impact: Learning classification without disparate mistreatment</article-title>
          ,
          <source>in: Proceedings of the 26th International Conference on World Wide Web</source>
          ,
          <year>2017</year>
          . doi:
          <volume>10</volume>
          .1145/3038912.3052660.
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>S.</given-names>
            <surname>Corbett-Davies</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            <surname>Pierson</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Feller</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Goel</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Huq</surname>
          </string-name>
          ,
          <article-title>Algorithmic decision making and the cost of fairness</article-title>
          ,
          <source>in: Proceedings of the 23rd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining</source>
          ,
          <year>2017</year>
          , pp.
          <fpage>797</fpage>
          -
          <lpage>806</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>S.</given-names>
            <surname>Barocas</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Hardt</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Narayanan</surname>
          </string-name>
          ,
          <article-title>Fairness and Machine Learning, fairmlbook</article-title>
          .org,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>M.</given-names>
            <surname>Feldman</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S. A.</given-names>
            <surname>Friedler</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Moeller</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Scheidegger</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Venkatasubramanian</surname>
          </string-name>
          ,
          <article-title>Certifying and removing disparate impact</article-title>
          ,
          <source>in: proceedings of the 21th ACM SIGKDD international conference on knowledge discovery and data mining</source>
          ,
          <year>2015</year>
          , pp.
          <fpage>259</fpage>
          -
          <lpage>268</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>S.</given-names>
            <surname>Bird</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Dudík</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Edgar</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Horn</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Lutz</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Milan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Sameki</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Wallach</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Walker</surname>
          </string-name>
          ,
          <article-title>Fairlearn: A toolkit for assessing and improving fairness in AI</article-title>
          ,
          <source>Technical Report MSRTR-2020-32</source>
          , Microsoft,
          <year>2020</year>
          . URL: https://www.microsoft.com/en-us/research/publication/ fairlearn
          <article-title>-a-toolkit-for-assessing-and-improving-fairness-in-ai/.</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>A.</given-names>
            <surname>Agarwal</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Beygelzimer</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Dudík</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Langford</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Wallach</surname>
          </string-name>
          ,
          <article-title>A reductions approach to fair classification</article-title>
          ,
          <source>in: International Conference on Machine Learning, PMLR</source>
          ,
          <year>2018</year>
          , pp.
          <fpage>60</fpage>
          -
          <lpage>69</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>M. K.</given-names>
            <surname>Duong</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Conrad</surname>
          </string-name>
          ,
          <article-title>Towards fairness and privacy: A novel data pre-processing optimization framework for non-binary protected attributes</article-title>
          , in: D.
          <string-name>
            <surname>Benavides-Prado</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          <string-name>
            <surname>Erfani</surname>
            , P. FournierViger,
            <given-names>Y. L.</given-names>
          </string-name>
          <string-name>
            <surname>Boo</surname>
            ,
            <given-names>Y. S.</given-names>
          </string-name>
          Koh (Eds.),
          <source>Data Science and Machine Learning</source>
          , Springer Nature Singapore, Singapore,
          <year>2024</year>
          , pp.
          <fpage>105</fpage>
          -
          <lpage>120</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>J. R.</given-names>
            <surname>Foulds</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Islam</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K. N.</given-names>
            <surname>Keya</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Pan</surname>
          </string-name>
          ,
          <source>Bayesian Modeling of Intersectional Fairness: The Variance of Bias</source>
          ,
          <year>2020</year>
          , pp.
          <fpage>424</fpage>
          -
          <lpage>432</lpage>
          . doi:
          <volume>10</volume>
          .1137/1.9781611976236.48.
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>F.</given-names>
            <surname>Yang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Cisse</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Koyejo</surname>
          </string-name>
          ,
          <article-title>Fairness with overlapping groups</article-title>
          ,
          <source>in: Proceedings of the 34th International Conference on Neural Information Processing Systems</source>
          , NIPS '20, Curran Associates Inc.,
          <string-name>
            <surname>Red</surname>
            <given-names>Hook</given-names>
          </string-name>
          ,
          <string-name>
            <surname>NY</surname>
          </string-name>
          , USA,
          <year>2020</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>L. E.</given-names>
            <surname>Celis</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Huang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Keswani</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N. K.</given-names>
            <surname>Vishnoi</surname>
          </string-name>
          ,
          <article-title>Fair classification with noisy protected attributes: A framework with provable guarantees</article-title>
          , in: M.
          <string-name>
            <surname>Meila</surname>
          </string-name>
          , T. Zhang (Eds.),
          <source>Proceedings of the 38th International Conference on Machine Learning</source>
          , volume
          <volume>139</volume>
          <source>of Proceedings of Machine Learning Research, PMLR</source>
          ,
          <year>2021</year>
          , pp.
          <fpage>1349</fpage>
          -
          <lpage>1361</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>J.</given-names>
            <surname>Kang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Xie</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Wu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Maciejewski</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Tong</surname>
          </string-name>
          , Infofair: Information-theoretic intersectional fairness,
          <source>2022 IEEE International Conference on Big Data (Big Data)</source>
          (
          <year>2021</year>
          )
          <fpage>1455</fpage>
          -
          <lpage>1464</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <given-names>R.</given-names>
            <surname>Zemel</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Wu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Swersky</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Pitassi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Dwork</surname>
          </string-name>
          ,
          <article-title>Learning fair representations</article-title>
          ,
          <source>in: International conference on machine learning, PMLR</source>
          ,
          <year>2013</year>
          , pp.
          <fpage>325</fpage>
          -
          <lpage>333</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [15]
          <string-name>
            <given-names>R.</given-names>
            <surname>Kohavi</surname>
          </string-name>
          ,
          <article-title>Scaling up the Accuracy of Naive-Bayes Classifiers: A Decision-Tree Hybrid</article-title>
          ,
          <source>KDD'96</source>
          , AAAI Press,
          <year>1996</year>
          , p.
          <fpage>202</fpage>
          -
          <lpage>207</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          [16]
          <string-name>
            <given-names>S.</given-names>
            <surname>Moro</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Cortez</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Rita</surname>
          </string-name>
          ,
          <article-title>A data-driven approach to predict the success of bank telemarketing, Decision Support Systems 62 (</article-title>
          <year>2014</year>
          )
          <fpage>22</fpage>
          -
          <lpage>31</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          [17]
          <string-name>
            <given-names>J.</given-names>
            <surname>Larson</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Angwin</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Mattu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Kirchner</surname>
          </string-name>
          , Machine bias,
          <year>2016</year>
          . URL: https://www.propublica.org/ article/machine-bias
          <article-title>-risk-assessments-in-criminal-sentencing.</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          [18]
          <string-name>
            <given-names>T.</given-names>
            <surname>Calders</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Kamiran</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Pechenizkiy</surname>
          </string-name>
          ,
          <article-title>Building classifiers with independency constraints</article-title>
          ,
          <source>in: 2009 IEEE International Conference on Data Mining Workshops</source>
          ,
          <year>2009</year>
          , pp.
          <fpage>13</fpage>
          -
          <lpage>18</lpage>
          . doi:
          <volume>10</volume>
          .1109/ ICDMW.
          <year>2009</year>
          .
          <volume>83</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          [19]
          <string-name>
            <given-names>M.</given-names>
            <surname>Hardt</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            <surname>Price</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Srebro</surname>
          </string-name>
          ,
          <article-title>Equality of opportunity in supervised learning</article-title>
          ,
          <source>Advances in neural information processing systems</source>
          <volume>29</volume>
          (
          <year>2016</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref20">
        <mixed-citation>
          [20]
          <string-name>
            <given-names>N.</given-names>
            <surname>Mehrabi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Morstatter</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Saxena</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Lerman</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Galstyan</surname>
          </string-name>
          ,
          <article-title>A survey on bias and fairness in</article-title>
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>