Mobile V-MoEs: Scaling Down Vision Transformers via Sparse Mixture-of-Experts

Erik Daxberger, Floris Weers, Bowen Zhang, Tom Gunter, Ruoming Pang +5 more
9/8/2023
cs.CVcs.LGstat.ML

No confident code implementation found for this paper.

Abstract

Sparse Mixture-of-Experts models (MoEs) have recently gained popularity due to their ability to decouple model size from inference efficiency by only activating a small subset of the model parameters for any given input token. As such, sparse MoEs have enabled unprecedented scalability, resulting in tremendous successes across domains such as natural language processing and computer vision. In this work, we instead explore the use of sparse MoEs to scale-down Vision Transformers (ViTs) to make them more attractive for resource-constrained vision applications. To this end, we propose a simplified and mobile-friendly MoE design where entire images rather than individual patches are routed to the experts. We also propose a stable MoE training procedure that uses super-class information to guide the router. We empirically show that our sparse Mobile Vision MoEs (V-MoEs) can achieve a better trade-off between performance and efficiency than the corresponding dense ViTs. For example, for the ViT-Tiny model, our Mobile V-MoE outperforms its dense counterpart by 3.39% on ImageNet-1k. For an even smaller ViT variant with only 54M FLOPs inference cost, our MoE achieves an improvement of 4.66%.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{daxberger2023mobile,
  title  = {Mobile V-MoEs: Scaling Down Vision Transformers via Sparse Mixture-of-Experts},
  author = {Erik Daxberger and Floris Weers and Bowen Zhang and Tom Gunter and Ruoming Pang and Marcin Eichner and Michael Emmersberger and Yinfei Yang and Alexander Toshev and Xianzhi Du},
  year   = {2023},
  eprint = {2309.04354},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2309.04354v1}
}

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/2309.04354.svg)](https://codeofpaper.com/paper/2309.04354)

Discussion