FairMod - Making Predictive Models Discrimination Aware

Jixue Liu, Jiuyong Li, Lin Liu, Thuc Duy Le, Feiyue Ye, Gefei LiarXiv 2018

Abstract

Predictive models such as decision trees and neural networks may produce discrimination in their predictions. This paper proposes FairMod, a method to post-process the predictions of a predictive model to make the processed predictions non-discriminatory. The method considers multiple protected variables together, addressing a problem significantly more challenging than single-variable approaches. FairMod adapts well-cited discrimination metrics to allow for explanatory variables—such as position, profession, and education—that describe the contexts of the applications. By modeling post-processing as a nonlinear optimization problem, FairMod finds the best adjustments to predictions so that discrimination constraints for all protected variables are met simultaneously. The method is independent of classification methods and handles complex cases that existing methods cannot, including multiple protected and explanatory attributes. Evaluation on four real-world datasets shows that FairMod is as effective as existing methods while providing additional capabilities.

Introduction

As machine learning moves from the lab to high-stakes real-world applications—like loan approvals, hiring, and sentencing—the risk of algorithmic discrimination grows. A model might learn to penalize a specific group not because of their merit, but because of historical biases baked into the training data.

Existing fairness research faces three major challenges:

  1. The Multi-Attribute Challenge: Most tools focus on a single protected variable (e.g., gender). However, reducing gender bias might inadvertently increase racial bias.
  2. The Context Gap: Fairness requires comparing "like for like." Comparing the income of a female CEO to a male kitchen hand is a poor way to measure gender discrimination. We need to account for "explanatory variables" like profession and education.
  3. Model Dependency: Many fairness techniques require modifying the specific training algorithm. A "plug-and-play" solution is needed that works with any model, from simple decision trees to complex neural networks.

Methodology

FairMod operates as a post-processing step. It takes the predictions of an existing, potentially biased model and "nudges" them to satisfy fairness constraints.

Discrimination Metrics

The core of FairMod is a constrained nonlinear optimization problem. To quantify bias, the framework utilizes contingency tables to compare predicted outcomes ($P$) against actual outcomes ($D$) across different demographic groups.

Contingency table for calculating discrimination metrics based on predictions (P) and outcomes (D).

Optimization and Contextual Fairness

By introducing explanatory variables into the discrimination metric, FairMod moves away from naive demographic parity toward "conditional fairness." The framework uses "E-groups" (strata based on explanatory variables) to calculate discrimination scores.

The optimization objective is to minimize the number of prediction adjustments (flips) to maintain model accuracy while ensuring the discrimination score for every protected attribute stays below a user-defined threshold.

Structure of the nonlinear optimization problem for multiple protected attributes.

The method builds a hash table storing adjustment probabilities for different subgroups. When a new instance is predicted, FairMod uses these probabilities to decide whether to "flip" the prediction to maintain global and group-level fairness.

Experimental Evaluation

The authors evaluated FairMod using four diverse, real-world datasets:

  • Adult (US Census 1994): Focuses on income prediction with protected attributes like age, race, and sex.
  • Cana (Canada Census 2011): A massive dataset used to test scalability and multi-attribute fairness.
  • German Credit: A classic benchmark for credit risk and bias.
  • Recidivism (COMPAS): Predicting re-offending likelihood, a high-stakes domain where racial bias is a major concern.

Key Results

The results demonstrate that FairMod effectively "cleans" predictions with a minimal cost to accuracy. On the Adult dataset, the global discrimination score plummeted from 0.174 to 0.016, well below the 0.05 threshold. While there is a slight drop in the Balanced Classification Rate (BCR)—for example, from 0.691 to 0.659 on the Adult dataset—the trade-off is significantly better than simply forcing the model to be "blind." FairMod matched or outperformed established methods like Prejudice Remover, especially in complex scenarios involving multiple protected attributes.

Discussion and Conclusion

FairMod's primary innovation is treating multiple protected attributes as a single optimization problem, preventing the "whack-a-mole" effect where fixing one bias breaks another. Because it is a post-processing method, FairMod can be wrapped around any "black-box" model, making it highly practical for industry deployment.

While powerful, FairMod has limitations. In very small subgroups, probabilistic flipping can lead to high variance. Additionally, the method relies on the user correctly identifying protected and explanatory variables. Future work may explore automating the selection of explanatory variables to make the tool even more accessible.

In summary, FairMod provides a robust, model-agnostic framework for balancing the scales of algorithmic fairness in complex, multi-attribute environments.

Summary updated

BibTeX
@misc{liu2018fairmod,
  author = {Jixue Liu and Jiuyong Li and Lin Liu and Thuc Duy Le and Feiyue Ye and Gefei Li},
  title = {{FairMod - Making Predictive Models Discrimination Aware}},
  year = {2018},
  eprint = {1811.01480},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1811.01480},
}
Figure