mlsanityData to 14 Oct 2026

Counterfactual Contrastive Analysis

arXiv 2608.19032 ↗First posted 19 Aug 2026cs.CV cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

Visual Counterfactual Explanations (VCEs) aim to explain image classifiers by generating minimally edited and realistic versions of an input image that change the classifier's prediction. Existing VCE methods are inherently classifier-dependent and therefore susceptible to classifier biases and failure modes, such as sensitivity to shortcut features and calibration errors. In this paper, we propose a classifier-free approach for visual counterfactual generation based on Contrastive Analysis (CA). Given two datasets corresponding to different classes (e.g., healthy and patients), we disentangle the generative factors that are common across the two datasets from those that are salient to each dataset, and generate counterfactual images by swapping only the salient factors. By operating directly on data distributions rather than decision boundaries, our method provides model-agnostic VCEs that are less sensitive to classifier biases. Our approach leverages the high-quality synthesis and well-structured latent space of StyleGAN2. We use the feature space F, instead than the usual W-space, to improve detail preservation. Unlike conventional CA approaches, which typically assume salient factors in only one dataset, we introduce an adapted framework and loss functions for VCE that allow multiple salient factors in each dataset. We evaluate our method on three medical imaging datasets and demonstrate superior counterfactual generation quality compared to existing approaches.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 30 of its 38 references that are in the map. First posted on arXiv 19 Aug 2026.

Builds on

30 of 38 references.

References · 30

  1. 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,364
  2. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
  3. 2018The Unreasonable Effectiveness of Deep Features as a Perceptual Metriccited by 11,177
  4. 2023SDXL: Improving Latent Diffusion Models for High-Resolution Image Synthesiscited by 4,356
  5. 2019Analyzing and Improving the Image Quality of StyleGANcited by 3,588
  6. 2025FLUX.1 Kontext: Flow Matching for In-Context Image Generation and Editing in Latent Spacecited by 1,006
  7. 2018Challenging Common Assumptions in the Unsupervised Learning of Disentangled Representationscited by 941
  8. 2020Encoding in Style: a StyleGAN Encoder for Image-to-Image Translationcited by 727
  9. 2016Domain Separation Networkscited by 320
  10. 2019Counterfactual Visual Explanationscited by 313
  11. 2018Nonlinear ICA Using Auxiliary Variables and Generalized Contrastive Learningcited by 282
  12. 2021Explaining in Style: Training a GAN to explain a classifier in StyleSpacecited by 122
18 more
  1. 2022Diffusion Visual Counterfactual Explanationscited by 96
  2. 2022Diffusion Models for Counterfactual Explanationscited by 79
  3. 2019Explanation by Progressive Exaggerationcited by 76
  4. 2018Image-to-image translation for cross-domain disentanglementcited by 61
  5. 2021Beyond Trivial Counterfactual Explanations with Diverse Valuable Explanationscited by 56
  6. 2019Learning Disentangled Representations via Mutual Information Estimationcited by 52
  7. 2023Adversarial Counterfactual Visual Explanationscited by 47
  8. 2023Fast Diffusion-Based Counterfactuals for Shortcut Removal and Generationcited by 41
  9. 2022From Statistical to Causal Learningcited by 40
  10. 2023Text-to-Image Models for Counterfactual Explanations: a Black-Box Approachcited by 28
  11. 2019Domain Intersection and Domain Differencecited by 17
  12. 2018Unsupervised learning with contrastive latent variable modelscited by 15
  13. 2022Moment Matching Deep Contrastive Latent Variable Modelscited by 13
  14. 2022Gacs-Korner Common Information Variational Autoencodercited by 12
  15. 2023SepVAE: a contrastive VAE to separate pathological patterns from healthy onescited by 10
  16. 2024Double InfoGAN for Contrastive Analysiscited by 7
  17. 2024Separating common from salient patterns with Contrastive Representation Learningcited by 6
  18. 2025Learning Common and Salient Generative Factors Between Two Image Datasetscited by 3

Built on by

Not cited yet.