Flow Matching for Medical Image Synthesis: Bridging the Gap Between Speed and Quality

Milad Yazdani, Yasamin Medghalchi, Pooria Ashrafian, Ilker Hacihaliloglu, Dena Shahriari
3/1/2025
cs.CVeess.IV

Official code: milad1378yz/MOTFM (78 stars, MIT, last commit 2026-03-16).

Abstract

Deep learning models have emerged as a powerful tool for various medical applications. However, their success depends on large, high-quality datasets that are challenging to obtain due to privacy concerns and costly annotation. Generative models, such as diffusion models, offer a potential solution by synthesizing medical images, but their practical adoption is hindered by long inference times. In this paper, we propose the use of an optimal transport flow matching approach to accelerate image generation. By introducing a straighter mapping between the source and target distribution, our method significantly reduces inference time while preserving and further enhancing the quality of the outputs. Furthermore, this approach is highly adaptable, supporting various medical imaging modalities, conditioning mechanisms (such as class labels and masks), and different spatial dimensions, including 2D and 3D. Beyond image generation, it can also be applied to related tasks such as image enhancement. Our results demonstrate the efficiency and versatility of this framework, making it a promising advancement for medical imaging applications. Code with checkpoints and a synthetic dataset (beneficial for classification and segmentation) is now available on: https://github.com/milad1378yz/MOTFM.

View on arXivView PDF

Code Implementations(1)

milad1378yz/MOTFMOfficial100%
MIT

Flow Matching for Medical Image Synthesis: Bridging the Gap Between Speed and Quality

7812PythonFeb 28, 20257 months agoMIT
brain-mridiffusion-modelsechocardiographyflow-matchinggenerative-models+5 more

Similar Papers

Cite this paper

@article{yazdani2025flow,
  title  = {Flow Matching for Medical Image Synthesis: Bridging the Gap Between Speed and Quality},
  author = {Milad Yazdani and Yasamin Medghalchi and Pooria Ashrafian and Ilker Hacihaliloglu and Dena Shahriari},
  year   = {2025},
  eprint = {2503.00266},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.00266v1}
}

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

Discussion