From Sparse to Soft Mixtures of Experts

J. Puigcerver, C. Riquelme, Basil Mustafa, N. Houlsby
2/12/2026

No official code found. Best implementation: google-research/vmoe (725 stars, Apache-2.0, last commit 2025-12-06). 2 more below.

Abstract

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.

View on arXivView PDF

Code Implementations(3)

Apache-2.0
72556Shell, PythonOct 8, 202110 months agoApache-2.0
bwconrad/soft-moeCommunity70%
PyTorchApache-2.0

PyTorch implementation of "From Sparse to Soft Mixtures of Experts"

723PythonAug 16, 20233 years agoApache-2.0
computer-visionmachine-learningmixture-of-expertspytorchtransformer+1 more
PyTorchMIT

PyTorch implementation of Soft MoE by Google Brain in "From Sparse to Soft Mixtures of Experts" (https://arxiv.org/pdf/2308.00951.pdf)

839PythonAug 7, 20233 years agoMIT
deep-learningmixture-of-expertspytorchtransformervision-transformer

Similar Papers

Cite this paper

@article{puigcerver2026from,
  title  = {From Sparse to Soft Mixtures of Experts},
  author = {J. Puigcerver and C. Riquelme and Basil Mustafa and N. Houlsby},
  year   = {2026},
  eprint = {2308.00951},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2308.00951},
  journal = {ICLR 2023 2023}
}

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

Discussion