Simple and Effective Specialized Representations for Fair Classifiers

Alberto Sinigaglia, Davide Sartor, Marina Ceccon, Gian Antonio Susto · DOI

In the pursuit of fair artificial intelligence, researchers often face a difficult choice between unstable adversarial training and computationally intensive mathematical frameworks. A new approach from the University of Padua, presented at NeurIPS, proposes a "third way" that is mathematically grounded, surprisingly simple, and highly effective for learning fair representations.

The Challenge of Fair Representations

When building classifiers for high-stakes decisions—such as hiring or credit approvals—it is critical to ensure they do not discriminate based on sensitive attributes like gender or ethnicity. Simply removing sensitive columns ("Fairness through Unawareness") is insufficient, as other features often act as proxies that leak this information.

To address this, researchers aim to learn fair representations: transformations of data into a latent space where sensitive information is scrubbed while task-relevant information is preserved. However, existing methods suffer from significant drawbacks:

  1. Adversarial Learning (GAN-style): These models are notoriously unstable and highly sensitive to hyperparameter tuning.
  2. Fair Normalizing Flows (FNF): While powerful, these are computationally expensive and often require the sensitive attribute to be known at inference time, which is frequently a privacy violation or impossible in real-world scenarios.

Methodology: FmCF and FmSS

The authors introduce a non-adversarial framework for learning fair representations using two primary methods tailored for different requirements.

1. Fairness matching Characteristic Function (FmCF)

Instead of using an adversary to detect sensitive information, FmCF utilizes the Characteristic Function (CF)—the Fourier transform of a probability density, which acts as a unique "fingerprint" for a distribution.

Overview of the FmCF framework: mapping input $x$ to a latent space $z$ where distributions across sensitive groups are matched to a standard Gaussian via CFD.

The goal is to force the distribution of learned representations for every sensitive group to match a standard Gaussian. By minimizing the Characteristic Function Distance (CFD), the model ensures that the representation is statistically independent of the sensitive attribute without the instability of a minimax game.

2. Fairness matching Sufficient Statistics (FmSS)

For scenarios where full distribution matching is unnecessary, the authors propose a simplified version. They demonstrate that for a Logistic Regression classifier to be fair, it is sufficient to match the mean and variance (the first and second moments) of the distributions. This results in a lightweight loss function based on KL-divergence that provides formal fairness guarantees against linear "attackers."

Key Results and Insights

The proposed methods were evaluated on standard fairness benchmarks, including the Adult, German Credit, and COMPAS datasets.

  • Stability and Efficiency: By replacing adversarial conflict with a direct distance metric (CFD), training becomes significantly more stable. Furthermore, the method is more efficient than Normalizing Flows, as it avoids complex Jacobian calculations.
  • Privacy-Preserving Inference: Unlike state-of-the-art FNF models, this method does not require the sensitive attribute at test time. Once the encoder is trained, it can be deployed independently.
  • Performance: FmCF and FmSS consistently matched or outperformed FNF. On the Adult dataset, the models achieved ~85% accuracy (comparable to unfair models) while reducing "leakage" to near-random levels (dropping attacker accuracy from ~85% to ~51-56%).
Latent space visualizations for Adult and German datasets. Sensitive group distributions (left) overlap significantly, while task labels (right) remain separable.

As shown in the visualizations above, the latent space successfully collapses the differences between sensitive groups ($S=0$ and $S=1$) while maintaining clear separation for the target task labels ($Y=0$ and $Y=1$).

Conclusion and Future Work

This framework demonstrates that specialized, task-specific representations can achieve superior fairness-accuracy trade-offs compared to general-purpose fair representations. While the authors acknowledge challenges in scaling distance-based methods to very high-dimensional data (like high-resolution images), their work establishes a new, stable standard for fair classification in tabular and low-dimensional domains.

Summary updated

BibTeX
@inproceedings{sinigaglia2025simple,
  author = {Alberto Sinigaglia and Davide Sartor and Marina Ceccon and Gian Antonio Susto},
  title = {{Simple and Effective Specialized Representations for Fair Classifiers}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=kYYyEZ1LIX},
}
Figure