[Paper Review] Anatomically-Controllable Medical Image Generation with Segmentation-Guided Diffusion Models
This paper proposes a segmentation-guided diffusion model for anatomically realistic medical image generation by conditioning on partial or complete anatomical segmentation masks during sampling. Using a novel mask-ablation training strategy, the model learns to generate high-fidelity, anatomically plausible images even when some structures are masked out, achieving superior anatomical realism and mask faithfulness over state-of-the-art models like ControlNet on breast MRI and CT datasets.
Diffusion models have enabled remarkably high-quality medical image generation, yet it is challenging to enforce anatomical constraints in generated images. To this end, we propose a diffusion model-based method that supports anatomically-controllable medical image generation, by following a multi-class anatomical segmentation mask at each sampling step. We additionally introduce a random mask ablation training algorithm to enable conditioning on a selected combination of anatomical constraints while allowing flexibility in other anatomical areas. We compare our method ("SegGuidedDiff") to existing methods on breast MRI and abdominal/neck-to-pelvis CT datasets with a wide range of anatomical objects. Results show that our method reaches a new state-of-the-art in the faithfulness of generated images to input anatomical masks on both datasets, and is on par for general anatomical realism. Finally, our model also enjoys the extra benefit of being able to adjust the anatomical similarity of generated images to real images of choice through interpolation in its latent space. SegGuidedDiff has many applications, including cross-modality translation, and the generation of paired or counterfactual data. Our code is available at https://github.com/mazurowski-lab/segmentation-guided-diffusion.
Motivation & Objective
- To address the challenge of poor global anatomical realism in diffusion-based medical image generation.
- To enable flexible conditioning on partial or incomplete anatomical segmentation masks during image generation.
- To improve unconditional image generation by leveraging self-supervised learning through mask ablation during training.
- To facilitate applications such as pre-registered image synthesis and counterfactual analysis.
- To outperform existing mask-conditional and unconditional generative models in anatomical fidelity and input mask adherence.
Proposed method
- The model uses an image-space diffusion process conditioned on segmentation masks at every denoising step.
- It employs a mask-ablation training strategy that exposes the model to all possible combinations of missing anatomical classes in input masks.
- This training approach enables the model to infer and generate realistic anatomy in unmasked regions while faithfully following the provided constraints.
- The model is trained end-to-end on real medical images and their corresponding segmentation masks.
- An auxiliary segmentation network is used to evaluate mask faithfulness of generated images.
- The framework supports both conditional generation (with partial masks) and unconditional generation (with empty masks), with improved realism in the latter due to self-supervised learning.

Experimental results
Research questions
- RQ1Can a diffusion model generate more anatomically realistic medical images by incorporating segmentation mask guidance at every denoising step?
- RQ2Can a model learn to generate plausible anatomy in unmasked regions when provided with incomplete or ablated masks?
- RQ3Does mask-ablation training improve the model's ability to generate realistic images even in the unconditional (empty mask) setting?
- RQ4How does the model’s performance in anatomical realism and mask faithfulness compare to state-of-the-art models like ControlNet?
- RQ5Can the model be used to synthesize paired, pre-registered medical images for downstream applications?
Key findings
- The proposed model achieved a Dice score of 0.9027 for mask faithfulness on breast MRI and 0.8980 on CT organ datasets, significantly outperforming ControlNet’s 0.3636 and 0.1132, respectively.
- On the same datasets, the model achieved a Dice score of 0.8593 and 0.8797 for generated image segmentation overlap with real image predictions, indicating high anatomical fidelity.
- Even with empty masks (unconditional generation), the model produced more anatomically realistic images than a standard unconditional diffusion model, due to self-supervised learning from mask-ablated training.
- The segmentation network trained on the model’s synthetic data performed nearly as well as one trained on real data, with a Dice difference of less than 0.04, confirming high realism of generated images.
- The model successfully generated diverse, anatomically plausible images when constraining only subsets of structures (e.g., blood vessels and fibroglandular tissue), while allowing variation in others like breast shape.
- The authors publicly released a codebase and a dataset of paired, pre-registered generated breast MRIs to support community research.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.