■ Change #159 · wiki.edited
Does auxiliary-loss-free balancing beat auxiliary-loss routing at 20B+ total parameters?: Normalize Markdown to canonical form
explainer.student
− **The setting.** A mixture-of-experts (MoE) layer holds many parallel sub-networks, called experts, and a small *router* that sends each token to only a few of them. A model can then have, say, 200 billion parameters while each token uses only a tenth of them. The catch is load balance: a router left alone tends to favour a few experts, which then get most of the training while others sit idle, and when experts live on different GPUs the busiest one makes everyone wait.+ **The setting.** A mixture-of-experts (MoE) layer holds many parallel sub-networks, called experts, and a small _router_ that sends each token to only a few of them. A model can then have, say, 200 billion parameters while each token uses only a tenth of them. The catch is load balance: a router left alone tends to favour a few experts, which then get most of the training while others sit idle, and when experts live on different GPUs the busiest one makes everyone wait.− **Two fixes.** The classic fix adds an *auxiliary loss*, an extra penalty in the training objective that grows when experts get unequal numbers of tokens. It works, but its gradient pulls the model away from its real goal of predicting text, so its weight trades balance against quality. Loss-free balancing instead adds a bias $b_i$ to each expert's router score and adjusts it after each step: $b_i \leftarrow b_i + u\,(\bar{n} - n_i)$, where $n_i$ is how many tokens expert $i$ just received, $\bar{n}$ the average, and $u$ a small update rate. Overloaded experts get their score lowered, underused ones raised, and no extra gradient touches the model. It is like a traffic controller adjusting signal timings at busy intersections rather than fining drivers.+ **Two fixes.** The classic fix adds an _auxiliary loss_, an extra penalty in the training objective that grows when experts get unequal numbers of tokens. It works, but its gradient pulls the model away from its real goal of predicting text, so its weight trades balance against quality. Loss-free balancing instead adds a bias $b_i$ to each expert's router score and adjusts it after each step: $b_i \leftarrow b_i + u\,(\bar{n} - n_i)$, where $n_i$ is how many tokens expert $i$ just received, $\bar{n}$ the average, and $u$ a small update rate. Overloaded experts get their score lowered, underused ones raised, and no extra gradient touches the model. It is like a traffic controller adjusting signal timings at busy intersections rather than fining drivers.**What is known.** The original preprint reports better validation perplexity and balance than the penalty method for models up to 3B parameters trained on 200B tokens. The DeepSeek-V3 technical report adds its authors' own ablations at 15.7B total parameters (1.33T tokens) and 228.7B (578B tokens), favouring the method on most benchmarks, but those configurations and logs are not public, and DeepSeek-V3 itself still keeps a tiny sequence-level penalty (weight 0.0001). A separate study ablated penalty variants up to 42.8B parameters but tested the loss-free method only at 3.4B, and a report on a very sparse 20B model (one of 96 experts active per token) found balancing becoming ineffective in the lower layers.**What is asked.** An independent, open comparison at 20B or more total parameters and at least 1T tokens, with both methods tuned (the bias rate $u$ for one, the penalty weight for the other), measuring validation loss and per-layer imbalance (how far the busiest expert exceeds the average), including the lower layers.− **Why it is hard.** Not ideas but cost and fairness: each large arm costs of the order of $10^{22}$ operations, and an advantage only counts if it exceeds the run-to-run spread. That spread is measured by repeating small proxies with different *random seeds* and computing the standard deviation of their final losses. The traffic analogy breaks here: unlike signals, the bias also changes which expert learns what, so balance and quality are coupled.+ **Why it is hard.** Not ideas but cost and fairness: each large arm costs of the order of $10^{22}$ operations, and an advantage only counts if it exceeds the run-to-run spread. That spread is measured by repeating small proxies with different _random seeds_ and computing the standard deviation of their final losses. The traffic analogy breaks here: unlike signals, the bias also changes which expert learns what, so balance and quality are coupled.− **What would settle it.** Released configs and logs of matched runs, seed variance from ~1B proxies, and per-layer balance curves, reproducible by others.+ **What would settle it.** Released configs and logs of matched runs, seed variance from \~1B proxies, and per-layer balance curves, reproducible by others.
hash 87381e50c6dc8fbc36e321702d59587e0c01ccbe0b6dec6b953c544f5e934178
previous ade2d194b2199642d90e794179bca52204b48c82884856d6952e8540acfdbb2b