Counterfactually Fair Representation

Zhiqun Zuo, Mohammad Mahdi Khalili, Xueru Zhang
2/12/2026

No official code found. Best implementation: osu-srml/CF_Representation_Learning (4 stars, last commit 2024-01-03).

Abstract

The use of machine learning models in high-stake applications (e.g., healthcare, lending, college admission) has raised growing concerns due to potential biases against protected social groups. Various fairness notions and methods have been proposed to mitigate such biases. In this work, we focus on Counterfactual Fairness (CF), a fairness notion that is dependent on an underlying causal graph and first proposed by Kusner \textit{et al.}~\cite{kusner2017counterfactual}; it requires that the outcome an individual perceives is the same in the real world as it would be in a"counterfactual"world, in which the individual belongs to another social group. Learning fair models satisfying CF can be challenging. It was shown in \cite{kusner2017counterfactual} that a sufficient condition for satisfying CF is to \textbf{not} use features that are descendants of sensitive attributes in the causal graph. This implies a simple method that learns CF models only using non-descendants of sensitive attributes while eliminating all descendants. Although several subsequent works proposed methods that use all features for training CF models, there is no theoretical guarantee that they can satisfy CF. In contrast, this work proposes a new algorithm that trains models using all the available features. We theoretically and empirically show that models trained with this method can satisfy CF\footnote{The code repository for this work can be found in \url{https://github.com/osu-srml/CF_Representation_Learning}}.

View on arXivView PDF

Code Implementations(1)

41Shell, PythonOct 27, 20232 years ago

Similar Papers

Cite this paper

@article{zuo2026counterfactually,
  title  = {Counterfactually Fair Representation},
  author = {Zhiqun Zuo and Mohammad Mahdi Khalili and Xueru Zhang},
  year   = {2026},
  eprint = {2311.05420},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2311.05420},
  journal = {NEURIPS 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2311.05420.svg)](https://codeofpaper.com/paper/2311.05420)

Discussion