PRISM: High-Resolution & Precise Counterfactual Medical Image Generation using Language-guided Stable Diffusion

Amar Kumar, Anita Kriz, Mohammad Havaei, Tal Arbel
2/28/2025
cs.CVcs.AI

Official code: Amarkr1/PRISM (24 stars, last commit 2025-07-08).

Abstract

Developing reliable and generalizable deep learning systems for medical imaging faces significant obstacles due to spurious correlations, data imbalances, and limited text annotations in datasets. Addressing these challenges requires architectures that are robust to the unique complexities posed by medical imaging data. Rapid advancements in vision-language foundation models within the natural image domain prompt the question of how they can be adapted for medical imaging tasks. In this work, we present PRISM, a framework that leverages foundation models to generate high-resolution, language-guided medical image counterfactuals using Stable Diffusion. Our approach demonstrates unprecedented precision in selectively modifying spurious correlations (the medical devices) and disease features, enabling the removal and addition of specific attributes while preserving other image characteristics. Through extensive evaluation, we show how PRISM advances counterfactual generation and enables the development of more robust downstream classifiers for clinically deployable solutions. To facilitate broader adoption and research, we make our code publicly available at https://github.com/Amarkr1/PRISM.

View on arXivView PDF

Code Implementations(1)

Amarkr1/PRISMOfficial100%

Official implemention of the paper High-Resolution and Precise Counterfactual Medical Image Generation using Language-guided Stable Diffusion

242Python, Jupyter NotebookJan 30, 20251 years ago

Similar Papers

Cite this paper

@article{kumar2025prism,
  title  = {PRISM: High-Resolution & Precise Counterfactual Medical Image Generation using Language-guided Stable Diffusion},
  author = {Amar Kumar and Anita Kriz and Mohammad Havaei and Tal Arbel},
  year   = {2025},
  eprint = {2503.00196},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.00196v2}
}

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

Discussion