{
  "schema": "auturnal.deep-research-review.v2",
  "slug": "sparse-expert-routing",
  "title": "Sparse Experts Under Capacity and Routing Constraints",
  "category": "Generation & Adaptation",
  "dek": "Conditional computation separates stored capacity from active work, but routing correlations decide whether the promised capacity is actually available.",
  "abstract": "Sparse mixture-of-experts models activate only a subset of their stored parameters for each token. Their practical behavior depends on routing, finite expert capacity, communication, and the composition of each dispatch group. This review distinguishes those constraints using three primary sources and independently constructed finite routing models. Exact enumeration of eight-token assignments demonstrates that uniform routing probabilities still produce overflow at finite capacity. A second construction shows that globally balanced expert use can coexist with severely imbalanced batches. Two reproducible figures and explicit assertions support the examples, while a proposed evaluation protocol separates routing quality, task quality, and systems cost without claiming a new large-model benchmark.",
  "english": "Sparse mixture-of-experts models activate only a subset of their stored parameters for each token. Their practical behavior depends on routing, finite expert capacity, communication, and the composition of each dispatch group. This review distinguishes those constraints using three primary sources and independently constructed finite routing models. Exact enumeration of eight-token assignments demonstrates that uniform routing probabilities still produce overflow at finite capacity. A second construction shows that globally balanced expert use can coexist with severely imbalanced batches. Two reproducible figures and explicit assertions support the examples, while a proposed evaluation protocol separates routing quality, task quality, and systems cost without claiming a new large-model benchmark.",
  "refs": [
    "dl-15-1",
    "dl-15-2",
    "dl-15-3"
  ],
  "sections": [
    [
      "1. Stored parameters are not a throughput guarantee",
      "A sparse expert layer can contain many parameters while evaluating only a few experts for each token. That architectural fact does not determine throughput, memory use, or quality. Those outcomes also depend on which tokens are assigned together, how much work each expert can accept, and how data move between devices. The useful unit of analysis is therefore the dispatch group as well as the individual token.\n\nThis article studies top-one routing in a deliberately tiny setting with eight tokens and two experts. It is small enough to enumerate every independent uniform routing assignment exactly. The examples expose logical gaps in common summaries such as balanced average routing or low active parameter count. They do not simulate a production expert layer or estimate accelerator performance. Their role is to specify what a larger experiment must measure before a conditional-computation design can be called efficient or reliably provisioned.",
      []
    ],
    [
      "2. Three foundational contributions set the context",
      "Shazeer and colleagues develop a sparsely gated mixture-of-experts layer with conditional expert activation and address routing and load-balancing challenges. Fedus, Zoph, and Shazeer study the Switch Transformer's simplified routing and training design. Lepikhin and colleagues combine conditional computation with automatic sharding in GShard. These works make clear that expert modeling and distributed execution must be considered together.\n\nTheir reported scaling and quality results belong to particular architectures, workloads, and hardware configurations. They are not predictions for every later expert model. The finite constructions below borrow no performance measurements from those experiments. Instead, they isolate capacity overflow and batch correlation using exact probability calculations. This separation is intentional: a routing counterexample can falsify an overbroad guarantee without implying that the cited systems fail under their own tested conditions. Each system's actual overflow policy and dispatch grouping must be checked before applying the example operationally.",
      [
        "dl-15-1",
        "dl-15-2",
        "dl-15-3"
      ]
    ],
    [
      "3. Capacity is a policy on a dispatch group",
      "Let T tokens each select one of E experts, and let expert e receive n_e tokens. A uniform per-expert capacity C allows at most C assignments to be processed by that expert within the group. If overflow is dropped, the number of rejected assignments is the sum of the positive parts of n_e minus C. Other policies may reroute or defer work, changing both quality and cost.\n\nA capacity factor is often expressed relative to the average load T divided by E, with integer rounding. The average alone cannot determine the maximum load. Even when C equals that average, random fluctuations create overflow. The details of grouping also matter: capacity may apply per local shard, routing group, microbatch, or another implementation-defined unit. The manuscript uses one explicit eight-token group throughout. This prevents a global batch size from silently replacing the smaller unit at which a real capacity decision might actually be made.",
      []
    ],
    [
      "4. Uniform probabilities do not imply balanced realized loads",
      "With two equally likely experts and eight independently routed tokens, the first expert's load is binomial. The second receives the remaining tokens. There are 256 equiprobable assignments, so every expected overflow statistic can be obtained by finite enumeration without sampling uncertainty.\n\nAt capacity four, a perfectly balanced four-versus-four assignment has no dropped tokens. Yet the independent uniform router drops an expected fraction of 35 divided by 256, about 13.67 percent, under the stated drop policy. The event that all tokens choose one expert is rare, but many less extreme imbalances also contribute. Figure 1 compares this exact expectation with perfectly balanced and fully concentrated assignments over capacities one through eight. The figure does not say that a trained router is independent or uniform. It shows that uniform marginal probabilities alone are insufficient evidence for negligible finite-group overflow.",
      []
    ],
    [
      "5. Global balance can conceal correlated batches",
      "Consider a second router that sends every token in a group to one expert, choosing the expert fairly for each group. Across many groups, each expert receives half the tokens on average. Within any group, however, the load is eight versus zero. At capacity four, half the assignments overflow under the same drop policy. A global utilization summary can look perfectly balanced while the local capacity behavior is poor.\n\nTo interpolate between the two cases, mix independent uniform routing with this correlated whole-group routing. Let rho be the probability of using the correlated mechanism for a group. Every value of rho preserves uniform per-token expert marginals. Expected overflow is a linear mixture of the two exact expectations, shown in Figure 2. Rho is a mixing parameter, not a fitted statistic from a real model. Its purpose is to isolate how dependence between token assignments changes capacity requirements without changing average expert shares.",
      []
    ],
    [
      "6. A balancing objective needs a matching diagnostic",
      "A balancing loss is an optimization instrument, not a direct certificate that every dispatch group satisfies capacity. Depending on its definition, it may encourage probability mass, observed assignments, or both to spread over experts. Its measurement granularity and averaging window determine which forms of imbalance remain visible. A statistic computed over many groups can hide the correlated construction above.\n\nAn evaluation should therefore include both marginal shares and the distribution of per-group maximum loads, overflow counts, and empty experts. If routing is top-two or more general, count expert assignments rather than only tokens, and describe how weights and overflow interact. Token dropping, residual bypass, rerouting, and delayed execution are different behaviors. The finite code assumes top-one assignment and dropping solely to keep the reference exact. Applying its numerical percentages to another policy would be incorrect; applying its demand for explicit policy and grouping remains useful.",
      []
    ],
    [
      "7. Routing quality is not equivalent to task quality",
      "Perfectly balanced routing can be achieved by assigning tokens cyclically without looking at their content. That strategy controls load but provides no guarantee that each token reaches an appropriate expert. Conversely, a router might prefer one expert because the current input distribution genuinely concentrates on the expertise represented there. Forcing balance can then alter the modeling objective.\n\nThe appropriate question is not whether balance is universally desirable, but how the model trades specialization against resource constraints. A proposed study should relate routing decisions to held-out task outcomes and inspect whether overflow disproportionately affects particular sequence types, languages, or data domains. Those analyses require actual model outputs and dataset definitions; they cannot be inferred from a load histogram. The exact examples here deliberately omit semantics. Their limitation is also their value: they prevent a systems statistic from being mistaken for evidence that the learned expert decomposition serves the intended task.",
      []
    ],
    [
      "8. Communication and synchronization belong in the cost model",
      "Activating a small number of experts reduces some arithmetic relative to evaluating every expert, but token dispatch and collection can introduce communication and synchronization. Total expert storage may also require distribution across devices even when active computation per token is small. A performance claim must include these costs, along with padding, unused capacity, and any overlap between communication and computation.\n\nA simple bound based on the busiest expert can reveal a load bottleneck only under an explicit scheduling model. It is not a measured latency prediction. Real kernels may have batch-size thresholds, differing device speeds, and contention from other work. A benchmark should therefore report per-stage time and the distribution of end-to-end latency, not only theoretical multiply counts. The local artifact provides routing counts and expectations; it does not measure all-to-all communication or infer hardware speedups from those counts.",
      []
    ],
    [
      "9. Reproducibility requires recording routing decisions",
      "A sparse layer's behavior can change when batch composition changes even if the underlying token representations and model weights are fixed. Capacity arbitration, tie-breaking, routing noise, and ordering can affect which assignments are accepted. If such choices influence outputs, reproducing a run requires more than the random seed used for model initialization.\n\nFor a controlled experiment, record the router configuration, capacity factor and rounding, grouping rule, expert placement, overflow policy, and deterministic tie-breaking behavior. Archive aggregate diagnostics and representative per-group traces that do not expose private input data. Compare fixed token sets under several permissible groupings to reveal sensitivity to neighboring examples. The proposed test does not assume that every expert model is nondeterministic; it asks whether the implementation's documented semantics are preserved under its intended batching regime. The finite enumeration supplies one reproducible baseline with no hidden routing randomness or sampling error.",
      []
    ],
    [
      "10. A stronger claim about sparse capacity",
      "A defensible sparse-capacity claim states how many parameters are stored, how many expert assignments are attempted, how many are actually processed, and what happens to the remainder. It then reports task outcomes and measured resource use under a declared workload. These quantities make it possible to distinguish a modeling gain from a routing-policy change or a hardware utilization change.\n\nThe two exact constructions establish a narrow but important boundary. Uniform routing probabilities do not eliminate finite-group overflow, and uniform global expert shares do not reveal within-group correlation. Neither result argues against mixture-of-experts architectures. Both argue for evaluating the conditions under which conditional capacity is accessible. The companion code enumerates the small case and publishes the assumptions that generate each curve. A large-model evaluation should preserve that same clarity while adding the complexities intentionally excluded here: learned routing, heterogeneous tokens, communication, optimization, and task-specific quality.",
      []
    ]
  ],
  "section_kinds": [
    "author_analysis_or_verification_proposal",
    "source_based_review",
    "author_analysis_or_verification_proposal",
    "author_analysis_or_verification_proposal",
    "author_analysis_or_verification_proposal",
    "author_analysis_or_verification_proposal",
    "author_analysis_or_verification_proposal",
    "author_analysis_or_verification_proposal",
    "author_analysis_or_verification_proposal",
    "author_analysis_or_verification_proposal"
  ],
  "equations": [
    {
      "tex": "y(x)=\\sum_{e\\in S(x)}g_e(x)f_e(x),\\qquad |S(x)|=k",
      "explanation": "Sparse expert combination with explicitly defined gating weights. The finite examples specialize to top-one assignment and analyze loads rather than output values."
    },
    {
      "tex": "C=\\left\\lceil c\\,\\frac{T}{E}\\right\\rceil,\\qquad D=\\frac1T\\sum_{e=1}^{E}\\max(n_e-C,0)",
      "explanation": "Uniform per-expert capacity with factor c and a drop-overflow policy. The plots use T=8, E=2, and integer C directly."
    },
    {
      "tex": "\\mathbb E D=\\frac1{8\\cdot2^8}\\sum_{j=0}^{8}\\binom8j\\left[(j-C)_++(8-j-C)_+\\right]",
      "explanation": "Exact top-one, independent uniform routing expectation for eight tokens and two experts. At C=4, the expected dropped fraction is 35/256."
    },
    {
      "tex": "d_C(\\rho)=(1-\\rho)d_C(0)+\\rho\\,\\frac{\\max(8-C,0)}8",
      "explanation": "A group-level mixture of independent uniform routing and fully correlated routing. Every mixture preserves uniform expert marginals; rho is a declared mixture probability."
    }
  ],
  "table": {
    "headers": [
      "Router construction",
      "Average expert share",
      "Overflow at capacity four"
    ],
    "rows": [
      [
        "Perfect balance in every group",
        "One half each",
        "Zero"
      ],
      [
        "Independent fair assignments",
        "One half each in expectation",
        "35/256 expected dropped fraction"
      ],
      [
        "One fair expert chosen for whole group",
        "One half each in expectation",
        "One half in every group"
      ]
    ]
  },
  "protocol": [
    "Enumerate all 256 top-one assignments for eight tokens and two experts and verify conservation of assignments.",
    "Calculate overflow under each integer capacity and compare enumeration with the binomial expression.",
    "Construct group-correlated routing with identical expert marginals and verify its distinct overflow behavior.",
    "For learned models, record grouping, tie-breaking, routing noise, expert placement, and the precise overflow response.",
    "Measure task quality by relevant data slices alongside per-group load, accepted assignments, communication time, and latency distributions.",
    "Archive model revisions, capacity rounding, execution traces, seeds, and the distinction between finite counting checks and actual distributed-system benchmarks."
  ],
  "limitations": [
    "The finite examples assume top-one routing, eight tokens, two equal-capacity experts, and dropping of overflow.",
    "The correlation-mixture parameter is constructed and is not an estimate of routing dependence in a trained model.",
    "No neural expert quality, optimization dynamics, accelerator throughput, or network communication is measured.",
    "Different routing policies, assignment granularities, or overflow semantics require a different quantitative model."
  ],
  "evidence": [
    {
      "source": "dl-15-1",
      "result": "A sparsely gated expert layer makes conditional parameter activation practical while addressing load-related challenges.",
      "boundary": "Its empirical gains are specific to the evaluated models and systems.",
      "locator": "Sparsely gated layer formulation and load-balancing discussion."
    },
    {
      "source": "dl-15-2",
      "result": "Switch Transformers study simplified sparse routing and associated training and capacity choices.",
      "boundary": "A balancing mechanism is not a blanket guarantee of zero overflow in every dispatch group.",
      "locator": "Routing and capacity discussion, JMLR 23(120), 2022."
    },
    {
      "source": "dl-15-3",
      "result": "GShard combines conditional expert computation with automatic sharding for large distributed models.",
      "boundary": "Hardware and translation results cannot be inferred from expert counts alone.",
      "locator": "Conditional computation and automatic-sharding formulation; original preprint record."
    }
  ],
  "research_questions": [
    "Which routing dependence statistics best predict overflow under changing batch composition?",
    "How should capacity policies balance specialization, latency, and task-specific harm from dropped assignments?",
    "Can deployment diagnostics attribute regressions to model routing versus communication and scheduling?"
  ],
  "kind": "ai_assisted_research_guide",
  "author": "Codex (AI)",
  "original_language": "en",
  "created_date": "2026-10-22",
  "published_date": "2026-10-22T13:02:56+00:00",
  "publication_status": "published_commissioned_review",
  "version": 5,
  "previous_version": "/guides/sparse-expert-routing/v4/",
  "analytic": "sparse-expert-routing",
  "peer_reviewed": false,
  "journal_publication": false,
  "disclosure": {
    "authorship": "Written and technically self-reviewed by Codex (AI). References identify the original researchers; the analytical constructions and proposed evaluation designs are attributed to this article.",
    "figures": "Covers are conceptual ImageGen illustrations. Technical figures are computed from declared models or finite examples, with Python and CSV supplied. They are not measurements of deployed products or reproduced performance benchmarks.",
    "review": "This local draft has no independent peer-review or journal-acceptance record. Bounded executable examples check the stated small models; they are not formal verification of the cited systems."
  },
  "review_scope": "A focused analytical review of three selected foundational primary sources, with original worked examples. This is not an exhaustive or systematic survey of the literature through 2026. Source access and version notes are recorded with the bibliography.",
  "revision_note": "Initial local English manuscript; no server upload or publication action.",
  "source_slug": "sparse-expert-routing",
  "source_revision": "41dc5ea7bf1db9868e2ee5b121f7021c823cc018",
  "source_article_sha256": "04c30d0d650156fa54da27300ebc81eb330f107f15244f8c6440195a51470ca3",
  "sources": [
    {
      "id": "dl-15-1",
      "key": "SparseMoE",
      "title": "Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layer",
      "authors": [
        {
          "given": "Noam",
          "family": "Shazeer"
        },
        {
          "given": "Azalia",
          "family": "Mirhoseini"
        },
        {
          "given": "Krzysztof",
          "family": "Maziarz"
        },
        {
          "given": "Andy",
          "family": "Davis"
        },
        {
          "given": "Quoc",
          "family": "Le"
        },
        {
          "given": "Geoffrey",
          "family": "Hinton"
        },
        {
          "given": "Jeff",
          "family": "Dean"
        }
      ],
      "journal": "arXiv preprint",
      "year": 2017,
      "doi": "10.48550/arXiv.1701.06538",
      "url": "https://arxiv.org/abs/1701.06538",
      "verified_date": "2026-10-22",
      "metadata_source": "Primary arXiv author record and accessible paper HTML",
      "author_list_complete": true,
      "csl_type": "article",
      "access_scope": "Primary metadata, abstract, and selected accessible method text; no exhaustive supplementary-material audit.",
      "version_note": "v1, submitted 23 January 2017.",
      "article_slug": "sparse-expert-routing",
      "source_article_slug": "sparse-expert-routing"
    },
    {
      "id": "dl-15-2",
      "key": "Switch",
      "title": "Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsity",
      "authors": [
        {
          "given": "William",
          "family": "Fedus"
        },
        {
          "given": "Barret",
          "family": "Zoph"
        },
        {
          "given": "Noam",
          "family": "Shazeer"
        }
      ],
      "journal": "Journal of Machine Learning Research, 23(120):1-39",
      "year": 2022,
      "doi": "",
      "url": "https://jmlr.org/papers/v23/21-0998.html",
      "verified_date": "2026-10-22",
      "metadata_source": "Primary publisher record and PDF",
      "author_list_complete": true,
      "csl_type": "article-journal",
      "access_scope": "Primary metadata, abstract, and selected accessible method text; no exhaustive supplementary-material audit.",
      "version_note": "Publisher record and PDF checked; no DOI is supplied by that record.",
      "article_slug": "sparse-expert-routing",
      "source_article_slug": "sparse-expert-routing"
    },
    {
      "id": "dl-15-3",
      "key": "GShard",
      "title": "GShard: Scaling Giant Models with Conditional Computation and Automatic Sharding",
      "authors": [
        {
          "given": "Dmitry",
          "family": "Lepikhin"
        },
        {
          "given": "HyoukJoong",
          "family": "Lee"
        },
        {
          "given": "Yuanzhong",
          "family": "Xu"
        },
        {
          "given": "Dehao",
          "family": "Chen"
        },
        {
          "given": "Orhan",
          "family": "Firat"
        },
        {
          "given": "Yanping",
          "family": "Huang"
        },
        {
          "given": "Maxim",
          "family": "Krikun"
        },
        {
          "given": "Noam",
          "family": "Shazeer"
        },
        {
          "given": "Zhifeng",
          "family": "Chen"
        }
      ],
      "journal": "arXiv preprint",
      "year": 2020,
      "doi": "10.48550/arXiv.2006.16668",
      "url": "https://arxiv.org/abs/2006.16668",
      "verified_date": "2026-10-22",
      "metadata_source": "Primary arXiv author record and accessible paper HTML",
      "author_list_complete": true,
      "csl_type": "article",
      "access_scope": "Primary metadata, abstract, and selected accessible method text; no exhaustive supplementary-material audit.",
      "version_note": "v1, submitted 30 June 2020; cited bibliographic object is the preprint.",
      "article_slug": "sparse-expert-routing",
      "source_article_slug": "sparse-expert-routing"
    }
  ],
  "original_source_url": "/guides/assets/v9-deep-learning-articles-sparse-expert-routing-json-04c30d0d650156fa.json",
  "pdf": {
    "document_id": "5e7f23e7-c94b-554a-9479-9db1e3df8bfe",
    "version_id": "fc78d585-32df-5587-a6f1-17af9ea2003a",
    "media_type": "application/pdf",
    "authentication_required": true,
    "download_audited": true
  },
  "presentation_change": "Complete version-bound translated reading views and selectable authenticated original/translated PDFs; original scientific text and evidence retained.",
  "source_locale": "en",
  "source_version_id": "a89a6499-4b43-5a40-b85a-38f713483d0f",
  "translations": [
    {
      "locale": "zh",
      "translation_id": "c763c5b5-c456-5f01-9a39-e396e7274683",
      "translated_content_sha256": "5e47b86d9bc467df2a196a520a8abbcc1ff8bb603b7b9d4400808a5fb41551a7",
      "sha256": "068026e533afadfb16813ad2e3905ce283a83780a6b08b2a312880483237d9a1",
      "byte_length": 884244
    },
    {
      "locale": "es",
      "translation_id": "6ba91bbe-79b9-567a-a791-059de0e88937",
      "translated_content_sha256": "7b54f681985d930a09f63eff42bcbd3efe62e5cc4d9e24bae235359dcc402426",
      "sha256": "fa5d9655a851600cf16fd9ce091df795407de82124959744275b09dad74fb883",
      "byte_length": 639913
    },
    {
      "locale": "ja",
      "translation_id": "143feffd-bebe-5022-913e-7ac0f15b5186",
      "translated_content_sha256": "d6ab11db425563ce81439eb3b72bfad7109e64d68809912259170eec25a61ec7",
      "sha256": "ee29627da21b41e99ba466b8f21a57153bb71e322ef39466fd2c3dafe0c6c669",
      "byte_length": 844380
    },
    {
      "locale": "ar",
      "translation_id": "f0d0c6a1-4bf0-586f-8990-a16240ec6367",
      "translated_content_sha256": "d8e9a64d00651c060619b7d42293d18503f94f1b3c0baa8b9003c44572cbfc42",
      "sha256": "9015ed4c10e007aa7db50452aa1f9b7638e088d421d7e8547d666b5c52675b76",
      "byte_length": 634550
    }
  ]
}
