Impact of Data Processing on Fairness in Supervised Learning

Sajad Khodadadian, AmirEmad Ghassami, Negar Kiyavash · DOI

Introduction

Machine learning models frequently inherit and amplify biases present in training data, leading to "disparate impact" where demographic groups are treated unequally based on sensitive attributes like race or gender. To mitigate this, researchers employ three primary intervention strategies: pre-processing (modifying input data), in-processing (modifying the learning algorithm), and post-processing (modifying model predictions).

Despite the prevalence of these techniques, a unified mathematical framework to compare their relative efficacy has been lacking. This paper addresses this gap by providing a rigorous theoretical comparison between pre-processing and post-processing, demonstrating that intervening at the data stage is fundamentally more powerful than adjusting outputs.

Methodology: A Unified Framework

The authors frame the design of fairness processors as a constrained optimization problem. The objective is to minimize discrimination—measured through metrics such as Equalized Odds or Demographic Parity—while keeping the "distortion" (loss of predictive accuracy) below a specified threshold $D$.

To compare these strategies, the authors reformulate them into a shared accuracy-distortion framework, allowing for a direct comparison of where interventions are most effective.

The pre-processing pipeline architecture modifies the input features $X$ into a fair representation $\tilde{X}$ before they reach the classifier $W_{Y|X}$.
The post-processing pipeline architecture adjusts the predictions $\hat{Y}_O$ of an existing classifier to produce fair outputs $\hat{Y}_P$.

Technical Innovations

  1. Convex Formulation: The optimization problems are proven to be convex, ensuring that a global optimum can be found using standard numerical methods. This is a significant improvement over previous information-theoretic approaches that were often non-convex and prone to local minima.
  2. Linear Programming (LP): When using Total Variation as the fairness metric, the optimization problem simplifies into a Linear Program. This allows for extremely efficient computation of the optimal fair processor, even in high-dimensional feature spaces.

Theoretical Insights

The core contribution of this work is the mathematical proof that pre-processing is fundamentally superior to post-processing.

The Superiority of Pre-processing

The authors establish a necessary and sufficient condition (Proposition 3) under which a post-processor can be substituted by a pre-processor without loss of performance. They introduce the concept of a "proper classifier"—one that performs better than random guessing for all demographic groups. For any such classifier, a pre-processor can replicate the results of any post-processor and typically achieve a superior trade-off between fairness and accuracy.

Metrics and Pitfalls

The research also critiques the use of Mutual Information as a fairness metric, particularly in imbalanced datasets where one demographic group significantly outweighs another. The authors instead advocate for $f$-divergences, such as Total Variation, which provide more robust and computationally tractable measures of discrimination.

Results and Efficiency

By reducing the fairness intervention to a Linear Program, the authors demonstrate that finding the optimal data transformation is computationally efficient (solvable in polynomial time). They also establish fundamental lower bounds on the minimum achievable discrimination for any given level of accuracy loss, providing a theoretical "frontier" for fair machine learning.

Limitations and Future Directions

While the theoretical foundation is robust, the framework currently assumes that the joint distribution of features, sensitive attributes, and outcomes is known or accurately estimable. Real-world applications may face challenges due to estimation errors in these distributions. Additionally, while the proofs are general, much of the detailed comparative analysis focuses on binary classification. Extending these rigorous guarantees to multi-class and continuous outcome scenarios remains an area for future research. Finally, empirical validation on standard biased datasets (e.g., COMPAS, Adult) would complement the mathematical proofs by demonstrating practical performance gains.

Summary updated

BibTeX
@inproceedings{khodadadian2021impact,
  author = {Sajad Khodadadian and AmirEmad Ghassami and Negar Kiyavash},
  title = {{Impact of Data Processing on Fairness in Supervised Learning}},
  booktitle = {ISIT},
  year = {2021},
  doi = {10.1109/isit45174.2021.9517766},
}
Figure