Abstract
How can we learn a classifier that is "fair" for a protected or sensitive group, when we do not know if the input to the classifier belongs to the protected group? How can we train such a classifier when data on the protected group is difficult to attain? In many settings, finding out the sensitive input attribute can be prohibitively expensive even during model training, and sometimes impossible during model serving. For example, in recommender systems, if we want to predict if a user will click on a given recommendation, we often do not know many attributes of the user, e.g., race or age, and many attributes of the content are hard to determine, e.g., the language or topic. Thus, it is not feasible to use a different classifier calibrated based on knowledge of the sensitive attribute. Here, we use an adversarial training procedure to remove information about the sensitive attribute from the latent representation learned by a neural network. In particular, we study how the choice of data for the adversarial training effects the resulting fairness properties. We find two interesting results: a small amount of data is needed to train these adversarial models, and the data distribution empirically drives the adversary's notion of fairness.
Introduction
Ensuring fairness in machine learning models is a critical challenge, particularly when sensitive attributes like race, gender, or age are unavailable during inference. This occurs frequently in real-world systems, such as recommender engines, where demographic data for new users may be missing. Furthermore, obtaining labels for these sensitive attributes during training can be costly, and protected groups are often underrepresented, leading to unstable de-biasing.
This paper explores adversarial representation learning as a solution. By "scrubbing" sensitive information from a model's internal latent features, we can produce predictions that are independent of protected attributes without requiring those attributes at runtime. Crucially, we demonstrate that the specific subset of data used to train the adversary determines which mathematical definition of fairness the model ultimately satisfies.
Methodology: Adversarial Representation Learning
The proposed approach utilizes a multi-head Deep Neural Network (DNN) architecture designed to decouple target predictions from sensitive attributes. The architecture consists of three primary components:
- Shared Hidden Layer: Generates a latent representation (embedding) of the input data.
- Primary Head: Learns to predict the target label $Y$ (e.g., income level).
- Adversarial Head: Attempts to predict the sensitive attribute $Z$ (e.g., gender) from the shared embedding.
The core mechanism is a negative gradient (implemented via a gradient reversal layer) applied between the adversarial head and the shared hidden layer. While the adversary is optimized for accuracy in predicting $Z$, the shared layer is optimized to make this prediction as difficult as possible. This competition forces the model to learn a representation that preserves task-relevant information while discarding features correlated with the sensitive attribute.
Theoretical Implications of Data Choice
A key contribution of this work is the theoretical link between the adversary's training distribution $S$ and the resulting fairness metric:
- Demographic Parity: If the adversary is trained on data from all target label levels, the model optimizes for equal prediction rates across groups.
- Equality of Opportunity: If the adversary is trained only on data where the true label is positive (e.g., high income), the model optimizes for equal true positive rates.
Furthermore, we find that for the adversary to be effective, it requires a balanced view of the sensitive attribute (e.g., a 50/50 split of male/female examples), even if the underlying dataset is skewed. Using the natural, unbalanced distribution typically leads to instability and diminished fairness gains.
Experimental Results
We evaluated the framework using the UCI Adult dataset, predicting whether an individual's income exceeds $50,000 with gender as the sensitive attribute. The dataset is naturally skewed, with 67% men and a significant ground-truth income disparity.
Efficiency and Data Scarcity
One of the most surprising findings is the minimal amount of labeled sensitive data required. As shown in the figure below, even with as few as 500 examples (approximately 1.5% of the data), the model achieves significant de-biasing as the adversary weight increases. This suggests that adversarial methods are highly robust to data scarcity.
Targeted Fairness and Stability
Experiments confirmed that training the adversary on specific subsets (e.g., "low income" examples) targeted the fairness gap for those specific groups. Additionally, using a balanced distribution for the adversary significantly reduced variance and improved the overall stability of the fairness improvements compared to an unbalanced baseline.
Conclusion
Adversarial representation learning provides a powerful, data-efficient method for building fair models that do not require sensitive attributes at inference. However, practitioners must navigate an inherent trade-off between accuracy and fairness, carefully tuning the adversary weight. Future work will explore extending these techniques to multi-class sensitive attributes and intersectional fairness scenarios.
Summary updated