Scaling Vision with Sparse Mixture of Experts

Carlos Riquelme, Joan Puigcerver, Basil Mustafa, Maxim Neumann, Rodolphe Jenatton +3 more
6/10/2021
1,294 citations
cs.CVcs.LGstat.ML
moe

Official code: google-research/vmoe (729 stars, Jupyter Notebook, Apache-2.0, last commit 2025-12-06).

Abstract

Sparsely-gated Mixture of Experts networks (MoEs) have demonstrated excellent scalability in Natural Language Processing. In Computer Vision, however, almost all performant networks are "dense", that is, every input is processed by every parameter.

Show full abstract

We present a Vision MoE (V-MoE), a sparse version of the Vision Transformer, that is scalable and competitive with the largest dense networks. When applied to image recognition, V-MoE matches the performance of state-of-the-art networks, while requiring as little as half of the compute at inference time. Further, we propose an extension to the routing algorithm that can prioritize subsets of each input across the entire batch, leading to adaptive per-image compute. This allows V-MoE to trade-off performance and compute smoothly at test-time. Finally, we demonstrate the potential of V-MoE to scale vision models, and train a 15B parameter model that attains 90.35% on ImageNet.

View on arXivView PDF

Code Implementations(1)

Apache-2.0
72960Jupyter Notebook, PythonOct 8, 202112 months agoApache-2.0

Similar Papers

Cite this paper

@article{riquelme2021scaling,
  title  = {Scaling Vision with Sparse Mixture of Experts},
  author = {Carlos Riquelme and Joan Puigcerver and Basil Mustafa and Maxim Neumann and Rodolphe Jenatton and André Susano Pinto and Daniel Keysers and Neil Houlsby},
  year   = {2021},
  eprint = {2106.05974},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.05974}
}

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

Discussion