A Closer Look at Self-Supervised Lightweight Vision Transformers

Shaoru Wang, Jin Gao, Zeming Li, Xiaoqin Zhang, Weiming Hu
5/28/2022
72 citations
cs.CV
transformer-attentioncontrastive-ssl

Official code: wangsr126/MAE-Lite (153 stars, Python, Apache-2.0, last commit 2025-03-02).

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

wangsr126/MAE-LiteOfficial100%
Apache-2.0

Official implement for ICML2023 paper: "A Closer Look at Self-Supervised Lightweight Vision Transformers"

15311Python, ShellMay 25, 20221 years agoApache-2.0

Similar Papers

Cite this paper

@article{wang2022closer,
  title  = {A Closer Look at Self-Supervised Lightweight Vision Transformers},
  author = {Shaoru Wang and Jin Gao and Zeming Li and Xiaoqin Zhang and Weiming Hu},
  year   = {2022},
  eprint = {2205.14443},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.14443}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2205.14443.svg)](https://codeofpaper.com/paper/2205.14443)

Discussion