CVMay 30, 2022

HiViT: Hierarchical Vision Transformer Meets Masked Image Modeling

arXiv:2205.14949v143 citationsh-index: 67
Originality Incremental advance
AI Analysis

This work addresses a bottleneck in self-supervised pre-training for vision transformers, offering an incremental improvement that benefits researchers and practitioners in computer vision.

The paper tackles the inefficiency of hierarchical vision transformers in masked image modeling by proposing HiViT, which removes unnecessary operations to achieve both high efficiency and good performance. In experiments, HiViT-B shows a +0.6% accuracy gain over ViT-B and a 1.9x speed-up over Swin-B on ImageNet-1K, with gains generalizing to detection and segmentation tasks.

Recently, masked image modeling (MIM) has offered a new methodology of self-supervised pre-training of vision transformers. A key idea of efficient implementation is to discard the masked image patches (or tokens) throughout the target network (encoder), which requires the encoder to be a plain vision transformer (e.g., ViT), albeit hierarchical vision transformers (e.g., Swin Transformer) have potentially better properties in formulating vision inputs. In this paper, we offer a new design of hierarchical vision transformers named HiViT (short for Hierarchical ViT) that enjoys both high efficiency and good performance in MIM. The key is to remove the unnecessary "local inter-unit operations", deriving structurally simple hierarchical vision transformers in which mask-units can be serialized like plain vision transformers. For this purpose, we start with Swin Transformer and (i) set the masking unit size to be the token size in the main stage of Swin Transformer, (ii) switch off inter-unit self-attentions before the main stage, and (iii) eliminate all operations after the main stage. Empirical studies demonstrate the advantageous performance of HiViT in terms of fully-supervised, self-supervised, and transfer learning. In particular, in running MAE on ImageNet-1K, HiViT-B reports a +0.6% accuracy gain over ViT-B and a 1.9$\times$ speed-up over Swin-B, and the performance gain generalizes to downstream tasks of detection and segmentation. Code will be made publicly available.

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