Counterfactual Situation Testing: Uncovering Discrimination under Fairness given the Difference
Not on the map. Why?
Abstract (arXiv)
We present counterfactual situation testing (CST), a causal data mining framework for detecting discrimination in classifiers. CST aims to answer in an actionable and meaningful way the intuitive question "what would have been the model outcome had the individual, or complainant, been of a different protected status?" It extends the legally-grounded situation testing of Thanh et al. (2011) by operationalizing the notion of fairness given the difference using counterfactual reasoning. For any complainant, we find and compare similar protected and non-protected instances in the dataset used by the classifier to construct a control and test group, where a difference between the decision outcomes of the two groups implies potential individual discrimination. Unlike situation testing, which builds both groups around the complainant, we build the test group on the complainant's counterfactual generated using causal knowledge. The counterfactual is intended to reflect how the protected attribute when changed affects the seemingly neutral attributes used by the classifier, which is taken for granted in many frameworks for discrimination. Under CST, we compare similar individuals within each group but dissimilar individuals across both groups due to the possible difference between the complainant and its counterfactual. Evaluating our framework on two classification scenarios, we show that it uncovers a greater number of cases than situation testing, even when the classifier satisfies the counterfactual fairness condition of Kusner et al. (2017).
Key facts. Cited by 8 papers in the map (data through 7 Oct 2026). Builds on 22 of its 79 references that are in the map. First posted on arXiv 23 Feb 2023.
Builds on
22 of 79 references.
References · 22
- 2017Counterfactual Explanations without Opening the Black Box: Automated Decisions and the GDPRcited by 1,086
- 2017Counterfactual Fairnesscited by 802
- 2017Causal Effect Inference with Deep Latent-Variable Modelscited by 408
- 2020Algorithmic Recourse: from Counterfactual Explanations to Interventionscited by 250
- 2017Avoiding Discrimination through Causal Reasoningcited by 191
- 2018Path-Specific Counterfactual Fairnesscited by 179
- 2019Towards a Critical Race Methodology in Algorithmic Fairnesscited by 124
- 2017Fairness Testing: Testing Software for Discriminationcited by 123
- 2020Fair Regression with Wasserstein Barycenterscited by 99
- 2019Machine Learning Methods Economists Should Know Aboutcited by 63
- 2022Towards Intersectionality in Machine Learning: Including More Identities, Handling Underrepresentation, and Performing Evaluationcited by 59
- 2020Survey on Causal-based Machine Learning Fairness Notionscited by 53
10 more
- 2021The Use and Misuse of Counterfactuals in Ethical Machine Learningcited by 52
- 2019Discrimination in the Age of Algorithmscited by 51
- 2019FlipTest: Fairness Testing via Optimal Transportcited by 51
- 2022Causal Fairness Analysiscited by 42
- 2020What's Sex Got To Do With Fair Machine Learning?cited by 37
- 2019The Sensitivity of Counterfactual Fairness to Unmeasured Confoundingcited by 35
- 2018Automated Test Generation to Detect Individual Discrimination in AI Modelscited by 21
- 2019On Multi-Cause Causal Inference with Unobserved Confounding: Counterexamples, Impossibility, and Alternativescited by 20
- 2016Causal Inference for Social Discrimination Reasoningcited by 8
- 2022What is Proxy Discrimination?cited by 7
Built on by
Citing papers per year: 2023: 2; 2024: 4; 2025: 2.
8 papers.
- 2024Fairness Evaluation with Item Response Theorycited by 7
- 2023Causal Fair Machine Learning via Rank-Preserving Interventional Distributionscited by 4
- 2024Toward A Causal Framework for Modeling Perceptioncited by 2
- 2024Mutatis Mutandis: Revisiting the Comparator in Discrimination Testingcited by 2
- 2024Formalising Anti-Discrimination Law in Automated Decision Systemscited by 2
- 2025Counterfactual Situation Testing: From Single to Multidimensional Discriminationcited by 2
- 2025Privilege Scorescited by 1
- 2023What's the Problem, Linda? The Conjunction Fallacy as a Fairness Problemcited by 0
- 2025Counterfactual Situation Testing: From Single to Multidimensional Discrimination3 Feb 2025
- 2025Privilege Scores3 Feb 2025
- 2024Fairness Evaluation with Item Response Theory20 Oct 2024
- 2024Formalising Anti-Discrimination Law in Automated Decision Systems29 Jun 2024
- 2024Mutatis Mutandis: Revisiting the Comparator in Discrimination Testing22 May 2024
- 2024Toward A Causal Framework for Modeling Perception24 Jan 2024
- 2023Causal Fair Machine Learning via Rank-Preserving Interventional Distributions24 Jul 2023
- 2023What's the Problem, Linda? The Conjunction Fallacy as a Fairness Problem16 May 2023