Log inStart free
LESSON 10.13 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW

Load balancing and auxiliary losses

Watch a router overload one expert, then learn to spread the copies.


Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 3 controls and 3 checks, in this lesson and every other.

Go Pro · $8.25/mo
EXPLAINER · 10.13 · MOE BALANCELOAD 7 3 4 2 · 3 DROPPED
01
Stage 1 of 6 · Uneven load
Each token sends 2 copies, 16 in all. Expert 1 gets 7; with room for 4, it drops 3.
Explain it simply

Each row is one token, and each dot is one copy it sends to an expert. Expert 1 gets 7 copies, but it has room for only 4. So 3 copies are dropped and add nothing. At the same time, experts 2 and 4 have empty room.

A grid of 8 tokens by 4 experts with 2 dots per token. Bars show 7, 3, 4 and 2 copies against room for 4. 3 dropped.

token copies, copy share fexpert biases brouter shares, mean share Pdropped copies, aux loss, push
copies per expertexpert1234thecatsatonmatranrugdogcopies7342room 47expert 13expert 24expert 32expert 4f₁ = 7/16 = 0.4375copies per expertexpert1234thecatsatonmatranrugdogcopies7342room 47expert 13expert 24expert 32expert 4f₁ = 7/16 = 0.4375
Toy: 10.C2's 8 tokens, 4 experts, top 2; the lean is an extra score on expert 1; not trained on a task
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
fe=ceN k\sy{f}{data}{f_e} = \dfrac{\sy{c}{data}{c_e}}{N\,k}
f1=78⋅2=0.4375f_1 = \dfrac{7}{8 \cdot 2} = 0.4375

The copy share is copies over all 16 copies.

Common mix-ups

MYTHThe aux loss moves token copies directly.

The fix, and 1 more mix-up with the diagram to show them, come with Pro.

Predict, then reveal
3 CHECKS · PRO
Q01With a lean of 4, does expert 1 drop more than 3 copies?

Make your guess, then test it in the diagram. All 3 checks come with Pro.

PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
  • 5 more stages and 3 live controls
  • 2 mix-up cards and 3 predict-then-reveal checks
  • Watch it as a narrated video, in three voices
  • Every Pro lesson and capstone · 656 in total

$99 a year, or $15 a month. Cancel any time.