Skip to main content
QUICK REVIEW

[Paper Review] A Closer Look at Self-Supervised Lightweight Vision Transformers

Shaoru Wang, Jin Gao|arXiv (Cornell University)|May 28, 2022
Advanced Neural Network ApplicationsComputer Science8 citations
TL;DR

This paper investigates self-supervised pre-training for lightweight Vision Transformers (ViTs), demonstrating that vanilla ViT-Tiny (5.7M parameters) achieves 79.0% ImageNet top-1 accuracy when properly pre-trained with MAE, rivaling state-of-the-art architectures with complex designs. It reveals that pre-training favors lower layers with sufficient downstream data and introduces a distillation strategy during MAE pre-training that improves performance, especially on data-scarce tasks.

ABSTRACT

Self-supervised learning on large-scale Vision Transformers (ViTs) as pre-training methods has achieved promising downstream performance. Yet, how much these pre-training paradigms promote lightweight ViTs' performance is considerably less studied. In this work, we develop and benchmark several self-supervised pre-training methods on image classification tasks and some downstream dense prediction tasks. We surprisingly find that if proper pre-training is adopted, even vanilla lightweight ViTs show comparable performance to previous SOTA networks with delicate architecture design. It breaks the recently popular conception that vanilla ViTs are not suitable for vision tasks in lightweight regimes. We also point out some defects of such pre-training, e.g., failing to benefit from large-scale pre-training data and showing inferior performance on data-insufficient downstream tasks. Furthermore, we analyze and clearly show the effect of such pre-training by analyzing the properties of the layer representation and attention maps for related models. Finally, based on the above analyses, a distillation strategy during pre-training is developed, which leads to further downstream performance improvement for MAE-based pre-training. Code is available at https://github.com/wangsr126/mae-lite.

Motivation & Objective

  • To evaluate the effectiveness of self-supervised pre-training on lightweight Vision Transformers, especially ViT-Tiny, in comparison to state-of-the-art architectures.
  • To investigate why and how self-supervised pre-training improves performance on downstream tasks, particularly in data-scarce regimes.
  • To analyze the representational behavior of ViT layers during pre-training and fine-tuning to identify key factors influencing downstream performance.
  • To develop and validate a distillation strategy during MAE-based pre-training to further enhance performance on lightweight ViTs.

Proposed method

  • Benchmarked multiple self-supervised pre-training methods—MoCo-v3 (contrastive learning) and MAE (masked image modeling)—on ViT-Tiny across image classification and dense prediction tasks.
  • Conducted extensive analysis of layer representations and attention maps to study how pre-training shapes feature learning across different network depths.
  • Identified that lower layers are more critical with abundant downstream data, while higher layers dominate in data-scarce settings.
  • Discovered that MAE pre-training introduces a locality inductive bias by concentrating attention maps, which contributes to performance gains.
  • Proposed a distillation strategy during MAE pre-training, where a larger teacher network guides the student ViT-Tiny to improve feature quality, especially in higher layers.
  • Validated the method on ImageNet, Flowers, Aircraft, CIFAR100, COCO detection, and segmentation benchmarks, with ablation studies on distillation components.

Experimental results

Research questions

  • RQ1Can self-supervised pre-training close the performance gap between vanilla lightweight ViTs and state-of-the-art architectures with complex designs?
  • RQ2How does the representation learning behavior of ViT layers differ between pre-training and fine-tuning, and how does it depend on downstream data scale?
  • RQ3Why does MAE pre-training lead to better downstream performance, and what inductive biases does it introduce?
  • RQ4Can knowledge distillation during MAE pre-training further improve the performance of lightweight ViTs?

Key findings

  • Vanilla ViT-Tiny achieves 79.0% top-1 accuracy on ImageNet when pre-trained with MAE, matching or exceeding performance of previous SOTA models with complex architectural designs.
  • Lower layers of pre-trained ViTs contribute more to downstream performance when sufficient labeled data is available, while higher layers become more important in data-scarce settings.
  • MAE pre-training induces a locality inductive bias by concentrating attention maps, which correlates with improved generalization and performance.
  • The proposed distillation strategy during MAE pre-training significantly improves downstream performance, especially on data-insufficient classification and dense prediction tasks like COCO object detection and segmentation.
  • The distillation method enhances feature quality in higher layers, as evidenced by improved representation learning and better alignment with teacher network outputs.
  • Linear probing evaluations confirm that the improved representations from the proposed method generalize well across multiple 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.