Beyond Sparse Captions: Aligning Slide-Level Text and Patch-Level Vision in Pathology

Daniel Shao, Dongmin Bang, Luca L. Weishaupt, Sophia J. Wagner, Nic G. Reitsam, Ming Y. Lu, Long P. Le, Richard J. Chen, Faisal Mahmood

TL;DR

This paper introduces LIMIT (Locked Image Multiple Instance PreTraining), a method that aligns patch-level visual features with slide-level clinical reports by fine-tuning only the text encoder. The resulting model, CONCH-Z, achieves state-of-the-art zero-shot performance across 22 pathology tasks, demonstrating that routine clinical reports are a far more scalable and effective supervisory signal than curated social media captions.

What Problem Does This Paper Address?

In computational pathology, Vision-Language (VL) models like CLIP have traditionally relied on "curated" datasets—images paired with captions from medical social media, textbooks, or YouTube. While useful, these datasets are small and don't reflect real-world clinical practice. Pathologists don't write descriptive captions for every patch; they write diagnostic reports for entire slides.

The challenge is a massive spatial and semantic disconnect: a pathology report describes macroscopic, diagnostic findings for a whole slide (e.g., "metastatic adenocarcinoma"), while visual features are extracted from tiny microscopic patches. Aligning these "weak" slide-level labels with "fine-grained" patch features is a classic Multiple Instance Learning (MIL) problem, but extended to the cross-modal domain.

Methods

The authors propose LIMIT, which treats VL pretraining as a weakly-supervised MIL problem. The architecture (shown in Figure 1) relies on three key pillars:

  1. Locked Image Tuning (LiT): The vision encoder is kept frozen. This prevents the model from "forgetting" robust morphological features when exposed to potentially noisy clinical text. Only the text encoder is updated.
  2. Report-Guided Cross-Attention: To bridge the slide-to-patch gap, the model uses the text report embedding as a "query" to attend to a "bag" of patch embeddings. This produces a report-conditioned slide representation that highlights the most relevant morphological regions.
  3. Difficulty-Weighted InfoNCE: Not all "negative" reports are equally different. Two reports for different stages of breast cancer are semantically closer than a report for lung cancer. LIMIT uses a weighting factor based on text similarity to ensure the model isn't unfairly penalized for failing to distinguish between highly similar clinical descriptions.
Figure 1: Overview of LIMIT. A frozen vision encoder extracts patch embeddings from the WSI. The text encoder embeds each candidate report as a cross-attention query over the patch bag, producing a report-conditioned slide representation. Only the text encoder is updated via a difficulty-weighted InfoNCE objective.

Datasets

  • Training: An internal corpus of 335,645 Whole Slide Images (WSIs) paired with clinical pathology reports from MGH and Brigham and Women’s Hospital.
  • Evaluation: The authors tested CONCH-Z on 22 tasks across five major datasets:
  • TCGA-OT: Cancer subtyping (45 classes).
  • SlideChat-HistAI: Diagnostic subtyping across three organs.
  • SPIDER: A massive expert-annotated patch-level benchmark (408k patches).
  • CAMELYON-16: Breast cancer metastasis detection.
  • CATCH: Canine cutaneous biopsies (testing cross-species generalization).

Key Insights and Ideas

  • The "Locked" Advantage: By freezing the vision encoder, the authors show that you can achieve SOTA results by simply "teaching" the text encoder how to navigate an existing, high-quality visual space. This significantly reduces compute costs.
  • Reports > Captions: Curated captions are often linguistically narrow. Clinical reports, despite being "weak" labels, contain the nuanced clinical heterogeneity required for complex diagnostic reasoning.
  • Intrinsic Interpretability: Because the aggregation is guided by text, the model is inherently interpretable. If you prompt the model with "metastasis," the cross-attention mechanism naturally puts higher weight on the patches containing tumor cells (see Figure 2).
Figure 2: Zero-shot breast cancer metastasis detection on the CAMELYON16 dataset. a) 4-way patch classification performed according to maximum cosine similarity. Metastasis annotations were provided by Camelyon+, while the remaining annotations were generated by an in-house pathologist. b) Model score for the ground truth class. Red indicates the ground truth class received high predicted scores, while blue indicates low scores for the predicted class. Scores are normalized per-patch, and heatmap range is determined per-model. c) Area Under the Precision-Recall Curve for the key tissue categories for CONCHv1.5 (blue) and CONCH-Z (red).

Key Results

CONCH-Z establishes a new baseline for zero-shot performance in pathology:

  • Slide-Level Subtyping: On the TCGA-OT benchmark, CONCH-Z achieved 78.8% balanced accuracy, outperforming the previous leading slide-level foundation model, TITAN (73.1%), and the supervised PRISM (59.4%).
  • Patch-Level Classification: It reached SOTA on nearly all subtasks of the SPIDER and CATCH datasets, proving that slide-level training actually improves patch-level understanding.
  • Zero-Shot Tumor Detection: On CAMELYON-16, it achieved an AUC of 96.7%, significantly outperforming QuiltNet (91.7%) and the base CONCH v1.5 (90.3%).

Detailed quantitative comparisons for patch-level and slide-level tasks can be found in the tables below:

Table 1: Patch-level zero-shot. Performance on patch-level tasks for C16 (AUC), SPIDER (balanced accuracy), and CATCH (balanced accuracy). Number of classes shown in parentheses. Best perfor- mance in bold; second-best underlined. Standard deviation according to 1,000 bootstrap trials.
Table 2: Slide-level zero-shot. HistAI and TCGA-OT per-organ balanced accuracy. Best bold; second-best underlined. Standard deviation reported according to 1,000 bootstrap trials.

Limitations and Future Work

The authors note that while LIMIT is highly efficient, the "locked" image encoder might be a double-edged sword. It preserves patch-level features but may be less expressive for "holistic" slide-level properties that aren't captured in individual patches, such as overall tumor cellularity, global mitotic activity, or the spatial arrangement of necrosis.

Future work may explore "lightweight" image-side adaptation—perhaps using adapters or LoRA on the vision backbone—to capture these global properties while retaining the benefits of the locked-image approach.

Summary updated

BibTeX
@inproceedings{shao2026beyond,
  author = {Daniel Shao and Dongmin Bang and Luca L. Weishaupt and Sophia J. Wagner and Nic G. Reitsam and Ming Y. Lu and Long P. Le and Richard J. Chen and Faisal Mahmood},
  title = {{Beyond Sparse Captions: Aligning Slide-Level Text and Patch-Level Vision in Pathology}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=nd95WRs4xs},
}
Figure