Abstract
Machine learning models often inherit biases from training data, leading to discriminatory outcomes. While "fair representations" aim to scrub sensitive attributes, traditional adversarial training lacks formal guarantees against unknown attackers. We present Fair Normalizing Flows (FNF), a framework that leverages the exact likelihood computations of normalizing flows to provide a rigorous upper bound on sensitive information leakage. By minimizing the statistical distance between latent group distributions, FNF ensures that no adversary can recover sensitive attributes beyond a provable limit, while maintaining high utility and enabling algorithmic recourse through model invertibility.
Introduction
The challenge of algorithmic fairness lies in learning representations that preserve task-relevant information while eliminating sensitive features like race or gender. The prevailing paradigm, adversarial training, involves a "cat-and-mouse" game where an encoder attempts to fool a specific discriminator. However, this empirical approach offers no protection against stronger or differently structured adversaries encountered post-deployment. This lack of provable guarantees is a major barrier to AI adoption in regulated sectors such as finance and healthcare.
Methods: The FNF Framework
Fair Normalizing Flows (FNF) addresses this by replacing standard neural encoders with Normalizing Flows (NFs). NFs are a class of generative models that learn a bijective (invertible) mapping between an input space $x$ and a latent space $z$.
The core mechanism involves:
- Exact Likelihoods: Unlike standard deep networks, NFs allow for the exact computation of probability densities in the latent space.
- Statistical Distance Minimization: FNF minimizes the statistical distance ($\Delta$) between the latent distributions of different sensitive groups.
- Provable Fairness Bounds: Because likelihoods are exact, we can mathematically prove that the accuracy of any potential adversary attempting to predict the sensitive attribute $a$ from the representation $z$ is strictly upper-bounded by $(1 + \Delta) / 2$. When $\Delta$ is minimized, the adversary's performance approaches that of a random guess (0.5).
- Differentiable Optimization: Since statistical distance is non-differentiable, FNF uses the symmetrized KL divergence as a proxy during training.
Key Advantages
Beyond provable fairness, the FNF architecture provides several unique benefits:
- Algorithmic Recourse: The invertibility of NFs allows users to understand how changes in their original features would affect their fair representation. For instance, if a loan is denied based on a fair encoding, the model can be inverted to suggest specific actions (e.g., "increase savings") that would lead to approval.
- Training Stability: Unlike the often-unstable minimax optimization of adversarial training, FNF relies on stable likelihood-based objectives, leading to more consistent performance across different initializations.
Key Results
The authors evaluated FNF across five standard benchmarks, including UCI Adult, Compas, and the Health Heritage Prize. The results demonstrate that FNF provides significantly tighter fairness guarantees than traditional methods.
In empirical tests, the theoretical upper bound on adversarial accuracy closely matched the performance of strong, multi-layer perceptron adversaries. Furthermore, FNF achieved a superior fairness-utility tradeoff. On the Health dataset, demographic parity distance was reduced from 0.39 to 0.08 with a minimal 3.9% decrease in classification accuracy.
Conclusion
Fair Normalizing Flows represent a shift from empirical to provable fairness in representation learning. By utilizing the unique properties of invertible mappings, FNF provides a "safety certificate" for data representations. While scaling to high-dimensional data like images remains a challenge due to the complexities of density estimation, FNF offers a robust and interpretable solution for tabular datasets in high-stakes domains.
Summary updated