Foundation Models and Information Retrieval in Digital Pathology

Hamid R. TizhoosharXiv 2024 · DOI

Abstract

The rapid expansion of digital pathology and the emergence of gigapixel whole slide images (WSIs) have necessitated a shift from basic AI classification to advanced Information Retrieval (IR) and Foundation Models (FMs). This paper examines the evolving landscape of these technologies, highlighting the need for a synergistic approach where IR provides the transparency and source attribution required for clinical reliability, mitigating the risks of hallucinations associated with large generative models.

Introduction

Digital pathology has revolutionized diagnosis by moving it from the microscope to the computer screen. However, the resulting gigapixel files present a significant data management challenge. A single WSI contains intricate morphological patterns that are computationally daunting to search. Pathologists require the ability to search through millions of images to find similar cases for complex diagnoses, quality assurance, and research. While deep learning has advanced tasks like tumor detection, many models remain "black boxes." The advent of Foundation Models introduces further complexity, specifically the risk of medically inaccurate "hallucinations," which is unacceptable in a clinical setting.

Methodology

The paper reviews several key strategies for navigating massive pathology datasets:

  1. Divide and Conquer: To handle gigapixel dimensions, WSIs are typically divided into smaller patches. Features are extracted using deep networks ("Conquer"), and then compressed or encoded for fast retrieval ("Combine").
The Divide and Conquer workflow for processing gigapixel WSIs
  1. Content-Based Image Retrieval (CBIR): This allows a "tissue image as a query," where a pathologist submits a patch to find similar morphological features in an indexed archive or "atlas."
  2. Mosaic Generation & Barcoding: Approaches like Yottixel create a representative "mosaic" of patches from a slide and use "barcoding" (feature encoding) to enable rapid searching with minimal storage overhead.
  3. Cross-Modal Retrieval: Newer architectures like LILE (Look In-Depth before Looking Elsewhere) use transformers to align image and text features, allowing for bidirectional search.
  4. Retrieval-Augmented Generation (RAG): This technique merges IR and generative AI, using retrieved facts from a database to "anchor" the outputs of a Foundation Model, reducing hallucinations and providing source attribution.

Datasets and Benchmarks

Several benchmarks are used to validate these search engines, including internal and external clinical data, the ARCH dataset (containing over 7,500 image-text histopathology pairs), and various online repositories. The author cautions that high-quality clinical data is essential for medical reliability, as models trained on noisy online data often underperform.

Key Insights and Results

  • The "Atlas" Concept: An atlas is a structured, indexed collection of patient data curated to represent the full spectrum of a disease.
  • Storage Efficiency: Index size is a critical factor for scalability. For example, the SISH method requires 31 terabytes of memory to index one million WSIs, making it impractical for current technology. In contrast, BoVW (Bag of Visual Words) requires only 10 GB for the same task.
  • IR vs. FMs: Traditional IR provides evidence through similar past cases, while FMs provide conversational knowledge. The paper argues that IR is essential for providing the "visible, accessible, and explainable" evidence that FMs lack.
A comparison of various CBIR solutions across patching, encoding, and speed

Performance rankings identify Yottixel and BoVW as the most comprehensive solutions, successfully balancing high speed with efficient storage requirements.

Conclusion

The future of digital pathology depends on a "renaissance" of information retrieval to support and validate the outputs of Foundation Models. While computational barriers and the "black box" nature of large neural networks remain hurdles, the integration of explainable IR systems is vital for the clinical adoption of AI in pathology.

Summary updated

BibTeX
@misc{tizhoosh2024foundation,
  author = {Hamid R. Tizhoosh},
  title = {{Foundation Models and Information Retrieval in Digital Pathology}},
  year = {2024},
  eprint = {2403.12090},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.12090},
}
Figure