Learning Individually Fair Classifier with Causal-Effect Constraint

Yoichi Chikahara, Shinsaku Sakaue, Akinori Fujino

Introduction

Machine learning models are increasingly deployed in high-stakes domains such as hiring, lending, and criminal justice. A critical challenge is ensuring these models do not perpetuate or amplify biases against sensitive groups. While group fairness (ensuring equal average outcomes) is common, it often fails to protect individuals. This paper introduces a practical framework for training individually fair classifiers by constraining the Probability of Individual Unfairness (PIU) using path-specific causal effects.

Problem Formulation: Path-Specific Fairness

Individual fairness posits that similar individuals should receive similar treatment. In a causal framework, this is often interpreted using path-specific effects. Consider a hiring scenario where gender ($A$) might influence a hiring decision ($Y$) through multiple paths. A direct path $A \to Y$ is typically considered unfair. However, an indirect path through a mediator like "physical strength" ($M$) might be deemed fair by domain experts.

Causal graphs illustrating fair and unfair paths. (a) shows a general structure, while (b) highlights unfair paths in red.

Existing methods like Path-Specific Counterfactual Fairness (PSCF) rely on restrictive "Additive Noise Models" (ANM). When data-generating processes are more complex (e.g., multiplicative noise), these methods fail. Conversely, group-based methods like Fair Information Optimization (FIO) only ensure fairness on average, which can mask significant individual-level discrimination.

Proposed Method: Probability of Individual Unfairness (PIU)

The authors propose a learning framework that minimizes standard prediction loss while penalizing a new metric: the Probability of Individual Unfairness (PIU). PIU measures the probability that an individual’s outcome would change if their sensitive attribute were altered only along "unfair" causal pathways.

The Bounding Trick and IPW

Directly calculating PIU is impossible because we cannot observe two counterfactual versions of the same person. To solve this, the authors derive a theoretical upper bound for PIU that depends only on marginal probabilities. They estimate these probabilities using Inverse Probability Weighting (IPW), allowing the framework to function without knowing the exact structural equations of the data.

Optimization

The estimated PIU upper bound is integrated as a penalty term in the classifier's objective function. By adjusting a hyperparameter ($\lambda$), practitioners can navigate the trade-off between predictive accuracy and individual fairness, forcing the model to prioritize fairness more heavily as needed.

Experimental Evaluation

The method was evaluated on three datasets: a synthetic hiring simulation (designed to violate ANM assumptions), the German Credit dataset, and the Adult census dataset.

Key Results

The proposed method consistently outperformed baselines in ensuring individual fairness across both synthetic and real-world scenarios.

Experimental results across synthetic and real-world datasets. The proposed method (red) maintains low PIU and low variance in unfair effects compared to FIO (blue), PSCF (orange), and unconstrained models (green).
  1. Robustness to Functional Form: In synthetic tests where PSCF failed due to non-additive noise, the proposed method kept individual unfairness near zero. This makes the tool more "plug-and-play" for real-world engineering where exact data models are unknown.
  2. Real-World Performance: On the Adult and German Credit datasets, the method successfully reduced the upper bound of PIU to near zero, significantly outperforming group-based methods like FIO.
  3. Accuracy vs. Fairness: While there is a slight accuracy cost compared to unconstrained models, the proposed method provides better accuracy than simply removing sensitive features because it allows the model to retain "fair" information correlated with the sensitive attribute.

Conclusion and Future Work

This framework provides a robust path toward individual fairness in complex causal environments. By moving beyond group averages and avoiding restrictive functional assumptions, it offers a more reliable tool for ethical AI deployment. Future work includes tightening the PIU bounds and extending the method to handle more complex latent confounding structures.

Summary updated

BibTeX
@inproceedings{chikahara2021learning,
  author = {Yoichi Chikahara and Shinsaku Sakaue and Akinori Fujino},
  title = {{Learning Individually Fair Classifier with Causal-Effect Constraint}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2021},
}
Figure