CVDec 13, 2022

FastMIM: Expediting Masked Image Modeling Pre-training for Vision

arXiv:2212.06593v115 citationsh-index: 54Has Code
Originality Incremental advance
AI Analysis

This addresses the computational bottleneck for researchers and practitioners using MIM in vision, making it more practical, though it is incremental as it builds on existing MIM frameworks.

The paper tackles the high computational cost of masked image modeling (MIM) pre-training for vision tasks by proposing FastMIM, which uses low-resolution inputs and reconstructs HOG features to speed up training, achieving 83.8%/84.1% top-1 accuracy on ImageNet-1K with ViT-B/Swin-B backbones and a ~5x acceleration compared to previous methods.

The combination of transformers and masked image modeling (MIM) pre-training framework has shown great potential in various vision tasks. However, the pre-training computational budget is too heavy and withholds the MIM from becoming a practical training paradigm. This paper presents FastMIM, a simple and generic framework for expediting masked image modeling with the following two steps: (i) pre-training vision backbones with low-resolution input images; and (ii) reconstructing Histograms of Oriented Gradients (HOG) feature instead of original RGB values of the input images. In addition, we propose FastMIM-P to progressively enlarge the input resolution during pre-training stage to further enhance the transfer results of models with high capacity. We point out that: (i) a wide range of input resolutions in pre-training phase can lead to similar performances in fine-tuning phase and downstream tasks such as detection and segmentation; (ii) the shallow layers of encoder are more important during pre-training and discarding last several layers can speed up the training stage with no harm to fine-tuning performance; (iii) the decoder should match the size of selected network; and (iv) HOG is more stable than RGB values when resolution transfers;. Equipped with FastMIM, all kinds of vision backbones can be pre-trained in an efficient way. For example, we can achieve 83.8%/84.1% top-1 accuracy on ImageNet-1K with ViT-B/Swin-B as backbones. Compared to previous relevant approaches, we can achieve comparable or better top-1 accuracy while accelerate the training procedure by $\sim$5$\times$. Code can be found in https://github.com/ggjy/FastMIM.pytorch.

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes