How Lightweight Can A Vision Transformer Be
Jen Hong Tan
TL;DR
This work tackles the challenge of building ultra-light vision transformers that perform well on small datasets and edge devices. It introduces mLiT, a MoE-based lightweight ViT with SwiGLU experts and shared projections, plus mmLiT with MAE pretraining for self-supervised learning and downstream fine-tuning. Key findings show that mmLiT-S can achieve competitive accuracy with only 0.67M parameters, with mmLiT-XS/XXS remaining viable at larger scales, and pretraining on CIFAR-100 enhances transfer to CIFAR-10, SVHN, and Flowers102. The results suggest that a combination of streamlined MoE, depth-wise scaling, and MAE pretraining can mitigate inductive-bias gaps and enable practical edge-efficient vision transformers.
Abstract
In this paper, we explore a strategy that uses Mixture-of-Experts (MoE) to streamline, rather than augment, vision transformers. Each expert in an MoE layer is a SwiGLU feedforward network, where V and W2 are shared across the layer. No complex attention or convolutional mechanisms are employed. Depth-wise scaling is applied to progressively reduce the size of the hidden layer and the number of experts is increased in stages. Grouped query attention is used. We studied the proposed approach with and without pre-training on small datasets and investigated whether transfer learning works at this scale. We found that the architecture is competitive even at a size of 0.67M parameters.
