Skip to main content
QUICK REVIEW

[Paper Review] Towards Fair Machine Learning Software: Understanding and Addressing Model Bias Through Counterfactual Thinking

Zichong Wang, Zhou Yang|arXiv (Cornell University)|Feb 16, 2023
Adversarial Robustness in Machine LearningComputer Science14 citations
TL;DR

This paper introduces CFSA, a counterfactual fairness framework that identifies and removes biased data to jointly improve fairness and performance of ML models, demonstrated across eight real-world datasets and 10 benchmark tasks. It outperforms state-of-the-art baselines in 84.6% of cases.

ABSTRACT

The increasing use of Machine Learning (ML) software can lead to unfair and unethical decisions, thus fairness bugs in software are becoming a growing concern. Addressing these fairness bugs often involves sacrificing ML performance, such as accuracy. To address this issue, we present a novel counterfactual approach that uses counterfactual thinking to tackle the root causes of bias in ML software. In addition, our approach combines models optimized for both performance and fairness, resulting in an optimal solution in both aspects. We conducted a thorough evaluation of our approach on 10 benchmark tasks using a combination of 5 performance metrics, 3 fairness metrics, and 15 measurement scenarios, all applied to 8 real-world datasets. The conducted extensive evaluations show that the proposed method significantly improves the fairness of ML software while maintaining competitive performance, outperforming state-of-the-art solutions in 84.6% of overall cases based on a recent benchmarking tool.

Motivation & Objective

  • Motivate the need to address fairness bugs in ML software without sacrificing performance.
  • Propose a counterfactual fairness framework (CFSA) that identifies and removes bias encoded in training data.
  • Balance fairness and accuracy through ensemble training combining bias-aware and accuracy-driven models.
  • Develop a fair data synthesis method to preserve class balance during debiasing and augmentation.

Proposed method

  • Define counterfactual bias testing for each instance to assess bias under sensitive attribute changes.
  • Construct a Counterfactual Bias List (CBList) ranking biased instances by their potential to bias the model.
  • Balance biased representation by undersampling top biased instances to satisfy the We Are All Equal (WAE) principle.
  • Correct labeling bias by removing instances that do not meet counterfactual fairness criteria and synthesizing data when needed.
  • Introduce a fair synthesis procedure that clusters by sensitive attribute and class, then clusters within subgroups and generates balanced new samples.
  • Train an accuracy-driven model on original data and a fairness-oriented model on debiased data, then ensemble their predictions with weighted averaging.
Figure 1. All datasets exhibit an imbalanced distribution concerning the sensitive attribute and class label.
Figure 1. All datasets exhibit an imbalanced distribution concerning the sensitive attribute and class label.

Experimental results

Research questions

  • RQ1How can counterfactual thinking be used to identify and rank biased training instances?
  • RQ2Can debiasing guided by a Counterfactual Bias List improve fairness without sacrificing performance?
  • RQ3Does combining fairness-oriented and accuracy-driven models via ensemble yield better fairness-performance trade-offs?
  • RQ4How effective is fair data synthesis in preserving class balance while enhancing fairness?

Key findings

  • CFSA identifies biased data using CBTest and CBList and outperforms state-of-the-art baselines in 84.6% of overall cases.
  • CFSA improves fairness while maintaining competitive performance across 8 real-world datasets and 10 benchmark tasks.
  • The approach is model-agnostic and effective across multiple model types and bias types (race, gender, age).
  • Ensembling outputs from a fairness-oriented model and an accuracy-driven model yields better fairness-accuracy trade-offs than MAAT-style ensembles.
  • Fair data synthesis helps maintain class balance and further enhances fairness and performance when included in training.
Figure 2. The overall framework of CFSA: (a) Biased dataset; (b) Counterfactual fairness test; (c) Debiased dataset; (d) Fairness-oriented training; (e) Performance-driven training; (f) Ensemble prediction.
Figure 2. The overall framework of CFSA: (a) Biased dataset; (b) Counterfactual fairness test; (c) Debiased dataset; (d) Fairness-oriented training; (e) Performance-driven training; (f) Ensemble prediction.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.