Scaling Vision Transformers to Gigapixel Images via Hierarchical Self-Supervised Learning
About
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.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Survival Prediction | TCGA-LUAD | C-index0.538 | 116 | |
| WSI Classification | NTUH-Ki67-Liver (5-fold cross-val) | Balanced Acc84.3 | 98 | |
| WSI-level retrieval | Private-Liver Internal (test) | Macro F1 Score46 | 46 | |
| Few-shot Cancer Subtype Classification | Human Breast (BRCA) 1,265 slides (test) | Macro-AUC78.1 | 40 | |
| Few-shot Cancer Subtype Classification | Human Lung (NSCLC) 1,946 slides (test) | Macro-AUC79.1 | 40 | |
| Patch-Level Classification | Private-Breast (5-Fold CV) | Macro F1 Score43.08 | 32 | |
| Semantic segmentation | GLAS | Dice71 | 28 | |
| RoI-level classification | MIST | Accuracy68.1 | 28 | |
| RoI-level classification | BCI | Accuracy66.1 | 28 | |
| Patch-level search | Private-Breast | Accuracy37.8 | 24 |