Diffusion Counterfactual Generation with Semantic Abduction

Rajat Rasal, Avinash Kori, Fabio De Sousa Ribeiro, Tian Xia, Ben Glocker
6/9/2025
cs.LGcs.AIcs.CV

No official code found. Best implementation: RajatRasal/Diffusion-Counterfactuals (10 stars, MIT, last commit 2025-11-14).

Abstract

Counterfactual image generation presents significant challenges, including preserving identity, maintaining perceptual quality, and ensuring faithfulness to an underlying causal model. While existing auto-encoding frameworks admit semantic latent spaces which can be manipulated for causal control, they struggle with scalability and fidelity. Advancements in diffusion models present opportunities for improving counterfactual image editing, having demonstrated state-of-the-art visual quality, human-aligned perception and representation learning capabilities. Here, we present a suite of diffusion-based causal mechanisms, introducing the notions of spatial, semantic and dynamic abduction. We propose a general framework that integrates semantic representations into diffusion models through the lens of Pearlian causality to edit images via a counterfactual reasoning process. To our knowledge, this is the first work to consider high-level semantic identity preservation for diffusion counterfactuals and to demonstrate how semantic control enables principled trade-offs between faithful causal control and identity preservation.

View on arXivView PDF

Code Implementations(1)

MIT

Code for ICML 2025 paper "Diffusion Counterfactual Generation with Semantic Abduction"

103Shell, PythonMay 15, 202511 months agoMIT

Similar Papers

Cite this paper

@article{rasal2025diffusion,
  title  = {Diffusion Counterfactual Generation with Semantic Abduction},
  author = {Rajat Rasal and Avinash Kori and Fabio De Sousa Ribeiro and Tian Xia and Ben Glocker},
  year   = {2025},
  eprint = {2506.07883},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.07883v1},
  journal = {ICML 2025 2025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.07883.svg)](https://codeofpaper.com/paper/2506.07883)

Discussion