Validation of Whole-Slide Foundation Models for Image Retrieval in TCGA Data

Tianhao Lei, Parsa Esmaeilkhani, Saghir Alfasly, Wataru Uegami, Judy C. Boughey, Matthew P. Goetz, Krishna R. Kalari, H. R. TizhoosharXiv 2026

TL;DR

This paper presents a large-scale benchmark of ten whole-slide image retrieval pipelines on over 9,000 diagnostic slides from TCGA. The results reveal that complex slide-level aggregation provides surprisingly little benefit over high-quality patch-level features, and that current morphology-based models face an intrinsic performance ceiling matching the diagnostic uncertainty of human experts.

What Problem Does This Paper Address?

In computational pathology, foundation models (FMs) have rapidly proliferated. These models typically operate in two steps: a patch-level encoder turns tiny tissue tiles into embeddings, and a slide-level aggregator combines them to represent a whole-slide image (WSI). While these models excel at supervised tasks like cancer subtyping, their performance in a purely zero-shot, label-free image retrieval setting—where a query slide is matched against an archive based purely on feature similarity—remains poorly understood.

Prior evaluations often looked at aggregate performance across entire datasets, masking how models behave on specific organs or rare diagnoses. Furthermore, it was unclear whether the high computational cost of training sophisticated slide-level aggregators actually translates to better search accuracy compared to simpler, aggregation-free patch matching.

Methods

The authors built a unified benchmarking framework to evaluate ten different retrieval pipelines:

  1. Four pre-trained slide foundation models: TITAN, PRISM, Madeleine, and GigaPath.
  2. One supervised aggregator baseline: Attention-based Multiple Instance Learning (ABMIL) trained on top of frozen CONCH v1.5 patch embeddings.
  3. Five aggregation-free patch-level configurations: The Yottixel search framework utilizing CONCH v1.5 patch embeddings at five different sampling densities (5%, 10%, 20%, 50%, and 100%).

To ensure a rigorous evaluation, the benchmark used a patient-level leave-one-patient-out protocol (preventing data leakage from the same patient) and evaluated retrieval vertically within each organ using macro-averaged F1 scores.

Datasets

The evaluation was conducted on diagnostic whole-slide histopathology images from The Cancer Genome Atlas (TCGA). To fix common benchmarking issues with TCGA (such as overlapping categories or outdated nomenclature), the authors adopted a standardized classification scheme. After applying strict exclusion criteria (e.g., minimum patient counts), the final curated dataset contained 9,387 diagnostic slides spanning 17 organs and 60 organ-specific diagnoses.

Key Insights and Ideas

  • Slide-Level Aggregation is Overrated for Retrieval: One of the most surprising findings is that sophisticated slide-level FMs contribute very little marginal benefit over simple patch-level matching. Retrieval quality is overwhelmingly driven by the quality of the underlying patch-level feature representations.
  • No Universally Optimal Architecture: Model performance is highly dependent on the anatomical site and specific diagnosis rather than the model's architecture. A model that wins in one organ often loses in another.
  • The "Pathologist Ceiling": Model failures are highly structured and concentrated within morphologically adjacent classes (e.g., confusing subtypes of thymoma or thyroid variants). Crucially, these algorithmic blind spots align almost perfectly with organs known for high inter-observer variability among human pathologists, suggesting a fundamental limit to what can be achieved using pure visual morphology (H&E staining) alone.
  • Zero-Shot FMs Match Supervised Baselines: The zero-shot slide foundation model TITAN achieved performance statistically indistinguishable from a supervised ABMIL model trained directly on the target dataset, demonstrating remarkable zero-shot transfer capabilities.

Key Results

  • Overall Performance: TITAN achieved the highest overall organ-averaged Top-1 F1-macro score ($0.689 \pm 0.209$), narrowly outperforming the supervised ABMIL baseline ($0.667 \pm 0.200$) and the aggregation-free Yottixel (100%) baseline ($0.656 \pm 0.200$).
  • Organ-Level Heterogeneity: Performance varied drastically by organ. Well-differentiated tissues like the pancreas achieved a perfect 1.00 F1 score across multiple methods, while complex sites like the thymus ($0.34\text{–}0.51$) and brain ($0.34\text{–}0.46$) proved difficult for all models.
Fig. 1: Comparative evaluation of whole-slide image retrieval models across 17 organs. a,b, Mean organ-averaged F1-macro across 17 organs for Top-1 (a) and Top-3 (b) retrieval. Bars denote mean ± s.d.; dots indicate individual organ scores. Significance brackets indicate two-sided paired comparisons against TITAN (ns, not significant; *p < 0.05; **p < 0.01; ***p < 0.001; n = 17 organs). c,d, Radar plots showing organ-level F1-macro for all ten retrieval configurations under Top-1 (c) and Top-3 (d) retrieval. e,f, Heatmaps of organ-specific F1-macro under Top-1 (e) and Top-3 (f) retrieval; bold values indicate the highest score within each organ. g,h, Number of organs for which each model achieved the highest F1-macro under Top-1 (g) and Top-3 (h) retrieval. [Note that Yottixel+CONCH has been shortened to Yottixel in the figure]
  • Top-3 Retrieval Shifts: When expanding the search to a Top-3 majority vote, the supervised ABMIL model took the lead in 7 out of 17 organs, showing that neighborhood expansion helps resolve local embedding confusions.
  • Complete Failures: Despite architectural advances, the absolute performance floor is low: the best model only averages $\approx 68\%$ accuracy across TCGA, and for several rare or complex diagnostic subtypes, every single evaluated model failed completely (0% accuracy).

Limitations and Future Work

  • Supervision Bias: The ABMIL baseline was trained and tested within TCGA (in-distribution), giving it an inherent advantage over the strictly zero-shot foundation models.
  • Morphology Limits: The study underscores that visual features from H&E slides are insufficient for fine-grained subtyping where genetic or molecular markers are the true ground truth.
  • Future Directions: The authors advocate for moving away from a "one-size-fits-all" model approach. Instead, future work should focus on organ-resolved benchmarking, ensemble deployment strategies, and multimodal retrieval frameworks that combine morphology with clinical, immunohistochemical (IHC), or genomic data.

Summary updated

BibTeX
@misc{lei2026validation,
  author = {Tianhao Lei and Parsa Esmaeilkhani and Saghir Alfasly and Wataru Uegami and Judy C. Boughey and Matthew P. Goetz and Krishna R. Kalari and H. R. Tizhoosh},
  title = {{Validation of Whole-Slide Foundation Models for Image Retrieval in TCGA Data}},
  year = {2026},
  eprint = {2605.00902},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.00902},
}
Figure