Towards a holistic view of bias in machine learning: bridging algorithmic fairness and imbalanced learning

Damien Dablain, Bartosz Krawczyk, Nitesh V. Chawla

Abstract

Machine learning (ML) is playing an increasingly important role in rendering decisions that affect a broad range of groups in society. This posits the requirement of algorithmic fairness, which holds that automated decisions should be equitable with respect to protected features (e.g., gender, race). Training datasets can contain both class imbalance and protected feature bias. We postulate that, to be effective, both class and protected feature bias should be reduced—which allows for an increase in model accuracy and fairness. Our method, Fair OverSampling (FOS), uses SMOTE to reduce class imbalance and feature blurring to enhance group fairness. Because we view bias in imbalanced learning and algorithmic fairness differently, we do not attempt to balance classes and features; instead, we seek to de-bias features and balance the number of class instances. FOS restores numerical class balance through the creation of synthetic minority class instances and causes a classifier to pay less attention to protected features. Therefore, it reduces bias for both classes and protected features. Additionally, we take a step toward bridging the gap between fairness and imbalanced learning with a new metric, Fair Utility, that measures model effectiveness with respect to accuracy and fairness. Our source code and data are publicly available at https://github.com/dd1github/Fair-Over-Sampling.

Introduction

In the contemporary landscape of machine learning, bias is often categorized into two distinct domains: class imbalance and protected feature bias. Class imbalance occurs when one outcome (e.g., "loan denied") is significantly more prevalent in the training data than another, often causing models to neglect the minority class. Conversely, protected feature bias involves models making decisions based on sensitive attributes such as race or gender, leading to discriminatory outcomes.

While traditionally treated as separate issues, these forms of bias are frequently intertwined. When a protected group is also a minority class, the resulting "representation disparity" compounds the difficulty of achieving both accuracy and equity. Most existing interventions force a trade-off between these two goals. This research introduces Fair OverSampling (FOS), a holistic approach designed to mitigate both class and feature bias simultaneously without sacrificing predictive performance.

Methodology: Fair OverSampling (FOS)

The proposed FOS technique is a pre-processing method that extends the Synthetic Minority Over-sampling Technique (SMOTE). It operates on two primary fronts:

Numerical Balancing

FOS generates synthetic examples of the minority class to restore numerical balance. This ensures that the classifier is exposed to an equal number of positive and negative outcomes during training, preventing the model from becoming biased toward the majority class.

Feature Blurring for Fairness

The "Fair" component of FOS is achieved through strategic interpolation. When generating synthetic data for the minority class, FOS selects "nearest neighbors" from the entire minority class pool, intentionally ignoring their protected group status. This process, termed feature blurring, weakens the statistical correlation between protected attributes and the target outcome. By mixing these samples, the model is discouraged from relying on sensitive features (e.g., gender) and is instead forced to identify more legitimate, non-protected predictors (e.g., credit history).

The Fair Utility Metric

To evaluate models holistically, the authors introduce Fair Utility. This metric mathematically integrates balanced accuracy with fairness measures—specifically differences in True Positive Rates (TPR) and True Negative Rates (TNR)—into a single score. This allows for a more nuanced assessment of how well a model balances performance with social equity.

Experimental Setup

The effectiveness of FOS was evaluated using three benchmark datasets:

  1. German Credit: 1,000 instances; predicting creditworthiness.
  2. Adult Census Income: ~48,000 instances; predicting income levels.
  3. Compas Two-Year Recidivism: ~7,200 instances; predicting criminal re-offending.

In these experiments, gender served as the protected feature. Each dataset exhibited significant imbalances in both class distribution and group representation.

Key Results and Insights

The experimental results demonstrate that FOS effectively bridges the gap between fairness and accuracy.

  • Superior Fair Utility: FOS consistently outperformed baseline models and specialized fairness algorithms (such as Reweighing and Disparate Impact Remover) across SVM and Logistic Regression classifiers.
  • Mitigating Unfairness without Accuracy Loss: In the German Credit dataset, FOS achieved a Balanced Accuracy of 0.7003, nearly identical to standard SMOTE (0.7055). Crucially, it reduced the Average Odds Difference—a key measure of unfairness—from 0.1054 to 0.0174.
  • Weight Redistribution: Analysis of Logistic Regression weights revealed that FOS reduces the model's reliance on protected features. For example, the importance of the "sex" feature was markedly diminished, while the weights for legitimate predictors like "capital gain" or "checking account status" increased.

Discussion and Limitations

The research highlights that bias is multi-dimensional, requiring both data augmentation (for class bias) and feature discounting (for feature bias). FOS demonstrates that techniques from imbalanced learning can be adapted to solve fairness problems.

However, several limitations remain. The method assumes that the "ground truth" labels in the training data are unbiased, which may not hold if historical human decisions were discriminatory. Furthermore, FOS focuses on group fairness; achieving individual fairness simultaneously remains a theoretical challenge. Finally, the interpolation of categorical data (converted to integers) may introduce artifacts that do not perfectly represent real-world constraints.

Conclusion

Fair OverSampling (FOS) represents a significant step toward a unified view of bias in machine learning. By combining synthetic data generation with feature blurring, it provides a practical framework for building models that are both accurate and equitable. The introduction of the Fair Utility metric further supports this holistic perspective, providing a robust tool for future research in algorithmic fairness.

Summary updated

BibTeX
@inproceedings{dablain2024towards,
  author = {Damien Dablain and Bartosz Krawczyk and Nitesh V. Chawla},
  title = {{Towards a holistic view of bias in machine learning: bridging algorithmic fairness and imbalanced learning}},
  booktitle = {Discover},
  year = {2024},
  doi = {10.1007/s44248-024-00007-1},
}
Figure