Papers › From Sparse to Soft Mixtures of Experts

From Sparse to Soft Mixtures of Experts

2 Aug 2023arXiv:2308.00951archive 2025-07-28

Joan Puigcerver, Carlos Riquelme, Basil Mustafa, Neil Houlsby

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.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2308.00951")

Code

Syntology Ran 29 of 33 code samples harvested from 5 repositories linked to this paper; 4 have no recorded run. Of those that ran: 3 ran · honoured contract; 4 ran · violated contract; 9 ran · our draft was wrong; 2 ran · fixture could not drive it; 11 ran with no contract checked.

By repository: official repository: 3 samples from 1 repository, 3 ran; community (archive-listed): 27 samples from 4 repositories, 24 ran; 3 identical to code first harvested elsewhere. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

google-research/vmoe officialmentioned in paperjax report
bwconrad/soft-moe mentioned on GitHubpytorch report
fkodom/soft-mixture-of-experts mentioned on GitHubpytorch report
lucidrains/soft-moe-pytorch mentioned on GitHubpytorch report
umbertocappellazzo/petl_ast mentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

33 samples harvested; 29 ran; 3 honoured the contract we drafted; 4 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

3ran · honoured contract
4ran · violated contract
9ran · our draft was wrong
2ran · fixture could not drive it
11ran
4unverified

Licence: 8 of the 33 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 5 repositories linked to this paper, official or community; each sample names its own and says which. Some samples are identical code Syntology first harvested from another repository; for those, this paper's copy is not located and its licence is not recorded. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

compute_capacity google-research/vmoe/vmoe/moe.py official repository ran · honoured contract Apache-2.0 (permissive) · d9d07130e203c96f · report
get_default_moe_num_experts_and_last_n google-research/vmoe/vmoe/projects/soft_moe/configs/pretrain_jft4b.py official repository ran · honoured contract Apache-2.0 (permissive) · 3c1f6eb9bbce7fc8 · report
get_hyper google-research/vmoe/vmoe/projects/soft_moe/configs/pretrain_jft4b.py official repository ran · our draft was wrong Apache-2.0 (permissive) · 896382e782635552 · report
softmax bwconrad/soft-moe/soft_moe/soft_moe.py community (archive-listed) ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 348d3e3d68c0c2dc · report
AllGather lucidrains/soft-moe-pytorch/soft_moe_pytorch/soft_moe.py community (archive-listed) ran fingerprinted MIT (permissive) · f86d2cc1b619c3a7 · report
AllGatherFunction lucidrains/soft-moe-pytorch/soft_moe_pytorch/soft_moe.py community (archive-listed) ran MIT (permissive) · 737c5706bfd26931 · report
Bottleneck_adapter umbertocappellazzo/petl_ast/src/MoA.py community (archive-listed) ran · metamorphic tier: invariant no licence file found · pointer only · ebb62e0a151b812e · report
Convpass_adapter umbertocappellazzo/petl_ast/src/MoA.py community (archive-listed) ran · metamorphic tier: invariant no licence file found · pointer only · 9da4a23bc3ecddd2 · report
Experts lucidrains/soft-moe-pytorch/soft_moe_pytorch/soft_moe.py community (archive-listed) ran MIT (permissive) · b1dce0b4095f9c1c · report
FeedForward lucidrains/soft-moe-pytorch/soft_moe_pytorch/soft_moe.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 14ed968c0a8fcc78 · report
GLUFeedForward lucidrains/soft-moe-pytorch/soft_moe_pytorch/soft_moe.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 49960f76a7235e60 · report
LayerNorm lucidrains/soft-moe-pytorch/soft_moe_pytorch/soft_moe.py community (archive-listed) ran MIT (permissive) · 58f8445dde42979a · report
MultiExpertLayer fkodom/soft-mixture-of-experts/soft_mixture_of_experts/soft_moe.py community (archive-listed) ran MIT (permissive) · 4767b6942d7a9c14 · report
RMSNorm lucidrains/soft-moe-pytorch/soft_moe_pytorch/soft_moe.py community (archive-listed) ran MIT (permissive) · 024a5f1d96cb0afb · report
SoftMoE fkodom/soft-mixture-of-experts/soft_mixture_of_experts/soft_moe.py community (archive-listed) ran MIT (permissive) · b51fa28596d7a766 · report
SoftMoELayerWrapper bwconrad/soft-moe/soft_moe/soft_moe.py community (archive-listed) ran · metamorphic tier: invariant Apache-2.0 (permissive) · aaeb459d76d3691b · report
all_gather_same_dim lucidrains/soft-moe-pytorch/soft_moe_pytorch/soft_moe.py community (archive-listed) ran · fixture could not drive it MIT (permissive) · 07572c9d0ff527a5 · report
all_gather_variable_dim lucidrains/soft-moe-pytorch/soft_moe_pytorch/soft_moe.py community (archive-listed) ran MIT (permissive) · f42235237f40a9fd · report
chunk_num lucidrains/soft-moe-pytorch/soft_moe_pytorch/soft_moe.py community (archive-listed) ran · honoured contract fingerprinted MIT (permissive) · 279540af53f03369 · report
cumsum_exclusive lucidrains/soft-moe-pytorch/soft_moe_pytorch/soft_moe.py community (archive-listed) ran · fixture could not drive it fingerprinted MIT (permissive) · 4607f03213358cab · report
divisible_by lucidrains/soft-moe-pytorch/soft_moe_pytorch/soft_moe.py community (archive-listed) ran · violated contract fingerprinted MIT (permissive) · f912c209e9c899ca · report
gather_sizes lucidrains/soft-moe-pytorch/soft_moe_pytorch/soft_moe.py community (archive-listed) ran · our draft was wrong MIT (permissive) · d3b9292d51192dc2 · report
has_only_one_value lucidrains/soft-moe-pytorch/soft_moe_pytorch/soft_moe.py community (archive-listed) ran · violated contract fingerprinted MIT (permissive) · 2924465c3aecc7f6 · report
l2_normalize umbertocappellazzo/petl_ast/src/MoA.py community (archive-listed) ran · our draft was wrong fingerprinted no licence file found · pointer only · 4760e36330feac9d · report
make_adapter umbertocappellazzo/petl_ast/src/MoA.py community (archive-listed) ran · our draft was wrong no licence file found · pointer only · d1be2ead9db77c59 · report
softmax bwconrad/soft-moe/soft_moe/soft_moe.py community (archive-listed) ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 84195cc106a2908b · report
unpack_one lucidrains/soft-moe-pytorch/soft_moe_pytorch/soft_moe.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 57fd83aecedfe674 · report
SoftMoA umbertocappellazzo/petl_ast/src/MoA.py community (archive-listed) unverified no licence file found · pointer only · 11e34ef59abccf2b · report
SoftMoE lucidrains/soft-moe-pytorch/soft_moe_pytorch/soft_moe.py community (archive-listed) unverified MIT (permissive) · 0193b08b6700ed29 · report
split_by_rank lucidrains/soft-moe-pytorch/soft_moe_pytorch/soft_moe.py community (archive-listed) unverified MIT (permissive) · 7079481b9b2287ec · report
default identical code first harvested elsewhere ran · violated contract fingerprinted licence of this copy not recorded · 60fff7c3c400d7ff · report
exists identical code first harvested elsewhere ran · violated contract licence of this copy not recorded · aa5486a3650902d8 · report
pack_one identical code first harvested elsewhere unverified licence of this copy not recorded · ab03f61657f300bc · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Absolute Position EncodingsAdamAttentionAttention DropoutBPECosine AnnealingDense ConnectionsDropoutLabel SmoothingLayer NormalizationLinear LayerLinear Warmup With Cosine AnnealingMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSoftmaxSparse TransformerTransformerWeight Decay

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections