Fair Representation Learning for Continuous Sensitive Attributes using Expectation of Integral Probability Metrics

Insung Kong, Kunwoong Kim, Yongdai Kim · DOI

Introduction

Algorithmic fairness is a critical concern in machine learning, particularly when models influence life-altering decisions. Fair Representation Learning (FRL) seeks to address this by training an encoder to transform raw data into a "fair" feature space $Z$. The objective is to ensure that $Z$ retains as much information as possible for the downstream task while remaining independent of sensitive attributes $S$. While FRL is well-studied for categorical attributes (e.g., binary gender), extending these methods to continuous attributes like age, credit score, or income presents significant theoretical and practical hurdles.

The Challenge of Continuous Attributes

Most existing FRL algorithms rely on comparing distributions across discrete groups. When $S$ is continuous, researchers often resort to "binning"—discretizing the continuous variable into arbitrary intervals. However, binning is fundamentally flawed: the choice of intervals is subjective, and it can lead to significant information loss or "hidden" biases within the bins. Statistically, estimating the conditional distribution $P_{Z|S=s}$ is difficult because, in finite datasets, we rarely observe multiple samples for a specific value of $s$.

The FREM Framework

To overcome these limitations, this paper introduces FREM (Fair Representation using EIPM with MMD). The core of this framework is a new metric called the Expectation of Integral Probability Metrics (EIPM).

Conceptual overview of fair representation learning for continuous sensitive attributes, where the encoder aims to align conditional distributions for all values of s.

EIPM measures the average distance between the conditional distribution of the representation at every possible sensitive value and the overall marginal distribution. By minimizing this metric, the encoder ensures that the learned features do not leak information about the continuous sensitive attribute.

To make EIPM computationally efficient, the authors utilize Maximum Mean Discrepancy (MMD) as the underlying IPM. Unlike adversarial methods (e.g., GAN-based FRL) which suffer from training instability, MMD provides a closed-form solution that can be optimized directly via standard gradient descent. Furthermore, the authors employ a kernel-smoothed estimator that avoids the "curse of dimensionality" by only smoothing the sensitive attribute $S$, rather than the high-dimensional representation $Z$.

Experimental Evaluation

The authors evaluated FREM across several benchmarks, including the ADULT census dataset (predicting income with Age as $S$), the CRIME dataset (predicting crime rates with racial ratios as $S$), and POKEC social network data.

Comparison of estimation error (Difference) between traditional binning and the proposed kernel-smoothed estimator across different weighting scenarios.

Key findings include:

  • Superior Fairness-Accuracy Trade-offs: FREM consistently outperformed baselines like Reg-GDP and adversarial methods, achieving lower Demographic Parity violations for comparable accuracy levels.
  • Robustness to Binning: Experiments on synthetic data demonstrated that FREM's kernel-smoothed estimator is significantly more accurate than binning-based approaches, which fail to capture the local continuity of the sensitive attribute.
  • Theoretical Guarantees: The authors proved that a low EIPM ensures fairness for any downstream prediction head, making the learned representations truly "plug-and-play."

Conclusion

FREM provides a mathematically grounded and stable framework for fair representation learning with continuous sensitive attributes. By moving beyond arbitrary binning and unstable adversarial training, it offers a practical path for deploying fair machine learning models in real-world scenarios involving complex, continuous demographic data. Future work will focus on extending this approach to multivariate sensitive attributes and exploring non-smooth prediction tasks.

Summary updated

BibTeX
@article{kong2025fair,
  author = {Insung Kong and Kunwoong Kim and Yongdai Kim},
  title = {{Fair Representation Learning for Continuous Sensitive Attributes using Expectation of Integral Probability Metrics}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2025},
  doi = {10.1109/tpami.2025.3538915},
}
Figure