Reproduce “TinyMIM: An Empirical Study of Distilling MIM Pre-trained Models” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Sucheng Ren, Fangyun Wei, Zheng Zhang, Han Hu

Microsoft Research Asia's TinyMIM framework utilizes knowledge distillation to enable small Vision Transformers (ViTs) to benefit from Masked Image Modeling (MIM) pre-training, which previously showed limited efficacy for smaller models. The approach achieved substantial performance gains, with TinyMIM-ViT-Tiny reaching 79.6% top-1 accuracy on ImageNet-1K and demonstrating improved robustness on out-of-domain benchmarks.

Key insights

  • Distilling attention-based relations (specifically Q-K and V-V relations) from the teacher proved most effective, outperforming feature or class token distillation for knowledge transfer.
  • Using raw, unmasked images as input for the student during distillation yielded superior performance compared to using masked images, despite the teacher's original MIM pretext task.
  • Optimal distillation often occurs when targeting intermediate layers of the teacher network, and sequential distillation significantly benefits the training of very small student models.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.