On the Privacy Risks of Algorithmic FairnessOn the Privacy Risks of Algorithmic Fairness
The authors use membership inference attacks to analyze fair machine learning, stating that fairness constraints come at a privacy cost, and that the cost is concentrated in disadvantaged subgroups.
- Fairness constraints change the influence of training data points on the model; the authors ask: does achieving group fairness have a privacy cost, and how is the cost distributed across different subgroups.
- Privacy risk is quantified using membership inference attacks; an attack that sets loss thresholds separately per subgroup is proposed; and the privacy risk and memorization of fair models versus unconstrained models are compared on synthetic and real data.
- The authors report that the fair model's privacy risk rises on disadvantaged subgroups, e.g., on synthetic data the attack accuracy on the G0- subgroup reaches 69.2% (Table 2); the greater the data bias and the stronger the fairness constraint, the higher the cost.
- The paper does not specifically discuss limitations; the experiments cover only synthetic data and three real datasets, neural networks and decision trees, two types of fairness algorithms (reductions and post-processing), and privacy risk is estimated using the optimal threshold.
- Threat model
- The attacker accesses the model in a black-box manner and can query the model's loss on arbitrary inputs; the goal is to infer whether a data point is in the training set (membership inference); the attacker knows the labels and protected attributes of data points and uses a separate loss threshold for each subgroup; the victim system is a classification model trained with fairness constraints.
- Evaluated models
- fully connected neural network (NN)decision tree (DT)
- Benchmarks
- synthetic Gaussian dataLaw SchoolBank MarketingCOMPAS
- Metrics
- privacy risk (membership inference attack accuracy)fairness gap ∆train/test accuracymemorization
The paper studies the impact of group fairness (such as equalized odds) constraints on the privacy of model training data, and the authors state that fairness comes at the cost of privacy. The authors measure information leakage through membership inference attacks, and state that fair models have significantly increased information leakage on the unprivileged subgroup, and that the greater the bias in the training data, the higher the privacy cost of achieving fairness for the unprivileged subgroup. The study conducts an empirical analysis of general machine learning algorithms.
Paper analysis
What problem does this paper attempt to solve?
The authors ask whether achieving group fairness has a privacy cost, and use membership inference attacks to quantify how this cost is distributed across subgroups.
Core question: Does forcing a model to satisfy group fairness constraints change the model's privacy leakage about the training data, and is this cost distributed unequally across subgroups?
- Problem setting: Using applications such as recidivism prediction as examples, the authors point out that fairness and privacy are both needed; prior work has shown that differential privacy harms fairness (with a greater impact on accuracy for disadvantaged subgroups), and the authors pose the complementary question: whether fairness comes at the cost of privacy.
- Shortcomings of existing methods: The authors state that existing membership inference attacks use a single global threshold (e.g., a loss threshold) for all data points, which is suboptimal because different subgroups have different data distributions and the model's generalization behavior differs across subgroups.
- Core observation and hypothesis: Fairness constraints force the model to have equal error rates across subgroups; when a disadvantaged subgroup has few samples or is hard to fit, the fair model memorizes the training data of these subgroups rather than learning general patterns, making it more susceptible to membership inference.
- Paper contributions: Proposes a membership inference attack that sets thresholds separately per subgroup, and empirically analyzes the privacy cost of fairness (e.g., equalized odds) on synthetic data and three real datasets: Law School, Bank Marketing, and COMPAS.
- Threat model:
- Goal: Infer whether a given data point is in the model's training set (membership inference).
- Knowledge: black-box access, can only observe model predictions/loss, cannot see parameters or gradients; knows the labels and protected attributes of data points.
- Capability: Can query the model's loss on arbitrary inputs, and selects the optimal loss threshold for each subgroup (the authors state this gives a privacy risk estimate under the strongest attack).
- Victim system: Classification models trained with fairness constraints via the reductions method (neural networks on synthetic data, decision trees on real data).
What related research exists?
Related work covers four lines: algorithmic fairness, membership inference attacks, the interaction between privacy and fairness, and differentially private fair learning.
Algorithmic fairness
- Fairness definitions and training methods: the paper cites metric parity across sensitive groups (Calders et al. 2009; Hardt et al. 2016), individual fairness (Dwork et al. 2012), and causality-based metrics (Kusner et al. 2017); training techniques fall into three categories: pre-processing (Zemel et al. 2013; Madras et al. 2018), in-processing (Agarwal et al. 2018; Kamishima et al. 2011; Zafar et al. 2015/2017; Zhang et al. 2018) and post-processing (Hardt et al. 2016).
Membership inference attacks
- Attack methods: Shokri et al. 2017, Yeom et al. 2018, Salem et al. 2018, Nasr et al. 2019 and others propose attacks that determine whether a data point is in the training set; they have been used to measure information leakage of classification, adversarially robust learning, model explanation, embedding and reinforcement learning algorithms.
- Group differences in privacy risk: Shokri et al. 2017 and Yaghini et al. 2019 point out that leakage varies by class/group; Long et al. point out that even when average risk is low, the risk for individual records can still be high; Tonni et al. 2020 study the effect of data balance on the privacy risk of unconstrained models. The paper states that these results are consistent with its findings on unconstrained models, but this paper focuses on the effect of fairness constraints on subgroup and individual privacy risk.
Interaction between privacy and fairness
- Dwork et al. 2012 explore the relationship between fairness and differential privacy; Ekstrand et al. 2018 raise multiple open questions about the relationship between the two, and the authors state that this paper answers one of them.
- Kuppam et al. 2019 and Bagdasaryan et al. 2019: the latter shows that when an unconstrained model is unfair, applying DP-SGD exacerbates the unfairness (the direction in which privacy harms fairness).
Differentially private fair learning
- Several works propose algorithms that satisfy both differential privacy and fairness (demographic parity in Ding et al. 2020 and Xu et al. 2019; equal opportunity in Cummings et al. 2019; equalized odds etc. in Jagielski et al. 2019 and Tran et al. 2020). The paper points out that the differential privacy in Jagielski et al. and Tran et al. protects sensitive attributes rather than membership, and that model accuracy drops substantially; Cummings et al. 2019 give a theoretical result that pure differential privacy and exact fairness cannot be satisfied simultaneously.
Positioning: the authors state that this paper is complementary to the above work—rather than analyzing the compatibility of differential privacy and fairness, it uses an adversarial method (membership inference attacks) to quantify the privacy cost of fairness constraints themselves, and reveals its unequal distribution across subgroups.
How does the paper address this problem?
The authors formalize privacy risk as the success rate of membership inference attacks, propose an attack that sets thresholds per subgroup, and use it to compare fair and unconstrained models.
Overall approach: define privacy risk as the success rate of membership inference attacks, design a stronger attack that sets loss thresholds separately per subgroup, and then use it to measure the increment in privacy risk (privacy cost) of fair models relative to unconstrained models on each subgroup.
Problem formalization
- Individual privacy risk: PR(z, A, D) = maxA Pr[Attack Game outputs 1], i.e., the probability that the strongest attacker wins the membership inference game, equivalent to the average of the attacker's true positive rate and true negative rate.
- Subgroup privacy risk: the expected individual privacy risk within subgroup Gyg (protected attribute g, label y); privacy cost is defined as the difference in privacy risk between the fair model and the unconstrained model.
- Fairness definition: a relaxed version of equalized odds (Definition 1): the difference between the false positive rate and false negative rate across groups does not exceed δ, where ∆ is the fairness gap and δ is the enforced fairness level; equal opportunity (EOPP) and false-positive parity (FPP) are also evaluated.
Subgroup-wise membership inference attack
- Attack design: set an independent loss threshold τ(g,y) for each subgroup Gyg: query the model to obtain the loss, and classify as a member if below the threshold. The authors state that a single global threshold is suboptimal because the distributions of subgroups differ.
- Threshold selection: the attacker can compute thresholds based on population knowledge or shadow models; in the experiments the threshold that best separates members from non-members is chosen directly, which the authors state approximates privacy risk under the strongest attack.
Fair model training
- Algorithm: use the reductions method (Agarwal et al. 2018, fairlearn implementation) for in-processing fair training, producing a randomized classifier, with expected accuracy computed in the analysis; a post-processing method (Hardt et al. 2016) is also compared.
- Fairness constraint settings: on synthetic data, δ ∈ {0.1, 0.01, 0.001}; on real data, the same three δ levels are used.
Memorization measure
- Definition: following the measure of Feldman 2020—the difference in model loss between when a data point is in the training set and when it is not—used to explain why fair models leak more.
Experimental subjects
- Synthetic data: 2,500 records, four subgroups generated from different Gaussian distributions, P0=0.2, P0-=0.1, P1-=0.5, with G0- the smallest subgroup; train a 3-hidden-layer (32/16/8) fully connected network with Adam, learning rate 0.001; 50% train, 50% test, repeated 30 times and averaged.
- Real data: Law School (16,672 records, 19 features), Bank Marketing (24,391 records, 58 features), COMPAS (4,302 records, 11 features), preprocessed as in IBM AI Fairness 360; train decision trees (maximum depth 5/10/15), 50/50 split, repeated 20 times and averaged.
What experiments did the paper conduct?
Experiments on synthetic data and three real datasets show that fairness constraints raise the privacy risk of disadvantaged subgroups, and that the greater the bias and the stronger the constraint, the higher the cost.
Experimental Setup
- Models tested: on synthetic data, a 3-hidden-layer fully connected neural network; on real data, decision trees (max depth 5/10/15), each trained in an unconstrained version and a reductions fair version.
- Datasets: synthetic Gaussian data (2,500 records); Law School (16,672 records), Bank Marketing (24,391 records), COMPAS (4,302 records), each split by two protected attributes (COMPAS and Law each have race/gender versions, Bank uses age).
- Attacks and metrics: privacy risk = membership inference attack accuracy (two attacks: single threshold and subgroup-wise threshold); also reported are fairness gap ∆, training/test accuracy, and memorization.
- Number of repetitions: synthetic data averaged over 30 runs; real data averaged over 20 runs.
- Review method: no LLM or human review; privacy risk is computed directly from attack accuracy.
Main Results
Privacy risk of the subgroup-threshold attack on synthetic data (per Table 2, δ=0.001):
Swipe horizontally to read the table
Model Attack G0- G1- G0+ G1+ Unconstrained Single 52.9% 51.2% 51.8% 51.2% Unconstrained Group-based 61.8% 52.8% 52.4% 52.2% Fair (δ=0.001) Single 60.8% 51.9% 51.6% 50.8% Fair (δ=0.001) Group-based 69.2% 53.4% 52.5% 51.6% - Group-based attack is stronger: the authors say setting thresholds by subgroup raises attack accuracy in all settings, thereby estimating privacy risk more accurately.
- Cost concentrated in disadvantaged subgroups: Figure 1 shows the mean individual privacy cost is 0.069 for G0- and −0.015, −0.02, −0.02 for the other subgroups; the authors say fairness constraints mainly raise the privacy risk of the disadvantaged subgroup G0-.
- Holds on real data too: in Table 7, on Bank (age) the privacy risk gap between subgroups rises from 0.131 to 0.186; on Law (race) the privacy risk of the disadvantaged subgroup G1- rises from 0.711 to 0.818.
Mechanism Analysis: Memorization
- What was measured: memorization of each subgroup's training data (loss difference between in and out of the training set) and training accuracy were compared between fair and unconstrained models.
- Results: fairness constraints raise G0- training accuracy from 50.1% to 78.8% (Figure 4a); the fair model's memorization on G0- is 0.58, which the authors say is twice that of the unconstrained model (Figure 4b); memorization and privacy risk for other subgroups are almost unchanged.
- Authors' interpretation: the fair model equalizes error rates by memorizing disadvantaged subgroup data (rather than learning general patterns), which the authors call "privacy unfairness"; Figure 5 shows a correlation between the training accuracy gain and the privacy cost (true positive rate difference) on G0-.
Experiments on Influencing Factors
- Enforced fairness level δ: Figure 6 shows that the smaller δ is (the stronger the constraint), the higher the privacy risk and training accuracy of G0-; Figure 7 shows that the smaller δ is, the greater the memorization.
- Underlying degree of unfairness: Figure 8 shows that the larger the fairness gap ∆ of the unconstrained model, the greater the privacy cost of G0-; the authors say the more a fairness mechanism is needed, the higher the privacy cost.
- Data scale: Figure 9 shows that the smaller the proportion of the disadvantaged subgroup or the group it belongs to, the higher the privacy cost; when the total training set size increases (with the proportion unchanged), the privacy risk of G0- decreases.
Other Ablations and Analyses
- Comparison of fairness algorithms (Table 3): post-processing (δ=0) does not improve G0- fitting, and its privacy risk of 0.55 is lower than the unconstrained model's 0.639, which the authors attribute to underfitting.
- Comparison of fairness definitions (Table 4): the patterns are similar under the three definitions EO, EOPP and FPP, e.g., under FPP the G0- privacy risk is 0.679 (unconstrained 0.607).
- Model complexity (Table 9, Law (race)): on DT-5 fairness constraints hardly increase privacy risk (test accuracy is close to random, G0- drops from 33.4% to 13.3%); on DT-15 the fair model's privacy risk on G1- reaches 0.955 (unconstrained 0.874).
- Exceptions: on COMPAS (gender) the privacy cost is small, which the authors say is because under this attribute the unconstrained model's fairness gap is only 0.095, so the constraint has little effect; on Law (gender) the unconstrained fairness gap is small (0.031) but the G1- privacy cost reaches 0.064, which the authors think may be because this subgroup has too few samples (2.5% in Table 5), so the fair model can only memorize.
What are some points that can be further explored?
The paper does not specifically discuss limitations; the experiments cover synthetic data and three real datasets, two types of models and two types of fairness algorithms.
Limitations and future directions noted by the authors
- The paper does not specifically discuss limitations; the Conclusion (Section 6) only summarizes the findings and does not list explicit future work.
- The main text mentions that the attacker can obtain the optimal threshold only when knowing the training set, and that using the optimal threshold for measurement is to estimate the privacy risk under the strongest attack (Section 3.2), which can be regarded as a conditional note on how the attack is estimated.
Scope of experiments
- Models evaluated: 3-hidden-layer fully connected neural networks on synthetic data; decision trees (max depth 5/10/15) on real data; two types of models in total.
- Datasets: synthetic Gaussian data (2,500 records) and three real datasets: Law School, Bank Marketing, and COMPAS; protected attributes cover race, gender, and age.
- Fairness algorithms: in-processing reductions method (main analysis) and post-processing method (comparison in Table 3); fairness definitions cover equalized odds, equal opportunity, and false-positive parity (Table 4).
- Attack settings: black-box loss threshold attack, in two variants: single threshold and per-subgroup threshold; thresholds are set to optimal (attacker knows the training set); the paper does not report numbers under weaker attacks such as shadow models.
- Number of repetitions: averaged over 30 runs on synthetic data and 20 runs on real data; the paper does not report statistical significance tests.
Summarize the main content of the paper
The authors quantify the privacy cost of fairness using subgroup-wise membership inference attacks, and report that the cost is concentrated in disadvantaged subgroups and increases with bias and constraint strength.
A work analyzing the privacy risk of fair machine learning: the authors ask whether achieving group fairness has a privacy cost, and how the cost is distributed across subgroups.
- Method: privacy risk is formalized as membership inference attack success rate; a stronger attack that sets a separate loss threshold for each subgroup is proposed, and fair and unconstrained models are compared on synthetic data (neural network) and on Law School, Bank Marketing, COMPAS (decision trees).
- Attack effectiveness: on synthetic data, the subgroup-wise threshold raises the attack accuracy on the disadvantaged subgroup G0- of the fair model (δ=0.001) from 60.8% with a single threshold to 69.2% (Table 2).
- Unequal cost: the mean individual privacy cost is 0.069 for G0- and about −0.02 for the other subgroups (Figure 1); on real data, the privacy risk gap between subgroups on Bank (age) widens from 0.131 to 0.186, and on Law (race) the disadvantaged subgroup's privacy risk rises from 0.711 to 0.818 (Table 7).
- Mechanism: the authors say the fair model equalizes error rates by memorizing disadvantaged subgroup data—G0- training accuracy rises from 50.1% to 78.8%, and memorization of 0.58 is about twice that of the unconstrained model (Figure 4).
- Patterns: the larger the unconstrained model's fairness gap, the smaller the enforced fairness level δ, and the fewer samples in the disadvantaged subgroup, the higher the privacy cost; low-complexity models (DT-5) have almost no cost, while high-complexity models (DT-15) have the largest cost.
- Authors' conclusion: fairness comes at the cost of privacy, and the cost falls disproportionately on the disadvantaged subgroups that most need fair learning, which the authors call "privacy unfairness".