Skip to main content
QUICK REVIEW

[Paper Review] Scaling Vision Transformers to Gigapixel Images via Hierarchical Self-Supervised Learning

Richard J. Chen, Chengkuan Chen|arXiv (Cornell University)|Jun 6, 2022
Cell Image Analysis TechniquesBiochemistry, Genetics and Molecular Biology8 citations
TL;DR

This paper introduces HIPT, a hierarchical Vision Transformer architecture that leverages multi-scale self-supervised learning to represent gigapixel whole-slide images (WSIs) in computational pathology. By pretraining on 10,678 WSIs across 33 cancer types using 104M $256\times256$ patches and 408k $4096\times4096$ regions, HIPT achieves state-of-the-art performance in slide-level tasks such as cancer subtyping and survival prediction, demonstrating that hierarchical self-supervision captures critical spatial and phenotypic inductive biases in tumor microenvironments.

ABSTRACT

Vision Transformers (ViTs) and their multi-scale and hierarchical variations have been successful at capturing image representations but their use has been generally studied for low-resolution images (e.g. - 256x256, 384384). For gigapixel whole-slide imaging (WSI) in computational pathology, WSIs can be as large as 150000x150000 pixels at 20X magnification and exhibit a hierarchical structure of visual tokens across varying resolutions: from 16x16 images capture spatial patterns among cells, to 4096x4096 images characterizing interactions within the tissue microenvironment. We introduce a new ViT architecture called the Hierarchical Image Pyramid Transformer (HIPT), which leverages the natural hierarchical structure inherent in WSIs using two levels of self-supervised learning to learn high-resolution image representations. HIPT is pretrained across 33 cancer types using 10,678 gigapixel WSIs, 408,218 4096x4096 images, and 104M 256x256 images. We benchmark HIPT representations on 9 slide-level tasks, and demonstrate that: 1) HIPT with hierarchical pretraining outperforms current state-of-the-art methods for cancer subtyping and survival prediction, 2) self-supervised ViTs are able to model important inductive biases about the hierarchical structure of phenotypes in the tumor microenvironment.

Motivation & Objective

  • To address the limitations of existing weakly-supervised multiple instance learning (MIL) frameworks in computational pathology, which fixate on $256\times256$ patch-level representations and lack attention mechanisms for long-range dependencies.
  • To enable effective slide-level representation learning in gigapixel whole-slide images (WSIs) by exploiting their inherent hierarchical structure across multiple resolutions.
  • To develop a Vision Transformer architecture that jointly pretrains both tokenization and aggregation components via self-supervised learning, improving generalization in low-data regimes.
  • To validate that hierarchical self-supervised pretraining captures biologically meaningful inductive biases in tumor microenvironments, such as tumor-immune localization and spatial phenotypic organization.

Proposed method

  • Proposes the Hierarchical Image Pyramid Transformer (HIPT), a three-stage architecture that performs bottom-up aggregation from $16\times16$ cell-level tokens to $256\times256$ and $4096\times4096$ regional representations.
  • Employs two-stage self-supervised pretraining: first on $256\times256$ patches and then on $4096\times4096$ regions, using contrastive learning with instance discrimination.
  • Uses a ViT backbone with $16\times16$ patch embeddings as the base feature extractor, with separate ViT encoders for $256\times256$ and $4096\times4096$ scales.
  • Applies factorized attention mechanisms to visualize hierarchical attention maps, enabling interpretability of tumor and immune cell localization.
  • Performs stage-wise pretraining: first on $256\times256$ patches across 104M instances, then on $4096\times4096$ regions across 408k instances.
  • Utilizes [CLS] tokens from the last four ViT layers for feature concatenation, though no performance gain was observed.

Experimental results

Research questions

  • RQ1Can hierarchical self-supervised pretraining of Vision Transformers improve slide-level representation learning in gigapixel whole-slide images compared to standard MIL frameworks?
  • RQ2Does modeling multi-scale visual tokens—from $16\times16$ cells to $4096\times4096$ tissue regions—capture biologically relevant inductive biases in tumor microenvironments?
  • RQ3How does pretraining on pan-cancer data compare to organ-specific pretraining in terms of generalization and interpretability of attention maps?
  • RQ4Can self-supervised ViTs outperform supervised or weakly-supervised MIL baselines in cancer subtyping and survival prediction tasks?
  • RQ5To what extent do hierarchical attention mechanisms localize clinically relevant features such as tumor nests, stromal invasion, and immune infiltrates?

Key findings

  • HIPT with hierarchical pretraining achieves state-of-the-art performance on 9 slide-level tasks, outperforming current SOTA methods in cancer subtyping and survival prediction.
  • Pan-cancer pretraining on 33 cancer types leads to better generalization than organ-specific pretraining, particularly in localizing tumor and lymphocyte cells across diverse histopathologic patterns.
  • The model demonstrates superior interpretability, with hierarchical attention maps successfully localizing invasive tumor cells in demoplastic stroma and tumor nest patterns critical for distinguishing invasive ductal versus lobular carcinoma.
  • In BRCA subtyping, HIPT with pan-cancer pretraining outperforms BRCA-specific pretraining, likely due to better capture of stromal context needed to differentiate phenotypically similar subtypes.
  • Self-supervised ViTs are able to model long-range spatial dependencies across tissue microenvironments, enabling accurate survival prediction through attention to tumor-immune localization.
  • Feature concatenation across ViT layers did not improve performance, suggesting that the [CLS] token from the final layer is sufficient for downstream tasks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.