[Paper Review] Scaling Vision with Sparse Mixture of Experts
Introduces Vision MoE (V-MoE), a sparse variant of Vision Transformer that replaces some MLP blocks with Mixture-of-Experts layers, enabling large-scale vision models that match dense models at lower inference cost and scale up to 15B parameters.
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. 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.
Motivation & Objective
- Investigate whether sparse Mixture-of-Experts can scale vision models effectively.
- Demonstrate that V-MoE matches or exceeds dense ViT performance with reduced inference cost.
- Develop routing and capacity strategies to stabilize training and improve transfer.
- Introduce Batch Prioritized Routing to adapt compute per image or per batch.
- Show up to 15B-parameter vision models achieving strong ImageNet performance.
Proposed method
- Replace selected ViT MLP blocks with sparse MoE layers where each token is routed to a small subset of experts.
- Use a routing function g(x) that applies TOP_k on softmax(Wx+ε) to assign tokens to k experts (k typically 1 or 2).
- Add noise ε and employ capacity-aware buffering B_e to balance expert load during training.
- Fix expert buffer capacity with capacity ratio C and employ auxiliary losses to encourage load balancing.
- Train on large noisy data (JFT-300M) and evaluate transfer via linear probing and full fine-tuning on ImageNet and VTAB.
- Introduce Batch Prioritized Routing to prioritize tokens across a batch and allow skipping low-utility tokens during inference.
Experimental results
Research questions
- RQ1Can sparse MoE layers in a Vision Transformer achieve competitive accuracy with reduced compute?
- RQ2How does routing, capacity control, and noise affect training stability and performance of V-MoE?
- RQ3What benefits do Batch Prioritized Routing and adjustable capacity provide for inference-time compute versus performance?
- RQ4How well do V-MoE models transfer to downstream tasks and few-shot/fine-tuning scenarios?
- RQ5What is the scaling potential of V-MoE in terms of parameter count and accuracy on ImageNet?
Key findings
- V-MoE variants match or surpass dense ViT performance while using roughly half the inference compute.
- A 15B-parameter V-MoE model (V-MoE-15B) attains 90.35% on ImageNet when fully fine-tuned.
- Batch Prioritized Routing reduces training FLOPs by about 20% and enables per-image compute trade-offs.
- Upstream pre-training on JFT-300M with MoE layers yields strong transfer performance in few-shot and full fine-tuning settings.
- V-MoE models demonstrate flexibility to adjust k and capacity C at inference, enabling substantial compute savings with minimal performance loss.
- The largest V-MoE model (15B) achieves competitive ImageNet-like benchmarks and demonstrates scalable vision model capacity.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.