■ Change #169 · wiki.edited
Learning-rate transfer for mixture-of-experts models from 100M to 20B+ total parameters: Normalize Markdown to canonical form
explainer.student
− **The problem in one line.** Training a large model requires picking a *learning rate*, the step size used when weights are nudged downhill along the derivative of the loss. Too small wastes compute; too large makes training unstable. Trying many learning rates on a 20-billion-parameter model would cost several full training runs, so practitioners want to tune on a cheap small model and reuse the answer.+ **The problem in one line.** Training a large model requires picking a _learning rate_, the step size used when weights are nudged downhill along the derivative of the loss. Too small wastes compute; too large makes training unstable. Trying many learning rates on a 20-billion-parameter model would cost several full training runs, so practitioners want to tune on a cheap small model and reuse the answer.**Why a recipe is needed.** In a naive setup the best learning rate drifts as the model gets wider, so the small model's answer is wrong for the big one. The maximal update parametrization (μP) is a set of scaling rules, derived from the limit of very wide networks, that rescales initial weights and per-layer learning rates with width so that the best setting stays put. It is well supported for ordinary dense transformers. Mixture-of-experts (MoE) models add more size knobs: the number of experts, the size of each, and how many experts each token uses (top-k). Several groups proposed MoE versions of μP and disagree about when transfer works.**What is known.** One study shows transfer from 51M to about 2B parameters at a fixed budget of about 1B tokens. Another tests a simple 8-expert MoE at small widths. A third argues standard μP fails for MoE and proposes a "maximally scale-stable" alternative, tested to about 2.5B. The one result above 20B: using μP adapted to a particular attention design and the Muon optimizer, the best learning rate of a 5.6B-parameter proxy carried over to a 20.7B-parameter target at up to 100B tokens, and the recipe was used for a 155B-parameter model. That is a 4x jump from an already large proxy, for one architecture.− **What is asked.** Find the best learning rate for a ~100M-parameter MoE on a grid where neighbouring values differ by a factor of $\sqrt{2} \approx 1.41$, then do the same for a 20B+ model trained on the same tokens-per-parameter ratio. Transfer succeeds if the large model's best rate is within 1.5x of the small one's, and using the small model's rate costs at most 0.5% in final loss, for two MoE designs that differ in expert size and top-k.+ **What is asked.** Find the best learning rate for a \~100M-parameter MoE on a grid where neighbouring values differ by a factor of $\sqrt{2} \approx 1.41$, then do the same for a 20B+ model trained on the same tokens-per-parameter ratio. Transfer succeeds if the large model's best rate is within 1.5x of the small one's, and using the small model's rate costs at most 0.5% in final loss, for two MoE designs that differ in expert size and top-k.**Why it is hard.** Mostly cost: at least five large runs, each of the order of $10^{22}$ operations. A worked number shows the precision demanded: 1.5x is only about one grid step, so the answer must be located to within one notch. The analogy of scaling a bridge from a model in a wind tunnel fits: dimensionless rules usually carry over, but new effects can appear at full size; here the router and expert count are the new effects.**How it is checked.** Released code, configs and loss-versus-learning-rate curves at both scales, reproducible at the small scale by others.
hash 3579e5904d1674ad1e877fe0d3a46da881a06f54f468a13e56d1500eecd3be33
previous 76cae66813dc951161ee72ae26343e50046ebbff9f54559c1c60389fe34737c4