MedSymmFlow: Bridging Generative Modeling and Classification in Medical Imaging through Symmetrical Flow Matching
Francisco Caetano, Lemar Abdi, Christiaan Viviers, Amaan Valiuddin, Fons van der Sommen
TL;DR
MedSymmFlow introduces a generative-discriminative hybrid for medical imaging by extending Symmetrical Flow Matching with semantic RGB conditioning and a latent-space formulation to enable high-resolution classification, generation, and uncertainty quantification. The approach yields competitive accuracy and AUC on four MedMNISTv2 datasets while providing calibrated uncertainty through its generative sampling process and a distance-based proxy. RGB-conditioned multiclass handling and latent-space processing address scaling and discriminative limitations, supporting reliable selective prediction in clinical contexts. The work demonstrates the practicality of a unified framework that jointly learns diagnostic representations and realistic syntheses, with potential to improve data augmentation, uncertainty-aware decision-making, and safe deployment in high-stakes medical imaging applications.
Abstract
Reliable medical image classification requires accurate predictions and well-calibrated uncertainty estimates, especially in high-stakes clinical settings. This work presents MedSymmFlow, a generative-discriminative hybrid model built on Symmetrical Flow Matching, designed to unify classification, generation, and uncertainty quantification in medical imaging. MedSymmFlow leverages a latent-space formulation that scales to high-resolution inputs and introduces a semantic mask conditioning mechanism to enhance diagnostic relevance. Unlike standard discriminative models, it naturally estimates uncertainty through its generative sampling process. The model is evaluated on four MedMNIST datasets, covering a range of modalities and pathologies. The results show that MedSymmFlow matches or exceeds the performance of established baselines in classification accuracy and AUC, while also delivering reliable uncertainty estimates validated by performance improvements under selective prediction.
