Beyond Sparse Captions: Aligning Slide-Level Text and Patch-Level Vision in Pathology
Organizations: MIT · MGB AI Institute · Harvard University · University of Augsburg
Abstract
Contrastive vision-language (VL) pretraining in computational pathology has generally relied on curated image-caption datasets sourced from social media, educational videos, and research publications. These corpora are sparse relative to the diversity of tissue morphology and difficult to scale further, as pathologists do not routinely produce descriptive captions in clinical practice. We propose to instead leverage slide-level pathology reports which can be generated during routine diagnostic workflows in a scalable manner. A key challenge in this weakly-supervised setting is that pathology reports describe macroscopic, diagnostic findings while patch-level visual features describe microscopic findings. We introduce Locked Image Multiple Instance PreTraining (LIMIT), which addresses this gap by freezing a pretrained vision encoder and fine-tuning only the text encoder: report embeddings serve as cross-attention queries over bags of patch features, producing report-conditioned slide representations optimized via InfoNCE. Using LIMIT, we establish CONCH-Z, which aligns the text encoder of CONCH v1.5 to 335k clinical reports. Evaluated across 22 tasks spanning patch-level classification, tumor detection, and slide-level subtyping, CONCH-Z establishes state-of-the-art zero-shot performance over VL encoders trained on curated caption datasets, while simultaneously closing the gap with slide-level foundation models trained with substantially more parameters and compute. The code and model is available at https://github.com/mahmoodlab/LIMIT.
Figures & tables
| Dataset | Organ | PLIP [ 12 ] | QuiltNet [ 13 ] | Musk [ 38 ] | Mi-Zero [ 22 ] | CONCH [ 21 ] | Conch-Z |
|---|---|---|---|---|---|---|---|
| C16 (2) | Lymph Node (2) | 88.4 0.1 | 91.7 0.1 | 82.7 0.2 | 59.9 0.2 | 90.3 0.2 | 96.7 0.1 |
| SPIDER-C | Skin (9) | 38.0 0.3 | 30.8 0.3 | 62.1 0.3 | 39.2 0.3 | 50.8 0.3 | 60.8 0.3 |
| Colorectal (8) | 43.5 0.3 | 37.7 0.4 | 43.5 0.3 | 47.7 0.4 | 44.0 0.4 | 54.8 0.4 | |
| Breast (7) | 32.8 0.3 | 28.2 0.5 | 57.8 0.4 | 50.6 0.4 | 57.9 0.4 | 70.2 0.3 | |
| Thorax (7) | 25.0 0.4 | 23.6 0.4 | 41.7 0.4 | 39.2 0.5 | 46.2 0.4 | 49.4 0.4 | |
| Overall | 34.8 0.2 | 30.1 0.2 | 51.3 0.2 | 44.2 0.2 | 49.7 0.2 | 58.8 0.2 |
| Dataset | Organ | Patch foundation model | Slide foundation model | ||||||
| PLIP [ 12 ] | QuiltNet [ 13 ] | Musk [ 38 ] | Mi-Zero [ 22 ] | CONCH [ 21 ] | Conch-Z | TITAN [ 7 ] | PRISM [ 27 ] | ||
| HistAI | Breast | 41.6 3.6 | 32.3 1.3 | 49.5 3.6 | 44.7 2.8 | 34.0 1.4 | 47.6 3.6 | 46.1 3.5 | 49.7 2.7 |
| Colorectum | 28.4 2.2 | 33.8 3.6 | 36.2 3.6 | 31.4 2.9 | 32.9 3.1 | 51.4 4.2 | 33.2 2.9 | 44.3 3.8 | |
| Skin | 47.6 3.1 | 33.3 0.0 | 48.1 3.3 | 46.0 3.1 | 53.1 3.7 | 65.0 3.1 | 58.9 3.0 | 56.7 3.7 | |
| Overall | 39.2 1.7 | 33.1 1.3 | 44.6 2.1 | 40.7 1.7 | 40.0 1.8 | 54.6 2.2 | 46.1 1.7 | 50.2 2.0 | |
| TCGA | Breast | 48.8 0.6 | 7.2 0.9 | 62.8 1.6 | 49.6 1.8 | 50.0 0.6 | 89.2 1.2 | 77.7 1.7 | 81.9 1.3 |
| Type | Model | Breast | Lung | Brain | Kidney | Thyroid | Bowel | Uterus | Other | Overall |
|---|---|---|---|---|---|---|---|---|---|---|
| Supervised | ABMIL [ 14 ] | 91.0 3.6 | 88.5 2.6 | 26.5 4.5 | 89.4 3.2 | 57.3 3.0 | 63.1 10.1 | 81.8 5.1 | 89.8 1.0 | 73.4 0.9 |
| TransMIL [ 30 ] | 63.6 5.5 | 90.8 2.4 | 31.8 4.8 | 87.7 3.5 | 68.1 3.4 | 58.6 10.6 | 78.6 5.5 | 88.8 1.2 | 71.0 1.1 | |
| DSMIL [ 15 ] | 80.9 5.3 | 87.9 3.0 | 32.8 5.5 | 88.7 3.5 | 48.8 1.3 | 59.6 10.7 | 84.6 4.3 | 85.5 2.7 | 71.1 2.0 | |
| CLAM [ 23 ] | 88.9 4.0 | 89.7 2.6 | 36.8 5.8 | 82.0 4.0 | 50.2 1.5 | 52.2 10.4 | 84.1 4.2 | 88.2 1.3 | 71.5 1.2 | |
| WiKG [ 16 ] | 88.5 4.6 | 88.0 2.9 | 36.6 5.9 | 88.2 3.7 | 47.5 0.4 | 56.9 10.4 | 73.1 5.7 | 88.0 1.2 | 70.9 1.1 | |
| [ 21 ] | 83.9 5.2 | 87.1 3.1 | 30.1 7.5 | 89.7 3.3 | 80.4 3.2 | 62.9 9.2 | 79.2 5.5 | 88.9 1.1 | 75.3 1.1 |
Appendix figures & tables7 assets
Supplementary material from the paper’s appendix.
Appendix
| Role | Prompt content |
|---|---|
| System | You are a pathology text normalizer. Extract the diagnostic information from the text. Remove extraneous details not visible from histology, such as laterality, staining, immunohistochemistry, marker names, and positivity/negativity of genetic testing. Return the cleaned diagnosis text. |
| User | Clean this pathology report. Report: {report} Example: Input: Metastatic poorly-differentiated adenocarcinoma with giant cell features identified in the liver, positive for CK7, GATA3, and focal p40, with PD-L1 expression in tumor cells. Output: Metastatic poorly-differentiated adenocarcinoma with giant cell features |
| Label | Count |
|---|---|
| Dermis | 263,813 |
| Epidermis | 23,579 |
| Histiocytoma | 50,770 |
| Inflamm/Necrosis | 32,723 |
| Mast Cell Tumor | 166,951 |
| Melanoma | 118,835 |
| Model | Architecture | Vision corpus | Reports/captions | Source institution(s) | Objective | Granularity |
|---|---|---|---|---|---|---|
| PLIP [ 12 ] | ViT-B/32 + Transformer | 208K pairs | (paired) | Twitter (#path), LAION-5B | CLIP InfoNCE | Patch |
| QuiltNet [ 13 ] | ViT-B/32 + Transformer | 1M pairs | (paired) | YouTube, Twitter, web, ARCH | CLIP InfoNCE | Patch |
| MI-Zero [ 22 ] | CTransPath + BioClinicalBERT | 33K pairs | (paired) | ARCH + internal | InfoNCE + MIL pool | Patch / WSI |
| MUSK [ 38 ] | BEiT-3 (multiway transformer) | 50M patches ( 33K WSIs) + 1M pairs | 1B tokens (unpaired) | Stanford internal; Quilt-1M | Masked modeling + CLIP | Patch |
| CONCHv1.5 [ 21 , 7 ] | ViT (CoCa, UNI-init) | 1.17M pairs (vision encoder only released) | (paired) | PMC OA, EDU | Contrastive + captioning | Patch |
| TITAN [ 7 ] | ViT slide encoder (iBOT + CoCa) | 335K WSIs + 423K ROI-captions | 183K reports | BWH, MGH; GTEx | SSL + contrastive + captioning | WSI |
| Category | Content |
|---|---|
| Synonyms | Tumor; Cancer; Malignancy; Carcinoma; Neoplasm |
| Templates | {term} |
| an image of {term} | |
| {term} cells |
Computational Pathology
Computational pathology uses algorithms to analyze digitized tissue images for diagnosis, prognosis, biomarker discovery, and clinical decision support.
See all 277 papers