[Paper Review] From Sparse to Soft Mixtures of Experts
Soft MoE introduces a fully differentiable sparse Transformer that softly mixes inputs across all tokens to each expert, achieving scalable capacity with lower inference cost and stability, and outperforming ViTs and prior MoEs in vision tasks.
Sparse mixture of expert architectures (MoEs) scale model capacity without significant increases in training or inference costs. Despite their success, MoEs suffer from a number of issues: training instability, token dropping, inability to scale the number of experts, or ineffective finetuning. In this work, we propose Soft MoE, a fully-differentiable sparse Transformer that addresses these challenges, while maintaining the benefits of MoEs. Soft MoE performs an implicit soft assignment by passing different weighted combinations of all input tokens to each expert. As in other MoEs, experts in Soft MoE only process a subset of the (combined) tokens, enabling larger model capacity (and performance) at lower inference cost. In the context of visual recognition, Soft MoE greatly outperforms dense Transformers (ViTs) and popular MoEs (Tokens Choice and Experts Choice). Furthermore, Soft MoE scales well: Soft MoE Huge/14 with 128 experts in 16 MoE layers has over 40x more parameters than ViT Huge/14, with only 2% increased inference time, and substantially better quality.
Motivation & Objective
- Motivate scaling transformer models without prohibitive compute or memory costs.
- Resolve instability and token-dropping issues in traditional sparse MoEs while maintaining benefits of expert specialization.
- Propose a fully differentiable soft routing mechanism that enables thousands of experts.
- Demonstrate the approach on image classification and compare against ViTs and existing MoEs.
Proposed method
- Define Soft MoE as a fully differentiable layer where routing is achieved via soft assignments.
- Compute dispatch and combine weights using softmax over token-slot and slot-token axes (equations analogous to (1)–(3) in the paper).
- Process each input slot with its corresponding expert (typically an MLP).
- Normalize inputs and router parameters with a per-token and per-slot L2 normalization to stabilize training.
- Replace the dense MLP blocks in Transformers with Soft MoE blocks, controlling compute via the total number of slots.
- Provide a simple JAX implementation and reference full code at Google Research GitHub (vmoe).

Experimental results
Research questions
- RQ1Can Soft MoE achieve comparable or superior accuracy to dense ViTs and existing sparse MoEs across training and inference budgets?
- RQ2Does soft routing mitigate classic MoE issues like token dropping and expert unbalance at scale?
- RQ3How does Soft MoE scale with the number of experts and slots per expert, and what is the optimal configuration for vision tasks?
- RQ4Can Soft MoE extend benefits to downstream tasks such as image-text contrastive learning?
- RQ5What are the trade-offs in training time, FLOPs, and wall-clock time compared to dense and sparse baselines?
Key findings
- Soft MoE dominates both dense ViTs and popular sparse MoEs on training cost vs. performance Pareto fronts across multiple model sizes.
- Soft MoE Base/16 achieves 10.5x lower inference cost and 5.7x faster wall-clock time than ViT-Huge/14 while matching performance after similar training.
- Soft MoE with 128 experts and 16 layers can have >40x more parameters than ViT Huge/14 with only ~2% increase in inference cost, and substantially better performance.
- Long-scale experiments show Soft MoE models outperform Vision Transformers for comparable compute budgets, with notable gains at smaller backbones and competitive or superior results at larger scales.
- Soft MoE B/16 and L/16 variants achieve strong upstream and finetuning results, with large inference-time speedups vs. ViT baselines (e.g., Soft MoE L/16 outperforms dense H/14 while being faster).
- Soft MoE scales well with the number of experts, with one slot per expert and hundreds to thousands of experts improving performance without prohibitive cost, unlike some sparse MoE variants.

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.