A Generative Foundation Model for Multimodal Histopathology
Authors: Jinxi Xiang, Mingjie Li, Siyu Hou, Yijiang Chen, Xiangde Luo, Yuanfeng Ji, Xiang Zhou, Ehsan Adeli, +4 more
Organizations: Department of Radiation Oncology, Stanford University School of Medicine, Stanford, CA · Department of Psychiatry and Behavioral Sciences, Stanford University School of Medicine, Stanford, CA · Department of Statistics and Data Science, Yale University, New Haven, CT · Department of Computer Science, Stanford University, CA · Department of Biomedical Data Science, Stanford University, Palo Alto, CA · Department of Radiology, Stanford University, Palo Alto, CA · Center for Artificial Intelligence in Medicine and Imaging, Stanford University, Palo Alto, CA · Department of Electrical Engineering, Stanford University, CA
Accurate diagnosis and treatment of complex diseases require integrating histological, molecular, and clinical data, yet in practice these modalities are often incomplete owing to tissue scarcity, assay cost, and workflow constraints. Existing computational approaches attempt to impute missing modalities from available data but rely on task-specific models trained on narrow, single source-target pairs, limiting their generalizability. Here we introduce MuPD (Multimodal Pathology Diffusion), a generative foundation model that embeds hematoxylin and eosin (H&E)-stained histology, molecular RNA profiles, and clinical text into a shared latent space through a diffusion transformer with decoupled cross-modal attention. Pretrained on 100 million histology image patches, 1.6 million text-histology pairs, and 10.8 million RNA-histology pairs spanning 34 human organs, MuPD supports diverse cross-modal synthesis tasks with minimal or no task-specific fine-tuning. For text-conditioned and image-to-image generation, MuPD synthesizes histologically faithful tissue architectures, reducing Fréchet inception distance (FID) scores by 50% relative to domain-specific models and improving few-shot classification accuracy by up to 47% through synthetic data augmentation. For RNA-conditioned histology generation, MuPD reduces FID by 23% compared with the next-best method while preserving cell-type distributions across five cancer types. As a virtual stainer, MuPD translates H&E images to immunohistochemistry and multiplex immunofluorescence, improving average marker correlation by 37% over existing approaches. These results demonstrate that a single, unified generative model pretrained across heterogeneous pathology modalities can substantially outperform specialized alternatives, providing a scalable computational framework for multimodal histopathology.
Figures & tables
Figure 1
Figure 2: Image generation conditioned with image or text prompts. a , Image-to-image generation. Representative examples and quantitative benchmarks demonstrate that MUPAD preserves authentic biological structures with greater fidelity than competing baselines, achieving superior Image–Image similarity and FID. b , Text-to-image generation. Visual examples illustrate that MUPAD accurately reconstructs fine-grained histological features from text prompts. MUPAD achieves superior performance across Image–Image similarity, Text–Image alignment, and FID. All metrics are presented as median values with 95% bootstrap confidence intervals. ↑ higher is better; ↓ lower is better.
Figure 3: Training data augmentation using MUPAD . a , Few-shot classification augmented with MUPAD via image-to-image generation. Augmenting with MUPAD -synthesised morphological variants consistently improves classification accuracy across both 5-shot and 10-shot settings on five evaluated datasets, demonstrating robust generalisation under data-scarce conditions. b , Pathology text–image retrieval augmented with MUPAD -generated image–text pairs. Fine-tuning a vanilla CLIP model on these synthetic pairs substantially improves both text-to-image (T2I) and image-to-text (I2T) retrieval at R@10 and R@50.
Figure 4
Figure 5: Virtual H&E-to-IHC translation and clinical validation. a, Visual examples of multi-stain virtual IHC generation. Compared to CycleGAN and CUT, MUPAD provides more accurate spatial stain rendering. b, FID and KID scores demonstrate that MUPAD achieves better distributional fidelity and perceptual quality. c, Clinical utility on the IHC4BC dataset. When using virtual IHC images to predict ground-truth clinical biomarkers (H-scores for ER/PR/Ki67; amplification status for HER2), MUPAD yields the highest AUC performance across all markers. Sub-0.5 AUC values for baseline methods indicate systematic inverse correlations with clinical labels, as observed the semantic misalignment in stain generation.
Figure 6
Figure 7: Ablation studies of MUPAD . (a) Comparison of the proposed decoupled cross-attention (DCA) against shared cross-attention across multimodal embeddings. DCA consistently improves performance across image-to-image, text-to-image, and RNA-to-image generation tasks , with relative FID reductions of 13.6%, 7.9%, and 12.4%, respectively. (b) FID and image similarity trajectories for image-to-image generation of SiT, REPA, and MUPAD . Lower FID and higher image similarity indicate better performance. (c) Visual comparison of image-to-image generation across training steps (20K–100K) for MUPAD , REPA [ 67 ] , and SiT [ 43 ] .
Extended Data Figure 1 : Fresh frozen to FFPE image translation results. Visual comparison of translation quality on Lung and Brain tissues. MUPAD successfully suppresses cryo-artifacts typical of fresh frozen sections while synthesizing realistic H&E staining characteristics. Baselines often suffer from saturation (AI-FFPE) or residual noise (CUT, CycleGAN). Quantitative evaluation showing MUPAD achieves the lowest FID (lower is better).
Extended Data Figure 2 : Generating H&E images from spatial transcriptomic. Synthetic samples preserve spatially resolved cell-type distributions for DLBCL, GBM, mesothelioma, and ovarian. The Wasserstein distance (W) quantifies the distribution alignment of real and synthetic. Lower is better.
Image-to-image
Text-to-image
RNA-to-image
FF-to-FFPE
HE-to-IHC
HE-to-mIF
(Rel. FID ↓ )
(Rel. FID ↓ )
(Rel. FID ↓ )
(Rel. FID ↓ )
Rel. FID ↓
AUC ↑
(Pearson ↑ )
MUPAD
1.00
1.00
1.00
1.00
1.00
0.977
0.464
PixCell
1.97
✗
✗
✗
✗
✗
✗
SDv3.5
4.43
2.80
✗
✗
✗
✗
✗
FLUX.2
2.46
2.45
✗
✗
✗
✗
✗
PathLDM
✗
1.79
✗
✗
✗
✗
✗
Extended Data Table 1 : Comparison of different methods and supported tasks. FID values are reported relative to MUPAD (1.00), where lower is better.
Computational pathology has made significant progress in recent years, fueling advances in both fundamental disease understanding and clinically ready tools. This evolution is driven by the availability of large amounts of digitized slides and specialized deep learning methods and models. Multiple self-supervised foundation feature extractors have been developed, enabling downstream predictive applications from cell segmentation to tumor sub-typing and survival analysis. In contrast, generative foundation models designed specifically for histopathology remain scarce. Such models could address tasks that are beyond the capabilities of feature extractors, such as virtual staining. In this paper, we introduce CytoSyn, a state-of-the-art foundation latent diffusion model that enables the guided generation of highly realistic and diverse histopathology H&E-stained images, as shown in an extensive benchmark. We explored methodological improvements, training set scaling, sampling strategies and slide-level overfitting, culminating in the improved CytoSyn-v2, and compared our work to PixCell, a state-of-the-art model, in an in-depth manner. This comparison highlighted the strong sensitivity of both diffusion models and performance metrics to preprocessing-specific details such as JPEG compression. Our model has been trained on a dataset obtained from more than 10,000 TCGA diagnostic whole-slide images of 32 different cancer types. Despite being trained only on oncology slides, it maintains state-of-the-art performance generating inflammatory bowel disease images. To support the research community, we publicly release CytoSyn's weights, its training and validation datasets, and a sample of synthetic images in this repository: https://huggingface.co/Owkin-Bioptimus/CytoSyn.
Thomas Duboudin, Xavier Fontaine, Etienne Andrier +7
State-of-the-art pathology foundation models, trained on millions of histology tiles, can fail to preserve tissue similarity when comparisons cross slide or institution boundaries. We show that general-purpose multimodal LLMs, without being trained as pathology foundation models, consistently outperform these specialized models in cross-domain histological similarity judgments. Using a relative similarity framework that we release as the MOSAIC (Model Similarity Assessment across Institutions and Cohorts) benchmark, we evaluate 17 models across 6 datasets and find that pathology encoders often rank same-institution, different-disease tiles as more similar than same-disease, different-institution tiles, a clinically dangerous failure mode invisible to standard within-domain evaluations. LLMs appear less susceptible to this failure, likely because they perform semantic visual comparison of morphology and tissue architecture rather than relying on shortcut features tied to acquisition context. Scaling training data does not resolve the problem for pathology encoders, implicating the learning objective rather than data coverage. Our results expose a fundamental robustness gap in current pathology foundation models and establish multimodal LLMs as a viable alternative for cross-institutional retrieval, dataset harmonization, and multi-site quality control. Code and data will be released upon acceptance.
Synthetic histopathology image generation has emerged as an approach that may address data scarcity in computational pathology, yet current evaluation methodologies may not fully assess synthetic data quality for medical applications. This work investigates and addresses limitations in existing evaluation metrics, investigating an approach for assessing synthetic histopathology image quality through domain-specific metrics and downstream task validation. We show that conventional synthetic data evaluation metrics such as Frechet Inception Distance (FID) and Inception Score (IS) may have limitations when applied to histopathology images due to their reliance on ImageNet-pretrained feature extractors. To address these limitations, we propose for consideration modified FID and IS approaches utilizing foundation models pretrained on digital pathology datasets, supplemented by precision-recall based metrics as part of an additional quality assessment. Using conditional denoising diffusion models trained on four benchmark datasets, with a two-step training approach, we generated synthetic datasets with systematically varied quality characteristics. We also measured the correlation between the synthetic data quality metrics with downstream nuclei segmentation performance using common metrics including the aggregated Jaccard index (AJI+) and the Dice coefficient. The study results suggest that pathology-specific metrics may provide improved discriminative power. Specifically, the modified Inception Score indicates higher correlation with downstream task performance (r=0.6096 with AJI+, p=0.0122), compared to the original IS (r=0.0708, p=0.7944). Our observations indicate that increasing the variety of generated training data has a higher positive correlation with segmentation model performance than improving the visual fidelity of individual generated images.
Seyed Kahaki, Shijie Li, Weijie Chen +1
Division of Imaging, Diagnostics, and Software Reliability, U.S. Food and Drug Administration (FDA)