Fair Causal Feature Selection

Zhaolong Ling, Jingxuan Wu, Yiwen Zhang, Peng Zhou, Xingyu Wu, Kui Yu, Xindong WuarXiv 2023 · DOI

Abstract

In the quest for "trustworthy AI," researchers often face a trade-off between model accuracy and fairness. Traditional feature selection methods often inadvertently introduce bias by selecting variables statistically correlated with sensitive attributes like race or gender. This paper introduces FairCFS, an algorithm that leverages causal discovery—specifically the concept of Markov Blankets—to select features that maximize predictive power while mathematically "blocking" the transmission of sensitive information. By identifying the Markov Blanket of both the target and sensitive variables, FairCFS automatically filters out biased features without requiring manual, subjective labeling of "admissible" variables.

Introduction

Most fairness-aware algorithms encounter two primary obstacles. First, statistical methods rely on correlations, which can be misleading (e.g., Simpson’s Paradox) and fail to explain the underlying cause of bias. Second, existing causal methods often require researchers to manually specify "admissible" features—variables permitted to be influenced by sensitive attributes. This manual process is inherently subjective and unreliable; the same variable could be judged as "fair" or "unfair" depending on the researcher's labels. There is a clear need for an automated, theoretically grounded method to select features that are both explainable and causally fair.

The FairCFS Algorithm

The core of the proposed approach is the FairCFS algorithm, which operates on the principle of Interventional Fairness. Rather than relying on simple correlations, it examines how a system behaves under an "intervention" (using the do-operator) on a sensitive attribute.

The algorithm follows a three-step process:

  1. Discovery: Standard causal discovery tools identify the Markov Blanket (MB) of the class variable ($Y$) and the sensitive variable ($S$). In a causal graph, the MB consists of the parents, children, and spouses that make a variable independent of the rest of the network.
  2. Initial Filtering: The algorithm identifies features in $MB(Y)$ that are not in $MB(S)$. It tests if these features are independent of $S$ when conditioned on $S$'s neighborhood. If they are, they are deemed "fair" because the path to sensitive information is blocked.
  3. Spouse Handling: The algorithm specifically evaluates "spouses" of the sensitive variable. Even if a feature is dependent on $S$, it may still be fair if a subset of $S$'s neighborhood can block the influence.
Causal graph illustrating the identification of fair and unfair features based on conditional independence with the sensitive attribute S.

This approach uses the sensitive variable's own causal neighborhood as a shield to prevent bias leakage into the final model. As shown in the figure above, the classification of a feature like $X_2$ as fair or unfair depends on whether its relationship with the sensitive attribute $S$ can be blocked by other variables in the graph.

Experimental Evaluation

The authors evaluated FairCFS on seven public real-world datasets commonly used in fairness research, including Law school admissions, credit scoring (German, CreditCardClients), recidivism risk (Compas), and academic performance (Oulad, StudentPerformance).

FairCFS was compared against six causal feature selection algorithms and two state-of-the-art fair feature selection methods across three classifiers: Logistic Regression, Naive Bayes, and KNN.

Key Results

  • Accuracy: FairCFS maintained accuracy levels comparable to standard (unfair) state-of-the-art algorithms, typically within a 0.01 to 0.04 margin. This indicates that the "fairness tax"—the loss in accuracy for a gain in fairness—is minimal.
  • Fairness: FairCFS outperformed competitors in fairness metrics. On the Credit and Law datasets, it reduced the Statistical Parity Difference (SPD) and Predictive Equality (PE) to 0.0000.
  • Consistency: Unlike other methods that fluctuated across datasets, FairCFS provided stable fairness improvements across all seven benchmarks.

Discussion and Conclusion

The primary strength of FairCFS lies in its "blocking" mechanism. By using the Markov Blanket of the sensitive variable, the algorithm ensures that any "taint" from the sensitive attribute cannot reach the predictive model. Furthermore, by automating the process through causal discovery, the method becomes reproducible and less prone to human bias.

A limitation acknowledged by the authors is the requirement for large data scales. Causal discovery relies on conditional independence tests (like the $G^2$ test), which require significant data to be statistically reliable. On smaller datasets, the gap between FairCFS and other algorithms narrowed as the causal discovery process struggled to accurately identify Markov Blankets. Future work will focus on making these causal independence tests more robust for small-sample scenarios.

Summary updated

BibTeX
@misc{ling2023fair,
  author = {Zhaolong Ling and Jingxuan Wu and Yiwen Zhang and Peng Zhou and Xingyu Wu and Kui Yu and Xindong Wu},
  title = {{Fair Causal Feature Selection}},
  year = {2023},
  eprint = {2306.10336},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2306.10336},
}
Figure