[Paper Review] Benchmarking Counterfactual Image Generation
The paper introduces a comprehensive SCM-based benchmark framework to evaluate counterfactual image generation methods, comparing VAE, HVAE, and GAN families on MorphoMNIST and CelebA using realism, minimality, composition, and effectiveness metrics. The results show Deep-SCM-based hierarchical variational approaches (HVAE) generally outperform other models across metrics.
Generative AI has revolutionised visual content editing, empowering users to effortlessly modify images and videos. However, not all edits are equal. To perform realistic edits in domains such as natural image or medical imaging, modifications must respect causal relationships inherent to the data generation process. Such image editing falls into the counterfactual image generation regime. Evaluating counterfactual image generation is substantially complex: not only it lacks observable ground truths, but also requires adherence to causal constraints. Although several counterfactual image generation methods and evaluation metrics exist, a comprehensive comparison within a unified setting is lacking. We present a comparison framework to thoroughly benchmark counterfactual image generation methods. We integrate all models that have been used for the task at hand and expand them to novel datasets and causal graphs, demonstrating the superiority of Hierarchical VAEs across most datasets and metrics. Our framework is implemented in a user-friendly Python package that can be extended to incorporate additional SCMs, causal methods, generative models, and datasets for the community to build on. Code: https://github.com/gulnazaki/counterfactual-benchmark.
Motivation & Objective
- Motivate the need for standardized evaluation of counterfactual image generation under structural causal models (SCMs).
- Propose a comprehensive, extendable benchmark framework and Python package for SCM-based counterfactuals.
- Systematically compare three model families (Normalising Flows, VAEs/HVAE, GANs) under the Abduction-Action-Prediction paradigm.
- Argue for realism and minimality as essential evaluation criteria in addition to axiomatic composition, effectiveness, and reversibility.
Proposed method
- Adopt Pearlian SCMs with Abduction-Action-Prediction for counterfactual inference in image generation.
- Compare three invertible mechanism families: conditional normalising flows, conditional VAEs/HVAEs, and conditional GANs within the Deep-SCM framework.
- Use end-to-end invertible or amortised mechanisms to model high-dimensional image variables along with low-dimensional attributes.
- Leverage evaluation metrics inspired by axioms (composition, effectiveness, reversibility) plus realism (FID) and minimality (CLD-based) for counterfactuals.
- Apply a standardized evaluation protocol on MorphoMNIST (32x32) and CelebA (64x64) with predefined causal graphs.
- Provide a Python package to facilitate extension to additional SCMs, models, and datasets.
Experimental results
Research questions
- RQ1How can counterfactual image generation be evaluated in a ground-truth-free setting under SCMs?
- RQ2Which model family (NF-based, VAE/HVAE, GAN) best supports accurate, realistic, and minimal counterfactuals across different datasets?
- RQ3Do realism and minimality metrics align with traditional axioms of counterfactuals when assessing image edits?
- RQ4How does a Deep-SCM-based HVAE compare to other approaches in composition, effectiveness, and realism across MorphoMNIST and CelebA?
Key findings
- HVAE (highly hierarchical VAE) consistently achieves best composition and minimal distortion across metrics and datasets.
- HVAE outperforms VAE and GAN families in composition (l1 image, l1 embeddings, LPIPS) and realism (FID) on MorphoMNIST and CelebA.
- Conditioning and cyclic training improve counterfactual fidelity, with HVAE and fine-tuned HVAE delivering strongest effectiveness in predicting intervened attributes.
- GANs struggle with multi-cycle composition and realism relative to HVAE, particularly on CelebA where their minimality and FID lag HVAE.
- Realism and minimality metrics correlate with qualitative preservation of original details in HVAE-based counterfactuals, while VAEs tend to blur and GANs distort content under repeated edits.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.