vision transformerViT
视觉Transformer
An image model that cuts a picture into 16×16-pixel patches and feeds each patch to a transformer as if it were a word. Given enough training data it rivals CNNs, and it is now the most common backbone of medical foundation models.
Alexey Dosovitskiy and colleagues at Google posted "An image is worth 16x16 words" in October 2020; it appeared at ICLR 2021. A 224×224 image is cut into 14 × 14 = 196 patches. Each patch is flattened, projected linearly into a vector, and given a positional encoding, and a classification token that summarizes the whole image is prepended. The sequence then passes through a standard transformer encoder.
Unlike a CNN, a ViT has no built-in assumption that neighboring pixels belong together; it must learn this from data. Trained on ImageNet alone, it trails a ResNet of similar size. Only after pretraining on JFT-300M, about 300 million images, did it match or beat the best convolutional networks.
For medical imaging this means ViTs are data-hungry, and self-supervised learning supplies the data by learning from unlabeled images. RETFound (2023) pretrained a ViT-Large on 1.6 million retinal images, and pathology foundation models such as UNI and Prov-GigaPath are also built on ViTs.
- Dosovitskiy A, Beyer L, Kolesnikov A, et al. An image is worth 16x16 words: transformers for image recognition at scale. ICLR 2021 (arXiv:2010.11929). arxiv.org/abs/2010.11929
- Zhou Y, Chia MA, Wagner SK, et al. A foundation model for generalizable disease detection from retinal images. Nature. 2023;622:156–163. doi.org/10.1038/s41586-023-06555-x
Key works · 10
Landmark2021ICLR 202172,289 citations
An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
ViT splits an image into fixed-size patches, projects them to tokens, and adds position embeddings before applying a Transformer encoder. The paper compares different pretraining scales and finds that large-scale pretraining makes the approach competitive on several downstream image classification benchmarks.
SignificanceThe work established a general vision backbone that represents an image as a sequence of patches. UNETR adapts that idea to volumetric segmentation, and Masked Autoencoders use a ViT encoder to learn patch representations by reconstructing missing image content.
arXiv Alexey DosovitskiyNeil Houlsby vision transformertransformerself-attentiontransfer learning
Landmark2021ICCV 202149,078 citations
Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
Swin computes attention inside local windows and shifts the partition between successive layers so information can cross window boundaries. Patch merging produces a hierarchy of spatial scales. With a fixed window size, attention computation scales linearly with image area. The paper evaluates classification, detection, and segmentation.
SignificanceHierarchical window attention provided a vision transformer backbone suited to dense prediction at larger image sizes. Swin UNETR adapts this design to three-dimensional medical volumes and uses its multiscale features to segment brain tumors in MRI.
DOI arXiv Full text Ze LiuBaining Guo Swin Transformervision transformerself-attention
Landmark2022IEEE/CVF CVPR 202216,149 citations
Masked Autoencoders Are Scalable Vision Learners
The masked autoencoder hides most image patches, typically 75%, and passes only the visible patches to the encoder. A lightweight decoder reconstructs the missing pixels. Experiments on ImageNet and transfer tasks showed that the asymmetric training scheme could efficiently pretrain large vision transformers.
SignificanceThe architecture made pixel reconstruction a practical pretraining task for large encoders, using images without manual labels. RETFound directly adopted masked autoencoding for retinal imaging and tested whether the resulting representations reduced the need for labeled data in disease prediction.
DOI arXiv Full text Kaiming HeRoss Girshick masked image modelingself-supervised learningvision transformerautoencoder
Landmark2024Nature1,551 citations
A whole-slide foundation model for digital pathology from real-world data
Prov-GigaPath pretrained a tile encoder on 1.3 billion tissue tiles from 171,189 slides in the Providence health network. A long-context transformer then learned to combine tiles into slide-level representations. The study evaluated cancer subtyping and biomarker prediction, including transfer to external data.
SignificanceThe work supplied a reusable reference for whole-slide pretraining that could process tens of thousands of tiles from one slide. TITAN subsequently benchmarked against Prov-GigaPath when assessing whether slide-level report alignment and other training choices improved transfer to new pathology tasks.
DOI Full text Hanwen XuCarlo BifulcoSheng WangHoifung Poon foundation modelwhole-slide imagevision transformerhistopathology
Key2021ICCV 202111,661 citations
Emerging Properties in Self-Supervised Vision Transformers
DINO trains a student to match a momentum-updated teacher across different crops of an image. With a vision transformer backbone, the authors show that the learned features support nearest-neighbor classification and that some attention maps localize objects despite training without segmentation labels.
SignificanceDINO demonstrated that self-distilled transformers can learn spatially informative representations without class labels. DINOv2 extends that line of work with larger models and curated training data, and evaluates the resulting frozen features on dense vision tasks as well as classification.
DOI arXiv Mathilde CaronArmand Joulin self-supervised learningvision transformerimage segmentation
Key2021ICML 2021 (PMLR 139)5,971 citations
Training data-efficient image transformers & distillation through attention
DeiT studies how to train a vision transformer without a large external pretraining set. In addition to a revised augmentation and training recipe, the authors introduce a distillation token that learns from a teacher classifier. They report competitive classification using ImageNet data alone.
SignificanceDeiT provided a reference recipe for training vision transformers using ImageNet, making it possible to compare designs under a shared data constraint. The Swin and DINO papers both use DeiT as a point of comparison in their experiments.
arXiv Hugo TouvronHervé Jégou vision transformerImageNetdata augmentation
Key2022IEEE/CVF CVPR 2022987 citations
Scaling Vision Transformers to Gigapixel Images via Hierarchical Self-Supervised Learning
HIPT represented gigapixel slides hierarchically, using one self-supervised vision transformer to summarize small image patches and another to encode larger tissue regions. Pretrained on cancer slides, the hierarchy was evaluated on nine slide-level tasks, including cancer subtyping and survival prediction.
SignificanceHIPT made the magnification hierarchy of histology part of the pretraining architecture. Prov-GigaPath subsequently compared its long-context whole-slide strategy against HIPT, giving later work a reference for testing how best to preserve both local morphology and larger tissue context.
DOI arXiv Full text Richard J. ChenFaisal Mahmood whole-slide imagevision transformerself-supervised learningfoundation model
Key2022WACV 20224,964 citations
UNETR: Transformers for 3D Medical Image Segmentation
UNETR tokenizes a three-dimensional scan into patches, encodes them with a transformer, and transfers representations at different encoder depths to a convolutional decoder that restores voxel resolution. It was assessed on abdominal multi-organ CT and on brain tumor and spleen segmentation tasks.
SignificanceThe work turned a ViT-style encoder and a U-shaped decoder into a practical design for volumetric segmentation. Swin UNETR keeps that broad structure and substitutes a hierarchical shifted-window encoder to obtain spatial features at several scales.
DOI arXiv Full text Ali HatamizadehDaguang Xu vision transformerU-Netskip connectionvoxelmulti-organ segmentation
Key2024Transactions on Machine Learning Research11,819 citations
DINOv2: Learning Robust Visual Features without Supervision
DINOv2 uses a curated large image collection to train a vision transformer and distills its representations into smaller networks. The authors keep the encoders frozen during a range of evaluations and report strong transfer to tasks including classification, semantic segmentation, and depth estimation.
SignificanceReleased weights enabled downstream models to reuse a general self-supervised encoder. Depth Anything initializes its encoder with DINOv2 in a system for monocular depth estimation, documenting adoption of the pretrained representations for a dense prediction task.
arXiv Maxime OquabPiotr Bojanowski self-supervised learningvision transformertransfer learning
Key2024Medical Image Analysis1,929 citations
TransUNet: Rethinking the U-Net architecture design for medical image segmentation through the lens of transformers
TransUNet tokenizes convolutional features for a transformer encoder that models global context. The journal version also evaluates a cross-attention decoder that refines candidate regions. It compares encoder and decoder configurations in 2D and 3D on tasks including abdominal organs, pancreatic tumors, and hepatic vessels.
SignificanceThe earlier TransUNet release established a widely cited example of combining convolution and attention for medical segmentation. The journal study makes the roles of context encoding and candidate refinement separately testable by comparing encoder-only, decoder-only, and combined configurations.
DOI arXiv Full text Jieneng ChenYuyin Zhou U-Netvision transformerself-attentionimage segmentationmulti-organ segmentation