EXHIBIT 04 / SPARSE EXPERTS

How can a 671B-parameter model avoid using every parameter for each token?

In a sparse mixture-of-experts layer, a router scores experts for each token and selects a small subset. The unselected expert parameters still belong to the model; they simply do not participate in that token’s expert computation.

THE SHORT ANSWERScore. Select. Compute. Combine.

6–10 MIN · STEP-BY-STEP · NO ACCOUNT
ROOM 01

A token takes a route through the expert layer.

  1. 01 / ROUTERScore the experts

    A learned router produces a score for each routing expert for the current token.

  2. 02 / TOP-KSelect a few

    Only the highest-scored routing experts are chosen, alongside any experts defined as shared.

  3. 03 / EXPERTSRun the selected blocks

    Selected experts transform the token representation. Unselected routing experts do not run for that token.

  4. 04 / COMBINEMerge their outputs

    The selected outputs are weighted and combined before the model continues.

IMPORTANT BOUNDARY

The DeepSeek-V3 abstract reports 671B total parameters and 37B activated per token for the whole model. The control below models one equal-sized expert layer, so its numbers are not a reconstruction of that 671B/37B account.

ROOM 02

One token can choose a narrow path—and still create a crowd.

The expert identities and scores are a teaching trace. The load experiment below is a separate real program with fixed random seeds.

EDITORIAL TEACHING RECORDNOT A LIVE MODEL TRACE

TOKEN

A representation arrives

The router receives the current token representation at an expert layer.

RECORD

The route is chosen per token, not once per topic.

Step 1 / 4

Keyboard: focus this record and use ← or →. Nothing advances automatically.

ROOM 03

Change the route. Keep the two parameter accounts separate.

The browser uses the same exact-integer kernel as the Chinese exhibit. Every expert is assigned an illustrative 2B parameters; one shared expert is always selected.

LIVE BROWSER CALCULATIONNO MODEL OR EXTERNAL SERVICE
All expert parameters in this layer 514B parameters
Expert parameters selected per token 18B parameters
Selected share of this layer’s expert parameters
3.5%
Routing experts not selected this time
248
Illustrative size of each expert
2B parameters

Each token selects 8 routing experts plus 1 shared expert, or 3.5% of this illustrative layer’s expert parameters.

Both bars are parameter counts for one illustrative expert layer. They exclude attention and other non-expert layers, and they do not measure memory, operations, communication, or latency.

This control counts parameters only. Real memory, operations, communication, latency, model quality, and the right value of top-k depend on implementation and training; none is measured here.

ROOM 04

A real router simulation measures imbalance, not model quality.

NO INTERVENTION · BUSIEST257 selections

Average share was 62.5 across 256 experts in one fixed 2,000-token toy run.

NO INTERVENTION · TOP 25%49.3%

Share of 16,000 selections taken by the busiest 64 experts; uniform share would be 25.0%.

WITH MINIMAL BALANCING91 selections

Busiest expert in the fixed run; across eight seeds the range was 85–106.

EXECUTED

A deterministic toy router

The Python script routes 2,000 generated token vectors across 256 experts with top-k = 8, with and without a small balancing intervention.

MEASURED

Selection counts

It records busiest and least-used experts, top-quartile share, and ranges across eight fixed seeds.

NOT CLAIMED

Every MoE behaves this way

Eight toy seeds do not establish how all trained MoE models route, how experts specialise, or how fast a deployment will be.

RECORDED RUN / EXECUTED

Inspect the result behind the interpretation.

Without intervention, the busiest expert received 257 selections versus an average share of 62.5. With the script’s minimal balancing rule, the busiest expert received 91.

Tracked content revision: 2e1ffedbde69022b2152f5bae897d724099cdf82892d5c6af6d6b636c3184cf4

Show exact lines from the original stdout

The program’s original labels are in Simplified Chinese; the lines and numbers below are copied without translation.

  最忙的专家被选中   257 次      平均份额 62.5 次(4.1 倍)
  最忙的专家被选中   257 次      平均份额 62.5 次(4.1 倍)
  最忙的 64 个(25%)占了 49.3%    均匀分配时应为 25.0%
  最忙的专家被选中    91 次      平均份额 62.5 次(1.5 倍)
Download the exact Python script

PRIMARY & PRACTICE SOURCES

Inspect the museum’s source record.

DeepSeek-V3 Technical ReportarXiv · checked abstract on 2026-09-07