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

Bryan Wong, Jong Woo Kim, Hua-Zhu Fu, Mun Yi
5/1/2025
7 citations

No official code found. Best implementation: bryanwong17/HiVE-MIL (26 stars, Jupyter Notebook, MIT, last commit 2025-12-16).

Abstract

Vision-language models (VLMs) have recently been integrated into multiple instance learning (MIL) frameworks to address the challenge of few-shot, weakly supervised classification of whole slide images (WSIs). A key trend involves leveraging multi-scale information to better represent hierarchical tissue structures.

Show full abstract

However, existing methods often face two key limitations: (1) insufficient modeling of interactions within the same modalities across scales (e.g., 5x and 20x) and (2) inadequate alignment between visual and textual modalities on the same scale. To address these gaps, we propose HiVE-MIL, a hierarchical vision-language framework that constructs a unified graph consisting of (1) parent-child links between coarse (5x) and fine (20x) visual/textual nodes to capture hierarchical relationships, and (2) heterogeneous intra-scale edges linking visual and textual nodes on the same scale. To further enhance semantic consistency, HiVE-MIL incorporates a two-stage, text-guided dynamic filtering mechanism that removes weakly correlated patch-text pairs, and introduces a hierarchical contrastive loss to align textual semantics across scales. Extensive experiments on TCGA breast, lung, and kidney cancer datasets demonstrate that HiVE-MIL consistently outperforms both traditional MIL and recent VLM-based MIL approaches, achieving gains of up to 4.1% in macro F1 under 16-shot settings. Our results demonstrate the value of jointly modeling hierarchical structure and multimodal alignment for efficient and scalable learning from limited pathology data. The code is available at https://github.com/bryanwong17/HiVE-MIL.

View on arXivView PDF

Code Implementations(1)

MIT

[NeurIPS 2025] Few-Shot Learning from Gigapixel Images via Hierarchical Vision-Language Alignment and Modeling

265Jupyter Notebook, PythonMay 15, 202511 months agoMIT
computational-pathologydata-efficient-learningfew-shot-learningmultimodal-learningmultiple-instance-learning+2 more

Similar Papers

Cite this paper

@article{wong2025fewshot,
  title  = {Few-Shot Learning from Gigapixel Images via Hierarchical Vision-Language Alignment and Modeling},
  author = {Bryan Wong and Jong Woo Kim and Hua-Zhu Fu and Mun Yi},
  year   = {2025},
  eprint = {2505.17982},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2505.17982},
  url    = {https://doi.org/10.48550/arXiv.2505.17982},
  journal = {Neural Information Processing Systems}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.17982.svg)](https://codeofpaper.com/paper/2505.17982)

Discussion