NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Few-Shot Learning from Gigapixel Images via Hierarchical Vision-Language Alignment and Modeling

Bryan Wong, Jong Woo Kim, Huazhu Fu, Mun Yong Yi · DOI

Executive Summary

HiVE-MIL (Hierarchical Vision-LanguagE Multiple Instance Learning) is a novel framework designed to classify massive, gigapixel medical images—specifically Whole Slide Images (WSIs)—using only a handful of labeled examples. By constructing a hierarchical graph that explicitly links coarse tissue structures to fine-grained cellular details and aligning them with descriptive medical text, the model achieves state-of-the-art performance in "few-shot" clinical scenarios.

The Challenge of Gigapixel Pathology

In computational pathology, researchers work with Whole Slide Images (WSIs). These digital files of tissue biopsies are so large (often billions of pixels) that they cannot be processed by standard neural networks all at once. The standard approach is Multiple Instance Learning (MIL), where an image is broken into thousands of small patches, and a model predicts a slide-level diagnosis based on these patches.

However, traditional MIL faces two major hurdles:

  1. Data Scarcity: Training robust models usually requires thousands of labeled slides, which are expensive and difficult to obtain, especially for rare diseases.
  2. Structural Blindness: Pathology is inherently hierarchical. A pathologist first examines a slide at low magnification to understand the tissue architecture (the "forest") and then zooms in to inspect individual cells (the "trees"). Most current AI models treat different magnifications independently or simply average them, failing to capture the vital relationship between broad patterns and minute details.
Comparison of MIL architectures showing the evolution from traditional methods to the proposed hierarchical approach.

HiVE-MIL: A Hierarchical Approach

The authors introduce HiVE-MIL, which treats WSI classification as a graph-reasoning problem. Instead of a flat list of patches, it builds a Hierarchical Heterogeneous Graph (HHG).

Detailed architecture of the HiVE-MIL framework highlighting hierarchical alignment between image scales and textual descriptions.

Key Innovations:

  • Hierarchical Heterogeneous Graph (HHG): This graph creates "parent-child" links between coarse patches (e.g., 5× magnification) and the fine-grained patches (e.g., 20× magnification) contained within them. It also integrates "intra-scale" links between image patches and textual descriptions.
  • LLM-Guided Knowledge: Using GPT-4o, the researchers generated structured medical descriptions for cancer subtypes at both 5× and 20× scales. This provides the model with "prior knowledge" about diagnostic features.
  • Text-Guided Dynamic Filtering (TGDF): To handle the "noise" in gigapixel images (where many patches are normal tissue), TGDF uses a soft-thresholding mechanism to prune the graph, focusing only on patches that semantically match cancer descriptions.
  • Modality-Scale Attention (MSA): This mechanism allows information to flow across the graph, ensuring the model understands how a specific cellular feature at 20× supports a broader tissue pattern seen at 5×.
  • Hierarchical Text Contrastive Loss (HTCL): A training objective that ensures text embeddings for "parent" concepts (like glandular patterns) stay semantically aligned with their "child" concepts (like specific nuclear shapes).

Experimental Results

HiVE-MIL was evaluated on major cancer datasets from The Cancer Genome Atlas (TCGA), including Lung (NSCLC), Breast (BRCA), and Kidney (RCC) cancers, as well as the Camelyon16 benchmark.

The model was tested in 4-shot, 8-shot, and 16-shot settings. Key findings include:

  • Superior Accuracy: In 16-shot settings, HiVE-MIL outperformed existing state-of-the-art vision-language models by up to 4.1% in macro F1 score on breast cancer datasets.
  • Robustness: It consistently outperformed traditional MIL methods (like CLAM or TransMIL) and recent VLM-based methods (like ViLa-MIL) across all tested cancer types and different visual "backbones" (PLIP, QuiltNet, CONCH).
  • Interpretability: By linking patches to specific text descriptions, the model produces heatmaps that explain its diagnosis (e.g., identifying "Glandular Acinar Patterns" in Lung Adenocarcinoma).

Discussion and Future Work

The "Aha" moment of this research is that modeling the relationship between scales is more critical than just having multi-scale data. By explicitly linking magnifications, the model mimics the diagnostic workflow of a human pathologist. Furthermore, using language as a "bridge" helps anchor visual learning to stable medical concepts, which is vital when data is scarce.

While powerful, the authors note that the filtering mechanism (TGDF) currently relies on fixed thresholds that could be made adaptive. Additionally, while LLM-generated text is effective, future iterations could benefit from direct refinement by expert pathologists. Despite the increased computational cost of graph-based reasoning, the performance gains in data-limited clinical settings make HiVE-MIL a significant step forward for AI in pathology.

Summary updated

BibTeX
@inproceedings{wong2025few,
  author = {Bryan Wong and Jong Woo Kim and Huazhu Fu and Mun Yong Yi},
  title = {{Few-Shot Learning from Gigapixel Images via Hierarchical Vision-Language Alignment and Modeling}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=ZC2rbIYWfy},
}
Figure