GenMed: A Pairwise Generative Reformulation of Medical Diagnostic Tasks
About
Data-driven medical AI is traditionally formulated as a discriminative mapping from input $X$ to output $Y$ via a learned function $f$, which does not generalize well across heterogeneous data and modalities encountered in real-world clinical settings. In this work, we propose a fundamentally different, generative paradigm. We model the joint distribution $P(X,Y)$ using diffusion models and reframe inference as a test-time output optimization problem. By guiding the generative process to match observed inputs, our framework enables flexible, gradient-based conditioning at inference time without architectural changes or retraining, effectively supporting arbitrary and previously unseen combinations of observations. Extensive experiments demonstrate strong performance across standard and cross-modality medical image segmentation, few-shot segmentation with only 2 or 4 training samples, degraded-input segmentation, shape completion from sparse and partial observations, and zero-shot application to demonstrate generality. To support these evaluations, we curated and released a large-scale text-shape dataset derived from MedShapeNet. Our results highlight the versatility of generative joint modeling as a foundation for reusable, task-agnostic medical AI systems.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Full heart segmentation | MMWHS-CT (test) | Myo Dice78.76 | 16 | |
| Shape completion | MedShapeNet (test) | Dice Score84.19 | 16 | |
| Full heart segmentation | MMWHS-MRI (test) | Myo Dice57.97 | 16 | |
| Full heart segmentation | TotalSegmentator (TS) (test) | Dice (Myo)83.8 | 8 | |
| Shape completion | Eyeball Data (Left) | Dice Similarity Coefficient98.15 | 8 | |
| Shape completion | Eyeball Data (Right) | Dice Coefficient98.21 | 8 | |
| Shape completion | Eyeball Data (Average) | Dice98.18 | 8 | |
| Cardiac Segmentation | MM-WHS CT 2-shot (test) | Dice (Myocardium)70.3 | 5 | |
| Cardiac Segmentation | MM-WHS CT 4-shot (test) | Dice (Myocardium)72.05 | 5 | |
| Cardiac Segmentation | MM-WHS MRI 2-shot (test) | Dice (Myocardium)49.56 | 5 |