Abstract
The field of computational pathology has been transformed with recent advances in foundation models that encode histopathology region-of-interests (ROIs) into versatile and transferable feature representations via self-supervised learning (SSL). However, translating these advancements to address complex clinical challenges at the patient and slide level remains constrained by limited clinical data in disease-specific cohorts, especially for rare clinical conditions. We propose TITAN, a multimodal whole slide foundation model pretrained using 335,645 WSIs via visual self-supervised learning and vision-language alignment with corresponding pathology reports and 423,122 synthetic captions generated from a multimodal generative AI copilot for pathology. Without any finetuning or requiring clinical labels, TITAN can extract general-purpose slide representations and generate pathology reports that generalize to resource-limited clinical scenarios such as rare disease retrieval and cancer prognosis. We evaluate TITAN on diverse clinical tasks and find that TITAN outperforms both ROI and slide foundation models across machine learning settings such as linear probing, few-shot and zero-shot classification, rare cancer retrieval and cross-modal retrieval, and pathology report generation. The model is publicly accessible at https://github.com/mahmoodlab/TITAN
Introduction
In computational pathology, most foundation models operate at the patch level, encoding small regions of interest (ROIs) into feature vectors. However, clinical diagnosis occurs at the whole-slide level, where pathologists must integrate patterns across gigapixel-scale images. Translating patch-level success to slide-level clinical challenges is difficult due to the massive scale of whole-slide images (WSIs), the scarcity of clinical labels for rare diseases, and the multimodal gap between vision-only models and the rich diagnostic reasoning found in pathology reports. TITAN (Transformer-based pathology Image and Text Alignment Network) addresses these issues by creating a general-purpose slide representation that works "off-the-shelf" for diverse clinical tasks.
Methods and Datasets
Overview of TITAN's dataset distribution and three-stage multimodal pretraining architecture. Source, p. 3
TITAN utilizes a three-stage pretraining strategy built on a Vision Transformer (ViT) architecture:
- Stage 1: Vision-only Pretraining (TITAN_V): The model employs the iBOT framework (masked image modeling and knowledge distillation) on 2D grids of patch features. By treating the slide as a 2D grid rather than a "bag-of-patches," TITAN preserves critical tissue architecture.
- Stage 2: ROI-Language Alignment: To learn fine-grained morphological concepts, the model aligns 8k × 8k pixel region crops with 423,122 synthetic captions generated by PathChat, a multimodal generative AI copilot. These synthetic captions provide detailed morphological descriptions often missing from standard clinical reports.
- Stage 3: WSI-Language Alignment: The full model is fine-tuned using a Contrastive Captioner (CoCa) objective to align entire slides with 182,862 real-world pathology reports.
To enable processing of massive slides, TITAN employs Attention with Linear Bias (ALiBi), allowing the model to extrapolate from smaller training regions to much larger whole slides during inference. The model was trained on the Mass-340K dataset, comprising 335,645 WSIs across 20 organs.
Key Results and Insights
UMAP visualization of TITAN slide embeddings across 20 different organs, demonstrating clear tissue-specific clustering. Source, p. 3
TITAN demonstrates significant improvements across a wide range of clinical benchmarks:
- Diagnostic Accuracy: TITAN outperformed the next best slide foundation model (PRISM) by an average of +8.4% across multiclass subtyping tasks.
- Rare Cancer Retrieval: In "search-by-example" tests, TITAN improved retrieval accuracy by +14.8% over baselines, showing immense potential for assisting pathologists with rare cases.
- Zero-Shot Generalization: Because TITAN understands the relationship between visual patterns and medical text, it can perform zero-shot classification. On the 30-class EBRAINS brain tumor task, TITAN's zero-shot balanced accuracy was more than double that of PRISM.
- Report Generation: TITAN’s automated pathology reports outperformed existing models by 161% across standard text metrics (METEOR, ROUGE, BLEU), effectively capturing key attributes like tumor grade and site.
Aligning vision with language not only enabled text-based tasks but also improved the quality of visual embeddings for traditional tasks like cancer subtyping. The UMAP visualization confirms that TITAN learns highly discriminative, tissue-specific representations without explicit supervision.
Conclusion
TITAN represents a significant step toward general-purpose foundation models for whole-slide analysis. While challenges remain regarding contextual limits for extremely large slides and sensitivity to non-biological artifacts (batch effects), the multimodal synergy between vision and language provides a robust framework for clinical applications. Future work will explore extending this approach to 3D pathology, spatial transcriptomics, and multiplex imaging.
Summary updated