Benchmarking Counterfactual Image Generation

Thomas Melistas, Nikos Spyrou, Nefeli Gkouti, Pedro Sanchez, Athanasios Vlontzos +2 more
2/3/2026

No official code found. Best implementation: gulnazaki/counterfactual-benchmark (31 stars, MIT, last commit 2025-04-30).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

MIT

Benchmark study of quality and faithfulness of counterfactual image generation

317PythonOct 5, 20231 years agoMIT

Similar Papers

Cite this paper

@article{melistas2026benchmarking,
  title  = {Benchmarking Counterfactual Image Generation},
  author = {Thomas Melistas and Nikos Spyrou and Nefeli Gkouti and Pedro Sanchez and Athanasios Vlontzos and G. Papanastasiou and S. Tsaftaris},
  year   = {2026},
  eprint = {2403.20287},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2403.20287},
  url    = {https://arxiv.org/abs/2403.20287},
  journal = {NEURIPS 2024 2024}
}

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/2403.20287.svg)](https://codeofpaper.com/paper/2403.20287)

Discussion