WILSON - a pathology foundation model framework for patient-level analysis and diagnostic text generation
Organizations: KIMIA Lab, Department of AI & Informatics, Mayo Clinic, Rochester, MN, USA. · Department of Laboratory Medicine and Pathology, Mayo Clinic, Rochester, MN, USA. · Department of Quantitative Health Sciences, Mayo Clinic, Rochester, MN, USA. · Mayo Clinic Comprehensive Cancer Center, Mayo Clinic, Rochester, MN, USA. · Division of Breast and Melanoma Surgical Oncology, Department of Surgery, Mayo Clinic, Rochester, MN, USA. · Department of Oncology, Mayo Clinic, Rochester, MN, USA.
Abstract
Pathologists integrate morphology across magnifications and across the slides of a patient case, whereas pathology foundation models encode thousands of tiles from single slides and aggregate their features. Here we present WILSON, a vision--language foundation model that represents whole-slide images and multi-slide cases as single multi-magnification composite images, trained on approximately 189k slides from Mayo Clinic spanning 42 organs and 829 diagnostic entities using pathology reports as supervision. Without task-specific training, WILSON exceeded a dedicated case-level model on all internal cohorts (macro-F1 0.52 versus 0.38) and matched slide-level models up to 9.4 times larger at 272- to 2,155-fold lower compute. End-to-end fine-tuning on 508 triple-negative breast cancer cases improved histologic subtyping and stromal tumor-infiltrating lymphocyte grading by 0.16 and 0.11 macro-F1. WILSON retrieved matching diagnostic text at 75.6% recall@1 (PRISM, 58.1%) and generated captions closer to report-derived references than PRISM and PRISM2 on the internal cohort and on most external comparisons. Composite images thus offer a compact, clinically aligned computational unit for pathology.
Figures & tables
Appendix figures & tables39 assets
Supplementary material from the paper’s appendix.
Appendix
| Dataset | Task | Yottixel + UNI | Composite + UNI |
|---|---|---|---|
| BCTherapy | Treatment response | 0.51 | 0.56 |
| MayoSkin | Diagnostic classification | 0.33 | 0.34 |
| MayoBreast | Diagnostic classification | 0.31 | 0.35 |
| TCGA-Kidney | Diagnostic classification | 0.89 | 0.88 |
| Base zero-shot | Fine-tuned zero-shot | Fine-tuned classification | ||||
|---|---|---|---|---|---|---|
| Task | acc | Macro avg | acc | Macro avg | acc | Macro avg |
| Histology | 0.617 | 0.401 | 0.637 | 0.428 | 0.690 | 0.557 |
| sTILs | 0.412 | 0.425 | 0.432 | 0.456 | 0.541 | 0.531 |
| Direction | Model | R@1 (%) | R@3 (%) | R@5 (%) | R@10 (%) |
|---|---|---|---|---|---|
| Image-to-Text | WILSON | 78.29 | 85.75 | 88.82 | 92.11 |
| PRISM | 60.09 | 66.45 | 69.74 | 75.66 | |
| (W P) | +18.20 | +19.30 | +19.08 | +16.45 | |
| Text-to-Image | WILSON | 81.14 | 94.08 | 96.49 | 98.03 |
| PRISM | 56.36 | 77.85 | 82.89 | 87.72 | |
| (W P) | +24.78 | +16.23 | +13.60 | +10.31 |
| Direction | Model | R@1 (%) | R@3 (%) | R@5 (%) | R@10 (%) |
|---|---|---|---|---|---|
| Image-to-Text | WILSON | 77.78 | 83.33 | 86.36 | 89.90 |
| PRISM | 64.14 | 65.15 | 67.17 | 68.69 | |
| (W P) | +13.64 | +18.18 | +19.19 | +21.21 | |
| Text-to-Image | WILSON | 80.81 | 94.95 | 97.98 | 98.48 |
| PRISM | 55.56 | 67.68 | 74.24 | 78.79 | |
| (W P) | +25.25 | +27.27 | +23.74 | +19.70 |
| Direction | Model | R@1 (%) | R@3 (%) | R@5 (%) | R@10 (%) |
|---|---|---|---|---|---|
| Image-to-Text | WILSON | 78.18 | 89.09 | 90.91 | 93.64 |
| PRISM | 59.09 | 63.64 | 69.09 | 80.00 | |
| (W P) | +19.09 | +25.45 | +21.82 | +13.64 | |
| Text-to-Image | WILSON | 83.64 | 92.73 | 95.45 | 99.09 |
| PRISM | 70.91 | 95.45 | 98.18 | 98.18 | |
| (W P) | +12.73 | -2.73 | -2.73 | +0.91 |
| Direction | Model | R@1 (%) | R@3 (%) | R@5 (%) | R@10 (%) |
|---|---|---|---|---|---|
| Image-to-Text | WILSON | 85.81 | 91.89 | 93.92 | 96.62 |
| PRISM | 81.76 | 87.84 | 90.54 | 95.95 | |
| (W P) | +4.05 | +4.05 | +3.38 | +0.68 | |
| Text-to-Image | WILSON | 85.14 | 95.95 | 96.62 | 97.97 |
| PRISM | 65.54 | 92.57 | 95.27 | 96.62 | |
| (W P) | +19.59 | +3.38 | +1.35 | +1.35 |
| Direction | Model | R@1 (%) | R@3 (%) | R@5 (%) | R@10 (%) |
|---|---|---|---|---|---|
| Image-to-Text | WILSON | 41.94 | 58.87 | 65.32 | 78.23 |
| PRISM | 20.16 | 40.32 | 55.65 | 81.45 | |
| (W P) | +21.77 | +18.55 | +9.68 | -3.23 | |
| Text-to-Image | WILSON | 54.03 | 70.97 | 82.26 | 88.71 |
| PRISM | 41.13 | 62.10 | 71.77 | 87.10 | |
| (W P) | +12.90 | +8.87 | +10.48 | +1.61 |
| Direction | Model | R@1 (%) | R@3 (%) | R@5 (%) | R@10 (%) |
|---|---|---|---|---|---|
| Image-to-Text | WILSON | 82.56 | 86.05 | 93.02 | 96.51 |
| PRISM | 63.22 | 93.10 | 96.55 | 100.00 | |
| (W P) | +19.34 | -7.06 | -3.53 | -3.49 | |
| Text-to-Image | WILSON | 77.91 | 90.70 | 94.19 | 100.00 |
| PRISM | 54.02 | 59.77 | 67.82 | 78.16 | |
| (W P) | +23.88 | +30.93 | +26.37 | +21.84 |
| Image-to-Text R@1 (%) | Text-to-Image R@1 (%) | |||
|---|---|---|---|---|
| Dataset | WILSON | PRISM | WILSON | PRISM |
| MayoCaption (all) | 78.29 | 60.09 | 8 1.14 | 56.36 |
| Mayo – Duodenum | 77.78 | 64.14 | 80.81 | 55.56 |
| Mayo – Pancreas | 78.18 | 59.09 | 83.64 | 70.91 |
| Mayo – Stomach | 85.81 | 81.76 | 85.14 | 65.54 |
| TCGA – Brain | 41.94 | 20.16 | 54.03 | 41.13 |
| WILSON (%) | PRISM (%) | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Dataset | Direction | R@1 | R@3 | R@5 | R@10 | R@1 | R@3 | R@5 | R@10 |
| MayoCaption | I2T | 78.29 | 85.75 | 88.82 | 92.11 | 60.09 | 66.45 | 69.74 | 75.66 |
| T2I | 81.14 | 94.08 | 96.49 | 98.03 | 56.36 | 77.85 | 82.89 | 87.72 | |
| Mayo – Duodenum | I2T | 77.78 | 83.33 | 86.36 | 89.90 | 64.14 | 65.15 | 67.17 | 68.69 |
| T2I | 80.81 | 94.95 | 97.98 | 98.48 | 55.56 | 67.68 | 74.24 | 78.79 | |
| Mayo – Pancreas | I2T | 78.18 | 89.09 | 90.91 | 93.64 | 59.09 | 63.64 | 69.09 | 80.00 |
| R@1 | R@10 | |||||
|---|---|---|---|---|---|---|
| Dataset / Direction | PRISM | WILSON | PRISM | WILSON | ||
| MayoCaption I2T | 60.1 | 78.3 | +18.2 | 75.7 | 92.1 | +16.4 |
| MayoCaption T2I | 56.4 | 81.1 | +24.7 | 87.7 | 98.0 | +10.3 |
| Mayo Duodenum I2T | 64.1 | 77.8 | +13.7 | 68.7 | 89.9 | +21.2 |
| Mayo Duodenum T2I | 55.6 | 80.8 | +25.2 | 78.8 | 98.5 | +19.7 |
| Mayo Pancreas I2T | 59.1 | 78.2 | +19.1 | 80.0 | 93.6 | +13.6 |
| Model | Architecture | Total params | FLOPs per tile | FLOPs per WSI |
|---|---|---|---|---|
| Prov-GigaPath | ViT-G/14 (DINOv2) + LongNet | 1,220M | 555.4G | 5.56P |
| PRISM2 | Virchow2 (ViT-H/14) + PerceiverAR | 1,251M | 413.2G | 4.13P |
| PRISM | Virchow (ViT-H/14) + Perceiver | 730.3M | 406.7G | 4.07P |
| TITAN | CONCH v1.5 (ViT-L/16) + slide encoder | 354.6M | 70.0G | 703.19T |
| MOOZY | ViT-S/8 (Lunit DINO) + ViT 6L, 768-d | 85.8M | — | 25.07T |
| WILSON | ConvNeXt-Base + extended head (single pass) | 133.7M | — | 2.58T |
| Mayo Clinic | HistAI | TCGA | |||||||
|---|---|---|---|---|---|---|---|---|---|
| Metric | PRISM | PRISM2 | WILSON | PRISM | PRISM2 | WILSON | PRISM | PRISM2 | WILSON |
| BLEU-4 | 0.0004 | 0.0034 | 0.0155 | 0.0000 | 0.0004 | 0.0017 | 0.0019 | 0.0023 | 0.0085 |
| CIDEr | 0.0022 | 0.0550 | 0.2236 | 0.0944 | 0.0199 | 0.0236 | 0.0204 | 0.0272 | 0.0903 |
| ROUGE-1 | 0.1424 | 0.2307 | 0.3711 | 0.1196 | 0.0948 | 0.1617 | 0.1825 | 0.2148 | 0.2136 |
| ROUGE-L | 0.1189 | 0.1670 | 0.2556 | 0.1023 | 0.0801 | 0.1262 | 0.1497 | 0.1596 | 0.1592 |
| BERTScore-P | 0.8812 | 0.8946 | 0.8627 | 0.8519 | 0.8290 | 0.8383 | 0.8808 | 0.8740 | 0.8609 |
| Dataset | Organ | Task | Classes | Patients | Slides | Format |
|---|---|---|---|---|---|---|
| Mayo189K | Various | WILSON Training | N/A | 112,296 | 189,291 | DICOM |
| MayoBreast | Breast (tumor, nontumor) | Histological subtype classification | 12 | 1,289 | 1,339 | DICOM |
| MayoSkin | Skin (tumor, nontumor) | Histological subtype classification | 20 | 677 | 688 | DICOM |
| MayoTNBC | Breast carcinoma (triple negative) | Fine tuning | 4/4 | 508 | 508 | Philips Tiff |
| MayoCaption | Three organs | Cross-modal retrieval | 18 | 397 | 456 | DICOM |
| MayoDuodenum | Duodenum | Cross-modal retrieval | 7 | 172 | 198 | DICOM |
| Dataset | Organ | Task | Classes | Cases | WSIs | Format |
|---|---|---|---|---|---|---|
| MayoCaseBreast | Breast (tumor, nontumor) | Histological subtype classification | 12 | 494 | 4,361 | DICOM |
| MayoCaseSkin | Skin (tumor, nontumor) | Histological subtype classification | 20 | 500 | 1,280 | DICOM |
| MayoBreastSubtype | Breast carcinoma | Molecular subtype classification | 3 | 846 | 2,254 | DICOM |
| CPTAC-BRCA National Cancer Institute Clinical Proteomic Tumor Analysis Consortium (CPTAC) (2020) | Breast carcinoma | PAM50 subtype classification | 5 | 198 | 653 | SVS |
| Class | Count |
|---|---|
| Invasive carcinoma of no special type | 812 |
| Invasive lobular carcinoma | 204 |
| Ductal and lobular carcinoma | 27 |
| Mucinous adenocarcinoma | 20 |
| Metaplastic carcinoma | 13 |
| Medullary carcinoma | 7 |
| Class | Count |
|---|---|
| RD | 119 |
| pCR | 41 |
| Class | Count |
|---|---|
| Invasive breast carcinoma of no special type (ductal) | 350 |
| Invasive lobular carcinoma | 70 |
| Mixed ductal and lobular carcinoma | 70 |
| Mucinous carcinoma | 70 |
| Metaplastic carcinoma | 70 |
| Ductal carcinoma in situ | 210 |
| Class | Count |
|---|---|
| Lentigo | 41 |
| Actinic keratosis | 40 |
| Malignant melanoma | 40 |
| Blue nevus | 39 |
| Dermatofibroma | 38 |
| Verrucae | 38 |
| Class | Count |
|---|---|
| Hormone receptor-positive/HER2-negative | 269 |
| HER2-positive | 303 |
| Triple-negative | 274 |
| Class | Count |
|---|---|
| Luminal A | 57 |
| Basal-like | 27 |
| Luminal B | 17 |
| HER2-enriched | 14 |
| Normal-like | 5 |
| Class | Count |
|---|---|
| Invasive carcinoma of no special type (ductal) | 44 |
| Invasive lobular carcinoma | 42 |
| Mixed ductal and lobular carcinoma | 40 |
| Mucinous carcinoma | 41 |
| Metaplastic carcinoma | 38 |
| Ductal carcinoma in situ | 40 |
| Class | Count |
|---|---|
| Sebaceous gland hyperplasia | 31 |
| Dermatofibroma | 31 |
| Malignant melanoma | 31 |
| Skin tag | 29 |
| Nevus with atypia | 28 |
| Seborrheic keratosis | 27 |
| WSI ID | Organ |
|---|---|
| case_00760/slide_H&E_0.tiff | Bone |
| case_03070/slide_H&E_0.tiff | Bone |
| case_09511/slide_H&E_0.tiff | Bone |
| case_11368/slide_H&E_0.tiff | Bone |
| case_11593/slide_H&E_0.tiff | Bone |
| case_01871/slide_H&E_0.tiff | Breast |
| WSI ID | Organ |
|---|---|
| TCGA-06-0143-01Z-00-DX3.e9011249-11f6-454b-98f1-7f2bcfea228c.svs | Brain |
| TCGA-06-0154-01Z-00-DX1.e52d5443-e663-451f-8a1f-83ec5bb9a401.svs | Brain |
| TCGA-DB-A75P-01Z-00-DX1.11655479-5A76-4689-B8F6-319F882B5EB7.svs | Brain |
| TCGA-DU-A6S3-01Z-00-DX1.08CE6930-D4E8-4084-A8C0-F2911B069E72.svs | Brain |
| TCGA-HT-7680-01Z-00-DX3.C157242E-F4D2-4246-8016-B0A44C4C4AAD.svs | Brain |
| TCGA-AC-A2QH-01Z-00-DX1.00B8BFFF-F1E2-4F99-A969-8DD7EE4F8E0B.svs | Breast |
| Stage | Paired WSIs | Composites | Val. frac. | Epochs | GPUs | Eff. batch |
|---|---|---|---|---|---|---|
| WILSON-distill | 178,020 | 1,759,787 | 0.02 | 20 | 32 (4 8) | 2,048 |
| WILSON-KW (keyword regr.) | 178,088 | 1,760,461 | 0.10 | 7 | 8 (1 8) | 512 |
| WILSON-CLIP, Phase 2 | 1,760,461 * | 1,760,461 * | 0.199 * | 20 | 32 (4 8) | 576 |
| WILSON-CLIP, Phase 3 | 1,760,461 * | 1,760,461 * | 0.199 * | 15 | 32 (4 8) | 768 |
| WILSON-CoCa captioning | 178,020 | 1,759,787 | 0.02 | 20 | 32 (4 8) | 1,024 |
| Component | Operation | In Out ch. | Stride | Output ( ) | Params | % | GMACs ‡ |
| Backbone — DINOv3 ConvNeXt-Base (87,566,464 params, 65.5%; 1,283 GMACs, 99.4%) | |||||||
| Stem | Conv s4 + LN | 4 | 6,528 | 0.0 | 1.6 | ||
| Stage 1 | 3 Block | 4 | 415,488 | 0.3 | 108 | ||
| Downsample 1 | LN + Conv s2 | 8 | 131,584 | 0.1 | 8.6 | ||
| Stage 2 | 3 Block | 8 | 1,617,408 | 1.2 | 106 | ||
| Downsample 2 | LN + Conv s2 | 16 | 525,312 | 0.4 | 8.6 | ||
| Hyperparameter | Value |
|---|---|
| Input resolution | px |
| Vision spatial tokens | , 3072-dim |
| Vision-encoder trainable params | 133.72M |
| Attentional-pooler queries / heads | 256 / 8 |
| Joint embedding dim | 768 |
| Decoder width | 768 |