English

GenMed: A Pairwise Generative Reformulation of Medical Diagnostic Tasks

Computer Vision and Pattern Recognition 2026-05-12 v1

Abstract

Data-driven medical AI is traditionally formulated as a discriminative mapping from input XX to output YY via a learned function ff, 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)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.

Keywords

Cite

@article{arxiv.2605.10645,
  title  = {GenMed: A Pairwise Generative Reformulation of Medical Diagnostic Tasks},
  author = {Hantao Zhang and Weidong Guo and Yuhe Liu and Jiancheng Yang and Sathvik Bhagavan and Danli Shi and Mingda Xu and Pascal Fua},
  journal= {arXiv preprint arXiv:2605.10645},
  year   = {2026}
}