Fairness Overfitting in Machine Learning: An Information-Theoretic Perspective

Firas Laakom, Haobo Chen, Jürgen Schmidhuber, Yuheng Bu

Introduction

In the pursuit of ethical AI, researchers frequently incorporate fairness constraints—such as Demographic Parity or Equalized Odds—into the training of machine learning models. The underlying assumption is that a model optimized for fairness on a training set will maintain that fairness when deployed on unseen data. However, just as deep neural networks are prone to overfitting on accuracy by memorizing training samples, they are equally susceptible to "fairness overfitting."

This paper introduces the first comprehensive information-theoretic framework to quantify this phenomenon. By viewing fairness through the lens of algorithmic stability and information theory, the authors demonstrate that a model can appear perfectly fair during training while exhibiting significant bias in the real world.

The Challenge of Fairness Generalization

Traditional mathematical tools for measuring generalization, such as VC-dimension or Rademacher complexity, are designed for point-wise loss functions where each sample's contribution is independent. Fairness metrics, however, are "group-based." They depend on the statistical relationship between multiple samples (e.g., comparing the positive rate of Group A vs. Group B). This dependency makes them significantly harder to analyze using standard statistical learning theory.

An Information-Theoretic Framework

The authors address this gap by deriving new generalization bounds using two primary tools:

  1. Mutual Information (MI) and Conditional Mutual Information (CMI): These quantify the "information" the model weights ($W$) capture about the training set ($S$). High MI indicates that the model is overly sensitive to specific training samples, a hallmark of overfitting.
  2. The Efron-Stein Inequality: To handle the group-based nature of fairness, the authors utilize a variance-based bounding technique. This allows them to account for how sensitive a fairness metric is to the inclusion or exclusion of individual data points.

They provide rigorous bounds for Demographic Parity (DP) (independence between predictions and sensitive attributes) and Equalized Odds (EO) (fairness conditioned on the true label).

Empirical Evidence of Overfitting

Experimental results on benchmark datasets like COMPAS and Adult (UCI Income) confirm that fairness overfitting is a pervasive issue, particularly in low-data regimes. Standard fairness-aware algorithms, such as HSIC or Prejudice Remover, often see their fairness error double when moving from training to test sets.

Figure 4: Comparison of fairness training error, testing error, and the resulting generalization error across different algorithms as the number of training samples increases.

As shown in the figure above, while training error may remain low, the testing error (and consequently the generalization gap) remains substantial until the sample size becomes sufficiently large. This highlights that "fairness on training" is a poor proxy for "fairness in deployment."

Validating the Theoretical Bounds

A key contribution of this work is the tightness of the proposed $\Delta$L-CMI bounds. Unlike many purely theoretical frameworks, the authors' math closely tracks empirical reality. In experiments on the COMPAS dataset, the derived bounds showed a remarkably high correlation (~0.876) with the actual observed fairness generalization errors.

Figure 6: Validation of the $\Delta$L-CMI bound against empirical fairness loss on the COMPAS dataset, including a scatter plot showing a 0.876 correlation.

Key Insights and Practical Solutions

  • The Harmonic Mean Constraint: The mathematical bounds reveal that fairness generalization is primarily constrained by the harmonic mean of group sizes. If a dataset has a massive majority group but a tiny minority group, the fairness variance increases, leading to severe overfitting.
  • Label Independence in DP: Interestingly, the risk of overfitting for Demographic Parity is driven by the relationship between model weights and features, regardless of the ground-truth labels.
  • Batch Balancing: The theory suggests that group imbalance is the primary driver of the fairness gap. By implementing a simple batch-balancing strategy—ensuring every training batch is proportionally balanced—the authors reduced the Demographic Parity error on test data for the DiffDP algorithm from 0.026 to 0.003, an 8.6x improvement.

Conclusion

Fairness is not a static property of a model but a generalization challenge. By providing a robust information-theoretic foundation, this research offers both a way to predict when a model will fail to be fair on new data and a practical path forward through mathematically-grounded techniques like batch balancing. Future work will look to extend these insights to continuous sensitive attributes and more complex, high-dimensional neural architectures.

Summary updated

BibTeX
@inproceedings{laakom2025fairness,
  author = {Firas Laakom and Haobo Chen and Jürgen Schmidhuber and Yuheng Bu},
  title = {{Fairness Overfitting in Machine Learning: An Information-Theoretic Perspective}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=saBXnGIDSj},
}
Figure