Papers › Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layer

Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layer

23 Jan 2017arXiv:1701.06538archive 2025-07-28

Noam Shazeer, Azalia Mirhoseini, Krzysztof Maziarz, Andy Davis, Quoc Le, Geoffrey Hinton, Jeff Dean

The capacity of a neural network to absorb information is limited by its number of parameters. Conditional computation, where parts of the network are active on a per-example basis, has been proposed in theory as a way of dramatically increasing model capacity without a proportional increase in computation. In practice, however, there are significant algorithmic and performance challenges. In this work, we address these challenges and finally realize the promise of conditional computation, achieving greater than 1000x improvements in model capacity with only minor losses in computational efficiency on modern GPU clusters. We introduce a Sparsely-Gated Mixture-of-Experts layer (MoE), consisting of up to thousands of feed-forward sub-networks. A trainable gating network determines a sparse combination of these experts to use for each example. We apply the MoE to the tasks of language modeling and machine translation, where model capacity is critical for absorbing the vast quantities of knowledge available in the training corpora. We present model architectures in which a MoE with up to 137 billion parameters is applied convolutionally between stacked LSTM layers. On large language modeling and machine translation benchmarks, these models achieve significantly better results than state-of-the-art at lower computational cost.

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="1701.06538")

Code

Syntology Ran 4 of 6 code samples harvested from 2 repositories linked to this paper; 2 have no recorded run. Of those that ran: 4 ran with no contract checked.

By repository: community (archive-listed): 6 samples from 2 repositories, 4 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

davidmrau/mixture-of-experts mentioned on GitHubpytorch report
jsuarez5341/Efficient-Dynamic-Batching mentioned on GitHubpytorch report
ma921/XRDidentifier mentioned on GitHubpytorch report
unconst/MACH mentioned on GitHubtf 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

6 samples harvested; 4 ran; 0 honoured the contract we drafted; 2 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.

4ran
2unverified

Licence: 6 of the 6 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 2 repositories linked to this paper, official or community; each sample names its own and says which. “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.

MLP davidmrau/mixture-of-experts/moe.py community (archive-listed) ran · metamorphic tier: deterministic fingerprinted GPL-3.0 (copyleft) · pointer only · 798b423437ee44c0 · report
MOE jsuarez5341/Efficient-Dynamic-Batching/MOE.py community (archive-listed) ran no licence file found · pointer only · dad41f3c016e1b4a · report
SparseDispatcher davidmrau/mixture-of-experts/moe.py community (archive-listed) ran GPL-3.0 (copyleft) · pointer only · bd4f0758341bbaf5 · report
TwoLayerNet jsuarez5341/Efficient-Dynamic-Batching/MOE.py community (archive-listed) ran fingerprinted no licence file found · pointer only · 2284f451aa61fc6b · report
MoE davidmrau/mixture-of-experts/moe.py community (archive-listed) unverified GPL-3.0 (copyleft) · pointer only · c31aa0d1c4d7c7dc · report
list jsuarez5341/Efficient-Dynamic-Batching/MOE.py community (archive-listed) unverified no licence file found · pointer only · f9ed34e946f92347 · report

Tasks

Computational EfficiencyLanguage ModelingLanguage ModellingMachine TranslationMixture-of-ExpertsTranslation

1 archive task tag without a task page not shown.

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Language Modelling One Billion Word High-Budget MoE Number of params 5B #16 of 27 Archive leaderboard report
Language Modelling One Billion Word High-Budget MoE PPL 28.0 #16 of 27 Archive leaderboard report
Language Modelling One Billion Word Low-Budget MoE Number of params 5B #21 of 27 Archive leaderboard report
Language Modelling One Billion Word Low-Budget MoE PPL 34.1 #21 of 27 Archive leaderboard report
Machine Translation WMT2014 English-French MoE BLEU score 40.56 #31 of 57 Archive leaderboard report
Machine Translation WMT2014 English-French MoE Hardware Burden 142G #31 of 57 Archive leaderboard report
Machine Translation WMT2014 English-German MoE BLEU score 26.03 #64 of 91 Archive leaderboard report
Machine Translation WMT2014 English-German MoE Hardware Burden 24G #64 of 91 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

LSTMSigmoid ActivationTanh Activation

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