Abstract
In recent years, a growing body of work has emerged on how to learn machine learning models under fairness constraints, often expressed with respect to some sensitive attributes. In this work, we consider the setting in which an adversary has black-box access to a target model and show that information about this model's fairness can be exploited by the adversary to enhance his reconstruction of the sensitive attributes of the training data. More precisely, we propose a generic reconstruction correction method, which takes as input an initial guess made by the adversary and corrects it to comply with some user-defined constraints (such as the fairness information) while minimizing the changes in the adversary's guess. The proposed method is agnostic to the type of target model, the fairness-aware learning method as well as the auxiliary knowledge of the adversary. To assess the applicability of our approach, we have conducted a thorough experimental evaluation on two state-of-the-art fair learning methods, using four different fairness metrics with a wide range of tolerances and with three datasets of diverse sizes and sensitive attributes. The experimental results demonstrate the effectiveness of the proposed approach to improve the reconstruction of the sensitive attributes of the training set.
Introduction
In the field of "Responsible AI," fairness and privacy are often treated as complementary objectives. We strive for models that do not discriminate (fairness) and do not leak personal data (privacy). However, this research reveals a fundamental tension between these two goals. The authors demonstrate that an adversary can exploit a model's known fairness properties to significantly improve their ability to reconstruct sensitive attributes—such as race or gender—of the individuals in the training dataset.
Methodology: The Reconstruction Correction Attack
The core contribution of this work is a novel attack pipeline called Reconstruction Correction. This method treats fairness not just as a moral property, but as a statistical constraint that acts as an information leak.
The attack operates in two primary stages:
- Baseline Guessing: An adversary uses auxiliary knowledge (like a similar public dataset) to make an initial guess about the sensitive attributes of the training data, assigning a confidence score to each prediction.
- Constraint-Based Correction: The adversary applies Constraint Programming (CP) to "correct" these initial guesses. The CP model identifies the smallest possible changes to the baseline guess that would make the resulting dataset satisfy the target model's fairness constraints (e.g., Statistical Parity).
To ensure the attack is practical for large datasets, the authors developed an Efficient Model for Statistical Fairness. By prioritizing the "flipping" of guesses with the lowest confidence scores, they reduced the search space from exponential ($2^N$) to polynomial complexity ($O(N^4)$), allowing the attack to run in seconds on datasets with tens of thousands of records.
Experimental Setup
The study evaluated the attack across three diverse datasets commonly used in fairness research, each featuring different sensitive attributes and prediction tasks.
The experiments tested four distinct fairness metrics: Statistical Parity (SP), Predictive Equality (PE), Equal Opportunity (EO), and Equalized Odds (EOdds). These metrics cover a wide range of common fairness requirements in machine learning.
Key Insights and Results
The experimental results across all datasets and metrics were consistent, revealing several critical insights:
- Fairness as a Roadmap: Fairness constraints are essentially mathematical equations describing the training data. If a regulator requires a model to follow a specific fairness metric, they are effectively providing an attacker with a template to refine their reconstruction of the training set.
- The Cost of Strictness: There is a clear trend: the more "fair" a model is forced to be (i.e., the lower the allowed unfairness tolerance $\epsilon$), the more accurately the attacker can reconstruct the sensitive attributes. Tighter constraints provide more information to the adversary.
- Agnostic and Robust: The attack works regardless of whether the model was made fair during training (in-processing) or by adjusting outputs afterward (post-processing). Furthermore, even if the specific fairness metric is hidden, an attacker can often estimate it by observing the model's behavior on auxiliary data.
- Performance Gains: The Reconstruction Correction method consistently outperformed baseline attacks, providing an absolute improvement of up to 6% in reconstruction accuracy in some scenarios.
Conclusion
This research highlights a significant privacy risk inherent in current fairness-aware machine learning practices. By demonstrating that fairness constraints can be mathematically exploited to reconstruct sensitive data, the authors call for a more integrated approach to Responsible AI that considers the trade-offs between fairness and privacy. Future work will look into multi-valued sensitive attributes and combining these techniques with membership inference attacks to further explore the boundaries of dataset privacy.
Summary updated