Counterfactual Image Editing
Yushu Pan, Elias Bareinboim
Abstract
Counterfactual image editing is an important task in generative AI, which asks how an image would look if certain features were different. The current literature on the topic focuses primarily on changing individual features while remaining silent about the causal relationships between these features, as present in the real world. In this paper, we formalize the counterfactual image editing task using formal language, modeling the causal relationships between latent generative factors and images through a special type of model called augmented structural causal models (ASCMs). Second, we show two fundamental impossibility results: (1) counterfactual editing is impossible from i.i.d. image samples and their corresponding labels alone; (2) even when the causal relationships between the latent generative factors and images are available, no guarantees regarding the output of the model can be provided. Third, we propose a relaxation for this challenging problem by approximating non-identifiable counterfactual distributions with a new family of counterfactual-consistent estimators. This family exhibits the desirable property of preserving features that the user cares about across both factual and counterfactual worlds. Finally, we develop an efficient algorithm to generate counterfactual images by leveraging neural causal models.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
7 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Causal-Adapter: Taming Text-to-Image Diffusion for Faithful Counterfactual Generation cites NVAE: A Deep Hierarchical Variational Autoencoder
- Causal-Adapter: Taming Text-to-Image Diffusion for Faithful Counterfactual Generation cites Counterfactual Identifiability via Dynamic Optimal Transport
- Blended Diffusion for Text-driven Editing of Natural Images cites Learning Transferable Visual Models From Natural Language Supervision
- Blended Diffusion for Text-driven Editing of Natural Images cites Denoising Diffusion Probabilistic Models
- From Black-box to Causal-box: Towards Building More Interpretable Models cites Disentangled Representation Learning in Non-Markovian Causal Systems
- From Black-box to Causal-box: Towards Building More Interpretable Models cites Learning Transferable Visual Models From Natural Language Supervision
- Score-Based Generative Modeling through Stochastic Differential Equations cites Denoising Diffusion Probabilistic Models
- Counterfactual Image Editing with Disentangled Causal Latent Space cites Disentangled Representation Learning in Non-Markovian Causal Systems
- Counterfactual Image Editing with Disentangled Causal Latent Space cites From Black-box to Causal-box: Towards Building More Interpretable Models
- Counterfactual Image Editing with Disentangled Causal Latent Space cites Learning Transferable Visual Models From Natural Language Supervision
- Counterfactual Image Editing with Disentangled Causal Latent Space cites Denoising Diffusion Probabilistic Models
Cited by top-tier papers7
- Disentangled Representation Learning in Non-Markovian Causal SystemsAdam Li, Yushu Pan, Elias BareinboimNeurIPS 2024 · 15 citations
- Counterfactual Identifiability via Dynamic Optimal TransportFabio De Sousa Ribeiro, Ainkaran Santhirasekaram, Ben GlockerNeurIPS 2025 · 7 citations
- Counterfactual Image Editing with Disentangled Causal Latent SpaceYushu Pan, Elias BareinboimNeurIPS 2025 · 7 citations
- From Black-box to Causal-box: Towards Building More Interpretable ModelsInwoo Hwang, Yushu Pan, Elias BareinboimNeurIPS 2025 · 3 citations
- Causal-Adapter: Taming Text-to-Image Diffusion for Faithful Counterfactual GenerationLei Tong, Zhihua Liu, Chaochao Lu, Dino Oglic et al.ICML 2026 · 2 citations
Builds on30
- Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh et al.ICML 2021 · 47,906 citations
- Denoising Diffusion Probabilistic ModelsJonathan Ho, Ajay Jain, Pieter AbbeelNeurIPS 2020 · 35,902 citations
- Score-Based Generative Modeling through Stochastic Differential EquationsYang Song, Jascha Sohl-Dickstein, Diederik P. Kingma, Abhishek Kumar et al.ICLR 2021 · 1,270 citations
- NVAE: A Deep Hierarchical Variational AutoencoderArash Vahdat, Jan KautzNeurIPS 2020 · 1,141 citations
- Blended Diffusion for Text-driven Editing of Natural ImagesOmri Avrahami, Dani Lischinski, Ohad FriedCVPR 2022 · 670 citations
Related papers
- High Fidelity Image Counterfactuals with Probabilistic Causal ModelsFabio De Sousa Ribeiro, Tian Xia, Miguel Monteiro, Nick Pawlowski et al.ICML 2023 · 68 citations
- Causally Consistent Normalizing FlowQingyang Zhou, Kangjie Lu, Meng XuAAAI 2025
- Neural Causal Models for Counterfactual Identification and EstimationKevin Muyuan Xia, Yushu Pan, Elias BareinboimICLR 2023 · 3 citations
- Towards Characterizing Domain Counterfactuals for Invertible Latent Causal ModelsZeyu Zhou, Ruqi Bai, Sean Kulinski, Murat Kocaoglu et al.ICLR 2024 · 4 citations
- Measuring axiomatic soundness of counterfactual image modelsMiguel Monteiro, Fabio De Sousa Ribeiro, Nick Pawlowski, Daniel C. Castro et al.ICLR 2023 · 2 citations
