GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • View all journals
  • Saved research
  • Account
  • Log in
  • Subscribe
  • Sign up for alerts
  • RSS feed
  • nature
  • articles
  • ORCID: orcid.org/0000-0002-5476-3690
  • ORCID: orcid.org/0000-0002-3597-9090
  • ORCID: orcid.org/0000-0003-3271-0915
  • ORCID: orcid.org/0000-0001-9892-8218
  • ORCID: orcid.org/0000-0001-6857-341X

This view

  • Original page
  • New address

GeezerVison is showing www.nature.com — A vision–language foundation model for precision oncology - Nature

Abstract

Clinical decision-making is driven by multimodal data, including clinical notes and pathological characteristics. Artificial intelligence approaches that can effectively integrate multimodal data hold significant promise in advancing clinical care1,2. However, the scarcity of well-annotated multimodal datasets in clinical settings has hindered the development of useful models. In this study, we developed the Multimodal transformer with Unified maSKed modeling (MUSK), a vision–language foundation model designed to leverage large-scale, unlabelled, unpaired image and text data. MUSK was pretrained on 50 million pathology images from 11,577 patients and one billion pathology-related text tokens using unified masked modelling. It was further pretrained on one million pathology image–text pairs to efficiently align the vision and language features. With minimal or no further training, MUSK was tested in a wide range of applications and demonstrated superior performance across 23 patch-level and slide-level benchmarks, including image-to-text and text-to-image retrieval, visual question answering, image classification and molecular biomarker prediction. Furthermore, MUSK showed strong performance in outcome prediction, including melanoma relapse prediction, pan-cancer prognosis prediction and immunotherapy response prediction in lung and gastro-oesophageal cancers. MUSK effectively combined complementary information from pathology images and clinical reports and could potentially improve diagnosis and precision in cancer therapy.

This is a preview of subscription content, access via your institution

Access options

Access through your institution

Access Nature and 54 other Nature Portfolio journals

Get Nature+, our best-value online-access subscription

$39.99 / 30 days cancel any time
Learn more

Subscribe to this journal

Receive 51 print issues and online access

$199.00 per year only $3.90 per issue
Learn more

Buy this article

  • Purchase on SpringerLink
  • Instant access to the full article PDF.

USD 39.95

Prices may be subject to local taxes which are calculated during checkout

Fig. 1: Data curation, model development and evaluation.
Fig. 2: Cross-modal retrieval and VQA.
Fig. 3: Patch-level image classification.
Fig. 4: Prognosis prediction across 16 cancer types.
Fig. 5: Lung cancer immunotherapy response prediction.

Similar content being viewed by others

Multimodal oral cancer detection with embedding-level oversampling of fused image and clinical data

Article Open access 22 June 2026

Integration of clinical, pathological, radiological, and transcriptomic data improves prediction for first-line immunotherapy outcome in metastatic non-small cell lung cancer

Article Open access 12 January 2025

A multimodal whole-slide foundation model for pathology

Article Open access 05 November 2025

Explore related subjects

Discover the latest articles and news in related subjects.
  • Machine learning
  • Outcomes research
  • Pathology
  • Prognosis
  • Vision-Language Integration in Medical Imaging

Data availability

The histopathology and clinical data for TCGA used in this study are publicly available through the following resources: National Cancer Institute Genomic Data Commons Portal (https://portal.gdc.cancer.gov/), cBioPortal (https://www.cbioportal.org/) and TCGA Pathology Reports (https://github.com/tatonetti-lab/tcga-path-reports). Additional datasets used include QUILT-1M (https://github.com/wisdomikezogwo/quilt1m), PathAsst (https://huggingface.co/datasets/jamessyx/PathCap), PathVQA (https://huggingface.co/datasets/flaviagiammarino/path-vqa), BookSet and PubmedSet (https://warwick.ac.uk/fac/cross_fac/tia/data/arch), PatchCamelyon (https://patchcamelyon.grand-challenge.org/), NCT-CRC-HE-100K (https://zenodo.org/record/1214456), SICAPv2 (https://data.mendeley.com/datasets/9xxm58dvs3/1), Osteo (https://www.cancerimagingarchive.net/collection/osteosarcoma-tumor-assessment/), RenalCell (https://zenodo.org/records/6528599), SkinCancer (https://www.isic-archive.com/), LC25000 (https://github.com/tampapath/lung_colon_image_set), PanNuke (https://warwick.ac.uk/fac/cross_fac/tia/data/pannuke), UniToPatho (https://ieee-dataport.org/open-access/unitopatho), WSSS4LUAD (https://wsss4luad.grand-challenge.org/WSSS4LUAD/), BRACS (https://www.bracs.icar.cnr.it/), Visiomel (https://www.drivendata.org/competitions/148/visiomel-melanoma/), PathMMU (https://huggingface.co/datasets/jamessyx/PathMMU), BCNB (https://bcnb.grand-challenge.org/) and MUV-IDH (https://doi.org/10.25493/WQ48-ZGX). The data for patients in the immunotherapy cohorts are subject to controlled access because they contain sensitive information about patient privacy. Requests for access may be submitted to the corresponding author ([email protected]) with a brief research plan and require consent to data use agreement. We aim to respond to all data access requests within 4 weeks. Data usage is restricted to non-commercial academic research purposes.

Code availability

Our work is publicly available at https://github.com/lilab-stanford/MUSK, including installation instructions, model weights, evaluation code, and example data.

References

  1. Sammut, S.-J. et al. Multi-omic machine learning predictor of breast cancer therapy response. Nature 601, 623–629 (2022).

    CAS  PubMed  ADS  MATH  Google Scholar 

  2. Vanguri, R. S. et al. Multimodal integration of radiology, pathology and genomics for prediction of response to PD-(L)1 blockade in patients with non-small cell lung cancer. Nat. Cancer 3, 1151–1164 (2022).

    CAS  PubMed  PubMed Central  MATH  Google Scholar 

  3. Acosta, J. N., Falcone, G. J., Rajpurkar, P. & Topol, E. J. Multimodal biomedical AI. Nat. Med. 28, 1773–1784 (2022).

    CAS  PubMed  Google Scholar 

  4. Boehm, K. M., Khosravi, P., Vanguri, R., Gao, J. & Shah, S. P. Harnessing multimodal data integration to advance precision oncology. Nat. Rev. Cancer 22, 114–126 (2022).

    CAS  PubMed  Google Scholar 

  5. Lipkova, J. et al. Artificial intelligence for multimodal data integration in oncology. Cancer Cell 40, 1095–1110 (2022).

    CAS  PubMed  PubMed Central  MATH  Google Scholar 

  6. Moor, M. et al. Foundation models for generalist medical artificial intelligence. Nature 616, 259–265 (2023).

    CAS  PubMed  ADS  MATH  Google Scholar 

  7. Kim, C. et al. Transparent medical image AI via an image–text foundation model grounded in medical literature. Nat. Med. 30, 1154–1165 (2024).

    CAS  PubMed  MATH  Google Scholar 

  8. Singhal, K. et al. Large language models encode clinical knowledge. Nature 620, 172–180 (2023).

    CAS  PubMed  PubMed Central  ADS  MATH  Google Scholar 

  9. Zhou, Y. et al. A foundation model for generalizable disease detection from retinal images. Nature 622, 156–163 (2023).

    CAS  PubMed  PubMed Central  ADS  MATH  Google Scholar 

  10. Xu, H. et al. A whole-slide foundation model for digital pathology from real-world data. Nature 630, 181–188 (2024).

    CAS  PubMed  PubMed Central  ADS  MATH  Google Scholar 

  11. Chen, R. J. et al. Towards a general-purpose foundation model for computational pathology. Nat. Med. 30, 850–862 (2024).

    CAS  PubMed  PubMed Central  MATH  Google Scholar 

  12. Vorontsov, E. et al. A foundation model for clinical-grade computational pathology and rare cancers detection. Nat. Med. 30, 2924–2935 (2024).

    CAS  PubMed  PubMed Central  MATH  Google Scholar 

  13. Wang, X. et al. A pathology foundation model for cancer diagnosis and prognosis prediction. Nature 634, 970–978 (2024).

    CAS  PubMed  MATH  Google Scholar 

  14. Christensen, M., Vukadinovic, M., Yuan, N. & Ouyang, D. Vision–language foundation model for echocardiogram interpretation. Nat. Med. 30, 1481–1488 (2024).

    CAS  PubMed  PubMed Central  Google Scholar 

  15. Huang, Z., Bianchi, F., Yuksekgonul, M., Montine, T. J. & Zou, J. A visual–language foundation model for pathology image analysis using medical Twitter. Nat. Med. 29, 2307–2316 (2023).

    CAS  PubMed  Google Scholar 

  16. Lu, M. Y. et al. A visual-language foundation model for computational pathology. Nat. Med. 30, 863–874 (2024).

    CAS  PubMed  PubMed Central  MATH  Google Scholar 

  17. Lu, M. Y. et al. A multimodal generative AI copilot for human pathology. Nature 634, 466–473 (2024).

    CAS  PubMed  PubMed Central  MATH  Google Scholar 

  18. Radford, A. et al. Learning transferable visual models from natural language supervision. In Proc. Int. Conf. Machine Learning (eds Meila, M. & Zhang, T.) 8748–8763 (PMLR, 2021).

  19. Schuhmann, C. et al. LAION-5B: an open large-scale dataset for training next generation image-text models. Adv. Neural Inf. Process. Syst. 35, 25278–25294 (2022).

    MATH  Google Scholar 

  20. Bhinder, B., Gilvary, C., Madhukar, N. S. & Elemento, O. Artificial intelligence in cancer research and precision medicine. Cancer Discovery 11, 900–915 (2021).

    CAS  PubMed  PubMed Central  Google Scholar 

  21. Wang, W. et al. Image as a foreign language: BEiT pretraining for vision and vision-language tasks. In Proc. IEEE/CVF Conf. Computer Vision Pattern Recognition (eds Brown, M. S., Li, F.-F., Mori, G. & Sato, Y.) 19175–19186 (IEEE, 2023).

  22. Gamper, J. & Rajpoot, N. Multiple instance captioning: learning representations from histopathology textbooks and articles. In Proc. IEEE/CVF Conf. Computer Vision Pattern Recognition (eds Brown, M. S., Sukthankar, R., Tan, T. & Zelnik, L.) 16549–16559 (IEEE, 2021).

  23. Sun, Y. et a. PathMMU: a massive multimodal expert-level benchmark for understanding and reasoning in pathology. In Eur. Conf. Computer Vision (eds Leonardis, A., Ricci, E., Roth, S., Russakovsky, O., Sattler, T. & Varol, G.) 56–73 (Springer, 2025).

  24. Kim, J.-H., Jun, J. & Zhang, B.-T. Bilinear attention networks. In Adv. Neural Inf. Process. Syst. (eds Bengio, S.,Wallach, H., Larochelle, H., Grauman, K., Cesa-Bianchi, N. &Garnett, R.). 1571–1581 (PMLR, 2018).

  25. Nguyen, B. D. et al. Overcoming data limitation in medical visual question answering. In Proc. Medical Image Computing Computer Assisted Intervention–MICCAI 2019: 22nd Int. Conf. (eds Shen, D. et al.) 522–530 (Springer, 2019).

  26. Li, L. H., Yatskar, M., Yin, D., Hsieh, C.-J. & Chang, K.-W. VisualBERT: a simple and performant baseline for vision and language. Preprint at https://arxiv.org/abs/1908.03557 (2019).

  27. Naseem, U., Khushi, M., Dunn, A. G. & Kim, J. K-PathVQA: knowledge-aware multimodal representation for pathology visual question answering. IEEE J. Biomed. Health Inf. 28, 1886–1895 (2024).

    Google Scholar 

  28. He, X., Zhang, Y., Mou, L., Xing, E. & Xie, P. PathVQA: 30000+ questions for medical visual question answering. Preprint at https://arxiv.org/abs/2003.10286 (2020).

  29. Barbano, C. A. et al. Unitopatho, a labeled histopathological dataset for colorectal polyps classification and adenoma dysplasia grading. In 2021 IEEE Int. Conf. Image Processing (ICIP) (eds alZahir, S., Labeau, F. & Mock, K.) 76–80 (IEEE, 2021).

  30. Brancati, N. et al. BRACS: a dataset for breast carcinoma subtyping in H&E histology images. Database 2022, baac093 (2022).

    PubMed  PubMed Central  MATH  Google Scholar 

  31. Veeling, B. S., Linmans, J., Winkens, J., Cohen, T. & Welling, M. Rotation equivariant CNNs for digital pathology. In Proc. Medical Image Computing Computer Assisted Intervention, MICCAI 2018: 21st Int. Conf. (eds Frangi, A., Schnabel, J., Davatzikos, C., Alberola-López, C. & Fichtinger, G) 210–218 (Springer, 2018).

  32. Kriegsmann, K. et al. Deep learning for the detection of anatomical tissue structures and neoplasms of the skin on scanned histopathological tissue sections. Front. Oncol. 12, 1022967 (2022).

    PubMed  PubMed Central  Google Scholar 

  33. Kumar, N. et al. A multi-organ nucleus segmentation challenge. IEEE Trans. Med. Imaging 39, 1380–1391 (2019).

    PubMed  PubMed Central  MATH  Google Scholar 

  34. Silva-Rodríguez, J., Colomer, A., Sales, M. A., Molina, R. & Naranjo, V. Going deeper through the gleason scoring scale: an automatic end-to-end system for histology prostate grading and cribriform pattern detection. Comput. Methods Programs Biomed. 195, 105637 (2020).

    PubMed  Google Scholar 

  35. Borkowski, A. A. et al. Lung and colon cancer histopathological image dataset (lc25000). Preprint at https://arxiv.org/abs/1912.12142 (2019).

  36. Brummer, O., Pölönen, P., Mustjoki, S. & Brück, O. Integrative analysis of histological textures and lymphocyte infiltration in renal cell carcinoma using deep learning. Preprint at bioRxiv https://doi.org/10.1101/2022.08.15.503955 (2022).

  37. Kather, J. N. et al. Predicting survival from colorectal cancer histology slides using deep learning: a retrospective multicenter study. PLoS Med. 16, e1002730 (2019).

    PubMed  PubMed Central  Google Scholar 

  38. Arunachalam, H. B. et al. Viable and necrotic tumor assessment from whole slide images of osteosarcoma using machine-learning and deep-learning models. PLoS One 14, e0210706 (2019).

    CAS  PubMed  PubMed Central  MATH  Google Scholar 

  39. Han, C. et al. Multi-layer pseudo-supervision for histopathology tissue semantic segmentation using patch-level classification labels. Med. Image Anal. 80, 102487 (2022).

    PubMed  Google Scholar 

  40. Kather, J. N. et al. Pan-cancer image-based detection of clinically actionable genetic alterations. Nat. Cancer 1, 789–799 (2020).

    CAS  PubMed  PubMed Central  MATH  Google Scholar 

  41. Xu, F. et al. Predicting axillary lymph node metastasis in early breast cancer using deep learning on primary tumor biopsy slides. Front. Oncol. 11, 759007 (2021).

    PubMed  PubMed Central  Google Scholar 

  42. Roetzer-Pejrimovsky, T. et al. The digital brain tumour atlas, an open histopathology resource. Sci. Data 9, 55 (2022).

    PubMed  PubMed Central  Google Scholar 

  43. Atkins, M. B. et al. The state of melanoma: emergent challenges and opportunities. Clin. Cancer Res. 27, 2678–2697 (2021).

    CAS  PubMed  PubMed Central  MATH  Google Scholar 

  44. Thompson, A. K., Kelley, B. F., Prokop, L. J., Murad, M. H. & Baum, C. L. Risk factors for cutaneous squamous cell carcinoma recurrence, metastasis, and disease-specific death: a systematic review and metaanalysis. JAMA Dermatol. 152, 419–428 (2016).

    PubMed  PubMed Central  Google Scholar 

  45. VisioMel. Visiomel Challenge: Predicting Melanoma Relapse (2023) (accessed 1 April 2023); https://www.drivendata.org/competitions/148/visiomel-melanoma/page/674/.

  46. Ikezogwo, W. et al. Quilt-1m: one million image-text pairs for histopathology. Adv. Neural Inf. Process. Syst. 36, 37995–38017 (2024).

    Google Scholar 

  47. Zhang, S. et al. Large-scale domain-specific pretraining for biomedical vision-language processing. Preprint at https://arxiv.org/abs/2303.00915 (2023).

  48. Hellmann, M. D. et al. Nivolumab plus ipilimumab in advanced non-small-cell lung cancer. N. Engl. J. Med. 381, 2020–2031 (2019).

    CAS  PubMed  MATH  Google Scholar 

  49. Gandhi, L. et al. Pembrolizumab plus chemotherapy in metastatic non-small-cell lung cancer. N. Engl. J. Med. 378, 2078–2092 (2018).

    CAS  PubMed  MATH  Google Scholar 

  50. Samstein, R. M. et al. Tumor mutational load predicts survival after immunotherapy across multiple cancer types. Nat. Genet. 51, 202–206 (2019).

    CAS  PubMed  PubMed Central  Google Scholar 

  51. Cristescu, R. et al. Pan-tumor genomic biomarkers for PD-1 checkpoint blockade-based immunotherapy. Science 362, eaar3593 (2018).

    PubMed  PubMed Central  Google Scholar 

  52. Bagaev, A. et al. Conserved pan-cancer microenvironment subtypes predict response to immunotherapy. Cancer Cell 39, 845–865 (2021).

    CAS  PubMed  MATH  Google Scholar 

  53. Cui, H. et al. scGPT: toward building a foundation model for single-cell multi-omics using generative AI. Nat. Methods 21, 1470–1480 (2024).

    CAS  PubMed  MATH  Google Scholar 

  54. Mok, T. S. et al. Pembrolizumab versus chemotherapy for previously untreated, PD-L1-expressing, locally advanced or metastatic non-small-cell lung cancer (KEYNOTE-042): a randomised, open-label, controlled, phase 3 trial. Lancet 393, 1819–1830 (2019).

    CAS  PubMed  Google Scholar 

  55. Johnson, D. B., Nebhan, C. A., Moslehi, J. J. & Balko, J. M. Immune-checkpoint inhibitors: long-term implications of toxicity. Nat. Rev. Clin. Oncol. 19, 254–267 (2022).

    PubMed  PubMed Central  Google Scholar 

  56. Bray, F. et al. Global cancer statistics 2022: Globocan estimates of incidence and mortality worldwide for 36 cancers in 185 countries. CA: A Cancer Journal for Clinicians 74, 229–263 (2024).

    PubMed  MATH  Google Scholar 

  57. Bruni, D., Angell, H. K. & Galon, J. The immune contexture and immunoscore in cancer prognosis and therapeutic efficacy. Nat. Rev. Cancer 20, 662–680 (2020).

    CAS  PubMed  Google Scholar 

  58. Herbst, R. S. et al. Atezolizumab for first-line treatment of PD-L1-selected patients with NSCLC. N. Engl. J. Med. 383, 1328–1339 (2020).

    CAS  PubMed  MATH  Google Scholar 

  59. Shazeer, N., Mirhoseini, A., Maziarz, K., Davis, A., Le, Q. V., Hinton, G. E., & Dean, J. Outrageously large neural networks: the Sparsely-Gated Mixture-of-Experts layer. Int. Conf. Learning Representations (eds Bengio, Y. & LeCun, Y.) 1–19 (OpenReview.net, 2017).

  60. Bao, H. et al. Vlmo: unified vision-language pre-training with mixture-of-modality-experts. Adv. Neural Inf. Process. Syst. 35, 32897–32912 (2022).

    Google Scholar 

  61. Esser, P. et al. Scaling rectified flow transformers for high-resolution image synthesis. In Forty-first Int. Conf. Machine Learning (eds Salakhutdinov, R., Kolter, Z., Heller, K., Weller, A., Oliver, N., Scarlett, J. & Berkenkamp, F.) 12606–12633 (PMLR, 2024).

  62. Sun, Y. et al. PathAsst: a generative foundation AI assistant towards artificial general intelligence of pathology. In AAAI Conf. Artificial Intelligence (ed. Wooldridge, M.) 5034–5042 (AAAI, 2024).

  63. Li, J., Li, D., Xiong, C. & Hoi, S. C. H. BLIP: bootstrapping language-image pre-training for unified vision-language understanding and generation. In Int. Conf. Machine Learning (eds Chaudhuri, K., Jegelka, S., Song, L., Szepesvari, C., Niu, G. & Sabato, S.) 12888–12900 (PMLR, 2022).

  64. Devlin, J., Chang, M.-W., Lee, K. & Toutanova, K. BERT: pre-training of deep bidirectional transformers for language understanding. In North American Chapter Assoc. Comp. Linguistics (eds Burstein, J., Doran, C., Pedersen, T. & Solorio, T.) 4171–4186 (ACL, 2019).

  65. Ramesh, A. et al. Zero-shot text-to-image generation. In Int. Conf. Machine Learning (eds Meila, M. & Zhang, T.) 8821–8831 (PMLR, 2021).

  66. Peng, Z., Dong, L., Bao, H., Ye, Q. & Wei, F. BEiT v2: masked image modeling with vector-quantized visual tokenizers. Preprint at https://arxiv.org/abs/2208.06366 (2022).

  67. Wang, X. et al. Transformer-based unsupervised contrastive learning for histopathological image classification. Med. Image Anal. 81, 102559 (2022).

    PubMed  MATH  Google Scholar 

  68. Shen, Y., Luo, Y., Shen, D. & Ke, J. RandStainNA: learning stain-agnostic features from histology slides by bridging stain augmentation and normalization. In Int. Conf. Medical Image Computing and Computer-Assisted Intervention (eds Wang, L., Dou, Q., Fletcher, P. T., Speidel, S. & Li, S.) 212–221 (Springer, 2022).

  69. Kang, M., Song, H., Park, S., Yoo, D. & Pereira, S. Benchmarking self-supervised learning on diverse pathology datasets. 2023 IEEE/CVF Conf. Computer Vision Pattern Recognition (CVPR) (eds Chellappa, R., Matas, J., Quan, L. & Shah, M.) 3344–3354 (IEEE, 2022).

  70. Loshchilov, I. & Hutter, F. Decoupled weight decay regularization. In Int. Conf. Learning Representations (Tara Sainath, T.) 1–18 (OpenReview.net, 2019).

  71. Ilse, M., Tomczak, J. & Welling, M. Attention-based deep multiple instance learning. In Int. Conf. Machine Learning (eds Dy, J. & Krause, A.) 2127–2136 (PMLR, 2018).

  72. Weinstein, J. N. et al. The cancer genome atlas pan-cancer analysis project. Nat. Genet. 45, 1113–1120 (2013).

    PubMed  PubMed Central  MATH  Google Scholar 

  73. Kefeli, J. & Tatonetti, N. TCGA-reports: a machine-readable pathology report resource for benchmarking text-based AI models. Patterns 5, 100933 (2024).

    PubMed  PubMed Central  MATH  Google Scholar 

  74. Achiam, J., Adler, S., Agarwal, S., Ahmad, L., Akkaya, I., Aleman, F.L., Almeida, D., Altenschmidt, J., Altman, S., Anadkat, S. & Avila, R. Gpt-4 technical report. arXiv https://arxiv.org/abs/2303.08774 (2023).

  75. Callahan, A. et al. The Stanford Medicine data science ecosystem for clinical and translational research. JAMIA Open 6, ooad054 (2023).

    PubMed  PubMed Central  MATH  Google Scholar 

  76. Lu, M. Y. et al. Data-efficient and weakly supervised computational pathology on whole-slide images. Nat. Biomed. Eng. 5, 555–570 (2021).

    PubMed  PubMed Central  MATH  Google Scholar 

Download references

Acknowledgements

This study was supported in part by the National Institutes of Health under research grant nos. R01CA222512, R01CA233578, R01CA269559, R01CA285456 and R01CA290715 from the National Cancer Institute; grant no. R01DE030894 from the National Institute of Dental and Craniofacial Research; and a research grant from the Stanford Institute for Human-Centered Artificial Intelligence. K.-H.Y. is supported in part by the National Institute of General Medical Sciences grant no. R35GM142879, the National Heart, Lung, and Blood Institute grant no. R01HL174679, the Department of Defense Peer Reviewed Cancer Research Program Career Development Award no. HT9425-231-0523 and Research Scholar grant no. RSG-24-1253761-01-ESED.

Author information

Author notes
  1. These authors contributed equally: Jinxi Xiang, Xiyue Wang

Authors and Affiliations

  1. Department of Radiation Oncology, Stanford University School of Medicine, Stanford, CA, USA

    Jinxi Xiang, Xiyue Wang, Yinghua Xi, Feyisope Eweje, Yijiang Chen, Yuchen Li, Matthew Gopaulchan, Ted Kim, Maximilian Diehn, Sen Yang & Ruijiang Li

  2. Department of Pathology, Stanford University School of Medicine, Stanford, CA, USA

    Xiaoming Zhang & Jeffrey J. Nirschl

  3. Department of Medicine (Oncology), Stanford University School of Medicine, Stanford, CA, USA

    Colin Bergstrom, Sierra Willens, Francesca Maria Olguin & Joel Neal

  4. Department of Biomedical Informatics, Harvard Medical School, Boston, MA, USA

    Kun-Hsing Yu

  5. Stanford Institute for Human-Centered Artificial Intelligence, Stanford, CA, USA

    Ruijiang Li

Authors
  1. Jinxi Xiang
    View author publications

    Search author on:PubMed Google Scholar

  2. Xiyue Wang
    View author publications

    Search author on:PubMed Google Scholar

  3. Xiaoming Zhang
    View author publications

    Search author on:PubMed Google Scholar

  4. Yinghua Xi
    View author publications

    Search author on:PubMed Google Scholar

  5. Feyisope Eweje
    View author publications

    Search author on:PubMed Google Scholar

  6. Yijiang Chen
    View author publications

    Search author on:PubMed Google Scholar

  7. Yuchen Li
    View author publications

    Search author on:PubMed Google Scholar

  8. Colin Bergstrom
    View author publications

    Search author on:PubMed Google Scholar

  9. Matthew Gopaulchan
    View author publications

    Search author on:PubMed Google Scholar

  10. Ted Kim
    View author publications

    Search author on:PubMed Google Scholar

  11. Kun-Hsing Yu
    View author publications

    Search author on:PubMed Google Scholar

  12. Sierra Willens
    View author publications

    Search author on:PubMed Google Scholar

  13. Francesca Maria Olguin
    View author publications

    Search author on:PubMed Google Scholar

  14. Jeffrey J. Nirschl
    View author publications

    Search author on:PubMed Google Scholar

  15. Joel Neal
    View author publications

    Search author on:PubMed Google Scholar

  16. Maximilian Diehn
    View author publications

    Search author on:PubMed Google Scholar

  17. Sen Yang
    View author publications

    Search author on:PubMed Google Scholar

  18. Ruijiang Li
    View author publications

    Search author on:PubMed Google Scholar

Contributions

J.X., X.W., S.Y. and R.L. conceived and designed the study. R.L., Y.X., F.E., Y.C., C.B., M.G., T.K., S.W., F.M.O., J.N., J.J.N. and M.D. were responsible for private data acquisition. J.X., X.W., Y.X., S.Y. and R.L. acquired the public data. J.X., X.W. and S.Y. performed statistical analyses. J.X., X.W. and S.Y. trained and validated the deep learning network. R.L., J.X., X.W., X.Z., K.-H.Y., Y.C., Y.L., S.Y. and J.N. implemented quality control of data and algorithms. R.L., J.X., X.Z. and Y.C. verified the underlying raw data. J.X., X.W., S.Y., X.Z. and R.L. prepared the first draft of the manuscript. R.L. revised the manuscript. All the authors contributed to the preparation of the manuscript and approved its submission for publication.

Corresponding authors

Correspondence to Sen Yang or Ruijiang Li.

Ethics declarations

Competing interests

A provisional patent related to this work has been filed by Stanford University (US patent application 63/724,237).

Peer review

Peer review information

Nature thanks Mahmoud Assran, Joe Yeong and the other, anonymous, reviewer(s) for their contribution to the peer review of this work.

Additional information

Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Extended data figures and tables

Extended Data Fig. 1 MUSK for image-to-image retrieval and image classification.

a, We perform zero-shot image retrieval on the UniToPatho dataset, and MUSK outperforms other vision–language foundation models. Data are represented as mean with 95% confidence intervals. Error bars represent the 95% confidence intervals, estimated using the bootstrap method with 1000 replicates. The two-sided Wilcoxon signed-rank test is used to calculate the statistical differences between MUSK and the top-performing compared method (p < 0.0001 in Recall@1, Recall@3, Recall@5, and mMv@5). b, Zero-shot image retrieval on the BRACS dataset. MUSK significantly outperforms other foundation models across various recall levels with p-values of 0.02, 0.07, 0.04, and 0.03 in Recall@1, Recall@3, Recall@5, and mMv@5 metrics, respectively. Two examples of image retrieval results with the top 3 candidates are shown. DCIS: ductal carcinoma in situ; IBC: invasive breast carcinoma. c, We evaluate the labelling efficiency of various models under a few-shot learning scenario by varying the number of training labels per class. We present results for the [1,2,4,8,10]-shot classification across multiple datasets: LC2500035, UniToPatho29, NCT-CRC37, and BRACS (6 cls)30. The average accuracy shows that MUSK consistently outperforms existing models across these benchmarks. In these box plots, the central lines indicate the median, box bounds are the 25th and 75th percentiles, and whiskers extend to 1.5 times the interquartile range. Each task in the experiments is represented by n = 10 data points generated using 10 independent experiments.

Extended Data Fig. 2 MUSK for supervised image classification.

a, 10-shot classification performance across 12 benchmarks compared with seven alternative vision–language models regarding classification balanced accuracy. The two-sided Wilcoxon signed-rank test is used to assess the statistical differences between MUSK and the compared methods in the 12 benchmark datasets: BRACS (3-cls) (p = 0.43), UniToPatho (p = 0.002), BRACS (6-cls) (p = 0.002), SICAPv2 (p = 0.01), PatchCamelyon (p = 0.006), LC25000 (p = 0.002), PanNuke (p = 0.23), RenalCell (p = 0.002), SkinCancer (p = 0.01), NCT-CRC-HE-100K (p = 0.55), Osteo (p = 0.04), and WSSS4LUAD (p = 0.006). b, Linear probe classification results on 12 benchmark datasets compared with seven alternative models. The two-sided Wilcoxon signed-rank test is used to calculate the statistical differences between MUSK and the compared methods in the 12 benchmark datasets. P-values are observed as follows: BRACS (3-cls) (p = 0.002), UniToPatho (p = 0.002), BRACS (6-cls) (p = 0.01), SICAPv2 (p = 0.13), PatchCamelyon (p = 0.002), LC25000 (p = 0.002), PanNuke (p = 0.002), RenalCell (p = 0.002), SkinCancer (p = 0.002), NCT-CRC-HE-100K (p = 0.55), Osteo (p = 0.002), and WSSS4LUAD (p = 0.002). In a and b, we present means with error bars representing the 95% CI, which are computed from n = 10 independent experiments.

Extended Data Fig. 3 Comparison of MUSK with state-of-the-art pathology foundation models on slide-level benchmark tasks.

The comparison methods include both unimodal pathology foundation models (UNI, GigaPath, and Virchow) and multimodal pathology foundation models (PLIP and CONCH). a, Biomarker prediction. AUC results for predicting ER, PR, and HER2 status in the BCNB test set, as well as IDH status in the MUV-IDH dataset. b, Immunotherapy response prediction. Performance in terms of AUC and c-index for lung and gastro-oesophageal cancers, respectively. c, Prognosis prediction. c-index results for prognosis predictions across 16 TCGA cohorts. MUSK significantly outperforms the compared methods as shown in the overall bars (p-value < 0.0001), representing the average performance across 16 projects. In a-c, data are represented as mean with standard deviations, based on 5-fold cross-validation experiments. The two-sided Mann-Whitney U test is used to assess the statistical significance between MUSK and the comparison methods.

Extended Data Fig. 4 Melanoma relapse prediction.

a,b, MUSK achieves superior performance for predicting the 5-year risk of relapse in a cohort of 1,342 melanoma patients compared with existing multimodal pathology foundation models. c, At 90% sensitivity for relapse prediction, MUSK substantially improved the specificity by about 15% over other foundation models. d, The multimodal MUSK model significantly improves upon relapse prediction over models based on clinical reports or WSIs alone. e, Two examples of melanoma cases with and without relapse. In each panel, the left image shows the original WSI, while the middle image displays the corresponding heatmaps that highlights the regions model focused on within the WSIs. The right images provide zoomed-in views of the regions receiving the most model attention. The case with relapse shows the presence of skin ulceration with abundant intratumoral macrophages accompanied by fibrosis, less intratumoral and peritumoral lymphocytes, and brisk mitotic activity. On the other hand, the case without relapse shows an intact epidermis without ulceration, abundant intratumoral and peritumoral lymphocytes, and inconspicuous mitotic activity. In a, c, and d, data are presented as mean values +/− SD from 5-fold cross-validation experiments, and the two-sided Mann-Whitney U test is used to measure the statistical significance between MUSK and the compared methods.

Extended Data Fig. 5 Gastro-oesophageal cancer immunotherapy response prediction.

a, MUSK outperforms other foundation models for predicting objective response and progression-free survival in gastro-esophageal cancer patients treated with immunotherapy. b, The multimodal MUSK model improves upon models based on clinical reports or WSIs alone. c, Kaplan-Meier analysis demonstrates that MUSK significantly stratifies patients into high-risk and low-risk groups for progression-free survival, in the entire cohort and clinically relevant subgroups. The two-sided log-rank test is used to compare the survival differences between the high-risk and low-risk groups. HR: hazard ratio. d, Multivariate Cox regression analysis shows MUSK is the only significant predictor of progression-free survival beside MSI status. We computed the P-values using the two-sided Wald test and we presented the HR with 95% confidence intervals. e, Two examples of gastro-oesophageal cancer cases with and without objective response to immunotherapy. In each panel, the left image shows the original WSI, while the middle image displays the corresponding heatmaps that highlights the regions model focused on within the WSIs. The right images provide zoomed-in views of the regions receiving the most model attention. The case with response shows abundant infiltration of lymphocytes within and around the tumour; the stroma is less fibrotic and displays more oedema. On the other hand, the case without response shows minimal lymphocyte infiltration and increased intra-tumoral and peri-tumoral fibrotic stroma. CPS: combined positive score; MSI/MSS: microsatellite instable/stable; ADC: adenocarcinoma; SCC: squamous cell carcinoma. In a and b, the error bars represent the mean with standard deviation computed from 5-fold cross-validation experiments, and the two-sided Mann-Whitney U test is used to measure the statistical significance between MUSK and the compared methods.

Extended Data Fig. 6 Kaplan-Meier analysis of the MUSK model for stratifying patients under different treatment regimens.

a,b, The results demonstrate that MUSK significantly stratifies patients for progression-free survival into low- and high-risk groups, in (a) lung and (b) gastro-esophageal cancers, treated with immunotherapy with or without concurrent chemotherapy. The two-sided log-rank test is used to compare the survival differences between the high-risk and low-risk groups.

Extended Data Fig. 7 MUSK model configuration.

a, MUSK integrates two independent transformers for image and text data modalities. This architecture processes sequences within each modality independently and fuses them in the attention modules, allowing cross-modal interactions and ensuring robustness across different data types. b, During the second phase of pretraining (Fig. 1), MUSK requires modality alignment using contrastive loss as its training objective, augmented with an auxiliary MLM loss. This MLM component utilizes a streamlined cross-attention decoder that employs text embeddings as queries to interact dynamically with image embeddings, thereby instilling intricate cross-modal insights.

Extended Data Fig. 8 Ablation study on training configuration.

We conducted ablation studies to evaluate the impact of various training configurations (refer to the Supplementary Materials for detailed descriptions). a, The effect of mask pretraining. b, The effect of data distribution, comparing natural images/text with pathology images/text. c, The impact of the data scale for mask pretraining was evaluated using Quilt1M, 15 M images with 500 M text tokens, and 50 M images with 1B text tokens. d, The model capacity of the MUSK models. In a-d, the error bars represent the average of the standard deviations within the datasets. Error bars are not provided for the I2T retrieval, T2I retrieval, and VQA tasks because they are evaluated on a single dataset. The evaluation metrics used are balanced accuracy for the linear probe classification, 10-shot classification, and zero-shot classification tasks; accuracy for the VQA task; Recall@50 for the I2T and T2I retrievals; and mMV @5 for the I2I retrieval. T2I: Text-to-Image; I2T: Image-to-Text; I2I: Image-to-Image; VQA: Visual Question Answering; cls: classification. The two-sided Mann-Whitney U test is employed to assess the statistical significance of differences between the methods being compared. In a-d, n denotes the number of datasets corresponding to each task.

Supplementary information

Supplementary Information (download PDF )

Supplementary results, methods, computing hardware and software, Figs. 1–11 and Tables 1–17.

Reporting Summary (download PDF )

Rights and permissions

Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Cite this article

Xiang, J., Wang, X., Zhang, X. et al. A vision–language foundation model for precision oncology. Nature 638, 769–778 (2025). https://doi.org/10.1038/s41586-024-08378-w

Download citation

  • Received: 28 May 2024

  • Accepted: 08 November 2024

  • Published: 08 January 2025

  • Version of record: 08 January 2025

  • Issue date: 20 February 2025

  • DOI: https://doi.org/10.1038/s41586-024-08378-w

Share this article

Anyone you share the following link with will be able to read this content:

Sorry, a shareable link is not currently available for this article.

Provided by the Springer Nature SharedIt content-sharing initiative

You are visitor 01402809 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.