Analyzing Fairness of Neural Network Prediction via Counterfactual Dataset Generation
Not on the map. Why?
Abstract (arXiv)
Interpreting the inference-time behavior of deep neural networks remains a challenging problem. Existing approaches to counterfactual explanation typically ask: What is the closest alternative input that would alter the model's prediction in a desired way? In contrast, we explore counterfactual datasets. Rather than perturbing the input, our method efficiently finds the closest alternative training dataset, one that differs from the original dataset by changing a few labels. Training a new model on this altered dataset can then lead to a different prediction of a given test instance. This perspective provides a new way to assess fairness by directly analyzing the influence of label bias on training and inference. Our approach can be characterized as probing whether a given prediction depends on biased labels. Since exhaustively enumerating all possible alternate datasets is infeasible, we develop analysis techniques that trace how bias in the training data may propagate through the learning algorithm to the trained network. Our method heuristically ranks and modifies the labels of a bounded number of training examples to construct a counterfactual dataset, retrains the model, and checks whether its prediction on a chosen test case changes. We evaluate our approach on feedforward neural networks across over 1100 test cases from 7 widely-used fairness datasets. Results show that it modifies only a small subset of training labels, highlighting its ability to pinpoint the critical training examples that drive prediction changes. Finally, we demonstrate how our counterfactual datasets reveal connections between training examples and test cases, offering an interpretable way to probe dataset bias.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 40 of its 72 references that are in the map. First posted on arXiv 11 Feb 2026.
Builds on
40 of 72 references.
References · 40
- 2014Adam: A Method for Stochastic Optimizationcited by 37,240
- 2014Explaining and Harnessing Adversarial Examplescited by 7,364
- 2017A Unified Approach to Interpreting Model Predictionscited by 6,555
- 2013Intriguing properties of neural networkscited by 5,155
- 2016"Why Should I Trust You?": Explaining the Predictions of Any Classifiercited by 5,070
- 2017Understanding Black-box Predictions via Influence Functionscited by 1,741
- 2017Counterfactual Explanations without Opening the Black Box: Automated Decisions and the GDPRcited by 1,089
- 2017Counterfactual Fairnesscited by 804
- 2015The Limitations of Deep Learning in Adversarial Settingscited by 790
- 2014Certifying and removing disparate impactcited by 715
- 2018Poison Frogs! Targeted Clean-Label Poisoning Attacks on Neural Networkscited by 519
- 2020Early-Learning Regularization Prevents Memorization of Noisy Labelscited by 416
28 more
- 2018Joint Optimization Framework for Learning with Noisy Labelscited by 293
- 2020Data and its (dis)contents: A survey of dataset development and use in machine learning researchcited by 260
- 2019Probabilistic End-to-end Noise Correction for Learning with Noisy Labelscited by 210
- 2017Towards Poisoning of Deep Learning Algorithms with Back-gradient Optimizationcited by 197
- 2021A survey on datasets for fairness-aware machine learningcited by 157
- 2021Scaling Up Influence Functionscited by 132
- 2019Deep Self-Learning From Noisy Labelscited by 122
- 2020MetaPoison: Practical General-purpose Clean-label Data Poisoningcited by 120
- 2021Counterfactual Explanations Can Be Manipulatedcited by 113
- 2020Certified Robustness to Label-Flipping Attacks via Randomized Smoothingcited by 108
- 2018Automated Directed Fairness Testingcited by 78
- 2020Certified Robustness of Nearest Neighbors against Data Poisoning and Backdoor Attackscited by 60
- 2018Probabilistic Verification of Fairness Properties via Concentrationcited by 45
- 2020Empirical observation of negligible fairness-accuracy trade-offs in machine learning for public policycited by 44
- 2019Perfectly Parallel Fairness Certification of Neural Networkscited by 42
- 2020In Pursuit of Interpretable, Fair and Accurate Machine Learning for Criminal Recidivism Predictioncited by 42
- 2021NeuronFair: Interpretable White-Box Fairness Testing through Biased Neuron Identificationcited by 42
- 2021Leave-one-out Unfairnesscited by 36
- 2022Individual Fairness Guarantees for Neural Networkscited by 23
- 2022Fairify: Fairness Verification of Neural Networkscited by 22
- 2021Certifying Robustness to Programmable Data Bias in Decision Treescited by 21
- 2024textttdattri: A Library for Efficient Data Attributioncited by 18
- 2022Support Vector Machines under Adversarial Label Contaminationcited by 17
- 2023The Dataset Multiplicity Problem: How Unreliable Data Impacts Predictionscited by 17
- 2023Information-Theoretic Testing and Debugging of Fairness Defects in Deep Neural Networkscited by 10
- 2021BeFair: Addressing Fairness in the Banking Sectorcited by 8
- 2023Certifying the Fairness of KNN in the Presence of Dataset Biascited by 7
- 2024FairQuant: Certifying and Quantifying Fairness of Deep Neural Networkscited by 4
Built on by
Citing papers per year: 2026: 1.
1 paper.