Skip to main content
QUICK REVIEW

[Paper Review] Fair Normalizing Flows

Mislav Balunović, Anian Ruoss|arXiv (Cornell University)|Jun 10, 2021
Adversarial Robustness in Machine LearningComputer Science5 citations
TL;DR

Fair Normalizing Flows (FNF) is a novel method for learning fair representations by modeling encoders as normalizing flows that minimize statistical distance between latent distributions of sensitive groups. By enabling exact likelihood computation, FNF provides provable upper bounds on adversarial accuracy (≤ (1+∆)/2), ensuring sensitive attributes cannot be recovered beyond random chance, while maintaining high utility for downstream tasks.

ABSTRACT

Fair representation learning is an attractive approach that promises fairness of downstream predictors by encoding sensitive data. Unfortunately, recent work has shown that strong adversarial predictors can still exhibit unfairness by recovering sensitive attributes from these representations. In this work, we present Fair Normalizing Flows (FNF), a new approach offering more rigorous fairness guarantees for learned representations. Specifically, we consider a practical setting where we can estimate the probability density for sensitive groups. The key idea is to model the encoder as a normalizing flow trained to minimize the statistical distance between the latent representations of different groups. The main advantage of FNF is that its exact likelihood computation allows us to obtain guarantees on the maximum unfairness of any potentially adversarial downstream predictor. We experimentally demonstrate the effectiveness of FNF in enforcing various group fairness notions, as well as other attractive properties such as interpretability and transfer learning, on a variety of challenging real-world datasets.

Motivation & Objective

  • To address the limitation of existing fair representation learning methods, which fail to prevent strong adversaries from recovering sensitive attributes from latent representations.
  • To provide provable fairness guarantees by ensuring that no downstream predictor can accurately infer sensitive attributes from learned representations.
  • To maintain high utility for downstream prediction tasks while enforcing fairness through invertible, flow-based encoders.
  • To enable interpretability and algorithmic recourse via the invertibility of the normalizing flow architecture.

Proposed method

  • FNF uses two separate normalizing flow encoders, f0 and f1, to map data from two sensitive groups (a=0 and a=1) into latent spaces with distributions pZ0 and pZ1.
  • The training objective minimizes the statistical distance ∆ between pZ0 and pZ1, ensuring that latent representations from different groups are indistinguishable.
  • Exact likelihood computation in the latent space allows derivation of an upper bound on any adversary’s accuracy: ≤ (1+∆)/2, which is tight for fairness metrics like demographic parity and equalized odds.
  • The invertibility of the flows enables reconstruction of original inputs from latent codes, supporting algorithmic recourse and interpretability.
  • Density estimation is used to approximate the true input distributions p0 and p1 when they are unknown, with theoretical guarantees extending to the estimated distributions.
  • The method is orthogonal to flow architecture, allowing integration with advances in normalizing flows such as RealNVP and Neural Spline Flows.

Experimental results

Research questions

  • RQ1Can we learn fair representations that provably prevent any adversary from recovering sensitive attributes, beyond the limitations of standard adversarial training?
  • RQ2How can exact likelihood computation in normalizing flows be leveraged to derive tight, provable bounds on adversarial fairness?
  • RQ3To what extent does FNF maintain high utility for downstream prediction tasks while enforcing fairness?
  • RQ4Can FNF support algorithmic recourse and interpretability through invertible representations?
  • RQ5How robust are the fairness guarantees when using estimated input densities instead of true distributions?

Key findings

  • FNF reduces the statistical distance ∆ between group latent distributions to as low as 0.23 (γ=0.90) on the Crime dataset, significantly limiting adversarial recovery of sensitive attributes.
  • With ∆≈0.23, the upper bound on adversarial accuracy is ≤ (1+0.23)/2 = 0.615, meaning no adversary can outperform random guessing by more than 11.5 percentage points.
  • On the Law School dataset, FNF enables algorithmic recourse by identifying feature changes (e.g., increasing LSAT by 4.2–7.7 points) that would lead to a favorable decision, with results stratified by race.
  • Transfer learning with FNF preserves fairness: the statistical distance dropped from 0.99 to 0.31 on the Health Heritage Prize dataset, with minimal accuracy drop (73.8% to 73.1%) on the primary condition group.
  • FNF maintains high downstream accuracy (e.g., 85% on Crime dataset with RealNVP, 85% with NSF) while enforcing fairness, demonstrating utility-fairness trade-offs are favorable.
  • The method achieves comparable performance across different flow architectures (RealNVP and NSF), indicating robustness to architectural choices.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.