DeCoDEx: Confounder Detector Guidance for Improved Diffusion-based Counterfactual Explanations
Not on the map. Why?
Abstract (arXiv)
Deep learning classifiers are prone to latching onto dominant confounders present in a dataset rather than on the causal markers associated with the target class, leading to poor generalization and biased predictions. Although explainability via counterfactual image generation has been successful at exposing the problem, bias mitigation strategies that permit accurate explainability in the presence of dominant and diverse artifacts remain unsolved. In this work, we propose the DeCoDEx framework and show how an external, pre-trained binary artifact detector can be leveraged during inference to guide a diffusion-based counterfactual image generator towards accurate explainability. Experiments on the CheXpert dataset, using both synthetic artifacts and real visual artifacts (support devices), show that the proposed method successfully synthesizes the counterfactual images that change the causal pathology markers associated with Pleural Effusion while preserving or ignoring the visual artifacts. Augmentation of ERM and Group-DRO classifiers with the DeCoDEx generated images substantially improves the results across underrepresented groups that are out of distribution for each class. The code is made publicly available at https://github.com/NimaFathi/DeCoDEx.
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Builds on 18 of its 25 references that are in the map. First posted on arXiv 15 May 2024.
Builds on
18 of 25 references.
References · 18
- 2020Denoising Diffusion Probabilistic Modelscited by 20,851
- 2021Diffusion Models Beat GANs on Image Synthesiscited by 8,185
- 2016Densely Connected Convolutional Networkscited by 6,691
- 2020Shortcut Learning in Deep Neural Networkscited by 1,928
- 2018ImageNet-trained CNNs are biased towards texture; increasing shape bias improves accuracy and robustnesscited by 1,430
- 2019CheXpert: A Large Chest Radiograph Dataset with Uncertainty Labels and Expert Comparisoncited by 1,410
- 2019Distributionally Robust Neural Networks for Group Shifts: On the Importance of Regularization for Worst-Case Generalizationcited by 1,232
- 2017ChestX-ray8: Hospital-scale Chest X-ray Database and Benchmarks on Weakly-Supervised Classification and Localization of Common Thorax Diseasescited by 969
- 2019Explaining Machine Learning Classifiers through Diverse Counterfactual Explanationscited by 612
- 2017Adversarial Examples for Evaluating Reading Comprehension Systemscited by 568
- 2018Confounding variables can degrade generalization performance of radiological deep learning modelscited by 374
- 2019Towards Fairness in Visual Recognition: Effective Strategies for Bias Mitigationcited by 252
6 more
- 2022Diffusion-GAN: Training GANs with Diffusioncited by 203
- 2022Diffusion Models for Counterfactual Explanationscited by 79
- 2020Fairness by Learning Orthogonal Disentangled Representationscited by 76
- 2023Right for the Wrong Reason: Can Interpretable ML Techniques Detect Spurious Correlations?cited by 16
- 2023Debiasing Counterfactuals In the Presence of Spurious Correlationscited by 12
- 2023Inherently Interpretable Multi-Label Classification Using Class-Specific Counterfactualscited by 10
Built on by
Citing papers per year: 2025: 5; 2026: 1.
6 papers.
- 2025PRISM: High-Resolution & Precise Counterfactual Medical Image Generation using Language-guided Stable Diffusioncited by 17
- 2025CF-Seg: Counterfactuals meet Segmentationcited by 10
- 2025AURA: A Multi-Modal Medical Agent for Understanding, Reasoning & Annotationcited by 5
- 2025Pixel Perfect MegaMed: A Megapixel-Scale Vision-Language Foundation Model for Generating High Resolution Medical Imagescited by 0
- 2025Weight Space Correlation Analysis: Quantifying Feature Utilization in Deep Learning Modelscited by 0
- 2026FiRe: Fixed-Noise Refinement for Visual Counterfactual Explanationscited by 0
- 2026FiRe: Fixed-Noise Refinement for Visual Counterfactual Explanations9 Aug 2026
- 2025Weight Space Correlation Analysis: Quantifying Feature Utilization in Deep Learning Models15 Dec 2025
- 2025AURA: A Multi-Modal Medical Agent for Understanding, Reasoning & Annotation22 Jul 2025
- 2025Pixel Perfect MegaMed: A Megapixel-Scale Vision-Language Foundation Model for Generating High Resolution Medical Images17 Jul 2025
- 2025CF-Seg: Counterfactuals meet Segmentation19 Jun 2025
- 2025PRISM: High-Resolution & Precise Counterfactual Medical Image Generation using Language-guided Stable Diffusion28 Feb 2025