MedDiME: Efficient Latent Diffusion with Adaptive Masking for Medical Counterfactual Generation

Yan Zeng, Changlu Guo, Anders Nymark Christensen, Morten Rieger Hannemose, Anders Bjorholm Dahl
9/14/2026
cs.CV

No confident code implementation found for this paper.

Abstract

Medical counterfactual generation modifies images to change model predictions for interpretability. However, existing diffusion-based approaches are often prohibitively slow and memory-intensive, making them difficult to apply in high-resolution settings. Moreover, existing masking strategies are tightly coupled with pixel-space representations, making them incompatible with latent-space diffusion editing. To address these challenges, we propose MedDiME, a latent-space classifier-guided diffusion framework that reduces computational and memory overhead while introducing a latent-compatible, gradient-driven adaptive masking mechanism for spatially precise medical counterfactual generation. Extensive experiments demonstrate that MedDiME achieves high-quality counterfactual generation with significant efficiency gains compared to prior classifier-guided diffusion baselines, achieving up to 40 times faster inference and 13 times lower peak GPU memory usage.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{zeng2026meddime,
  title  = {MedDiME: Efficient Latent Diffusion with Adaptive Masking for Medical Counterfactual Generation},
  author = {Yan Zeng and Changlu Guo and Anders Nymark Christensen and Morten Rieger Hannemose and Anders Bjorholm Dahl},
  year   = {2026},
  eprint = {2609.15647},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.15647v1}
}

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

Discussion