Towards counterfactual fairness through auxiliary variables
Bowei Tian, Ziyao Wang, Shwai He, Wanghao Ye, Guoheng Sun, Yucong Dai, Yongkai Wu, Ang Li
TL;DR
EXOC addresses the fairness-accuracy tension in counterfactual fairness by introducing exogenous-information-inspired auxiliary and control nodes within a causal framework. The method formalizes an ELBO-based latent-variable model with $K$, $S'$, and $S''$, and uses a dedicated loss $\mathcal{L}_c(S',S'')$ and a balancing parameter $\gamma$ to control information flow from sensitive attributes to the target. Compared to prior approaches like Fair-K and CLAIRE, EXOC explicitly models intrinsic properties via $S'$ and tunes their influence through $S''$, yielding tighter counterfactual fairness (lower $\text{MMD}$ and $\text{Wass}$) with minimal performance loss. Experiments on Law School and Adult datasets (real and synthetic) demonstrate robust improvements in fairness while maintaining predictive accuracy, highlighting practical potential for fair decision-making systems that must balance bias reduction with task performance.
Abstract
The challenge of balancing fairness and predictive accuracy in machine learning models, especially when sensitive attributes such as race, gender, or age are considered, has motivated substantial research in recent years. Counterfactual fairness ensures that predictions remain consistent across counterfactual variations of sensitive attributes, which is a crucial concept in addressing societal biases. However, existing counterfactual fairness approaches usually overlook intrinsic information about sensitive features, limiting their ability to achieve fairness while simultaneously maintaining performance. To tackle this challenge, we introduce EXOgenous Causal reasoning (EXOC), a novel causal reasoning framework motivated by exogenous variables. It leverages auxiliary variables to uncover intrinsic properties that give rise to sensitive attributes. Our framework explicitly defines an auxiliary node and a control node that contribute to counterfactual fairness and control the information flow within the model. Our evaluation, conducted on synthetic and real-world datasets, validates EXOC's superiority, showing that it outperforms state-of-the-art approaches in achieving counterfactual fairness. Our code is available at https://github.com/CASE-Lab-UMD/counterfactual_fairness_2025.
