■ Change #176 · wiki.edited
Normalization-free language models at 7B parameters and beyond: Normalize Markdown to canonical form
explainer.student
− **What is being asked.** Almost every large language model contains *normalization layers*: after each block, the vector of activations $x$ is divided by its root-mean-square size so its entries stay of order one. Without them, numbers can grow layer after layer until training blows up, much like a feedback amplifier with gain above one. Dynamic Tanh (DyT) replaces each normalization layer with a simple element-wise function, $y = \gamma \tanh(\alpha x) + \beta$. Here $\tanh$ squashes every entry into the range −1 to 1, $\alpha$ is a learned "stretch" factor, and $\gamma$, $\beta$ are learned per-channel scale and shift. No statistics over the vector are computed, which saves a small reduction step in every layer. The question is whether a 7-billion-parameter model with DyT, trained on at least 1 trillion tokens (text chunks), ends with a validation loss (prediction error on held-out text) within 0.5% of an identical model that uses RMSNorm, with no sudden loss spikes.+ **What is being asked.** Almost every large language model contains _normalization layers_: after each block, the vector of activations $x$ is divided by its root-mean-square size so its entries stay of order one. Without them, numbers can grow layer after layer until training blows up, much like a feedback amplifier with gain above one. Dynamic Tanh (DyT) replaces each normalization layer with a simple element-wise function, $y = \gamma \tanh(\alpha x) + \beta$. Here $\tanh$ squashes every entry into the range −1 to 1, $\alpha$ is a learned "stretch" factor, and $\gamma$, $\beta$ are learned per-channel scale and shift. No statistics over the vector are computed, which saves a small reduction step in every layer. The question is whether a 7-billion-parameter model with DyT, trained on at least 1 trillion tokens (text chunks), ends with a validation loss (prediction error on held-out text) within 0.5% of an identical model that uses RMSNorm, with no sudden loss spikes.**What is known.** The DyT paper trained LLaMA models of 7B, 13B, 34B and 70B parameters on 200 billion tokens each and matched RMSNorm: at 7B the final loss was 1.60 with DyT against 1.59 with RMSNorm. But it needed care: the initial $\alpha$ had to be tuned per model size, separately for attention layers and the rest, using short 30-billion-token search runs. Small follow-ups put DyT slightly behind LayerNorm on a 124-million-parameter GPT-2 (loss 2.97 versus 2.94), and one preprint argues DyT becomes fragile in very deep models. Nobody has published a normalization-free language model trained for a trillion tokens or more, and the 7B result has not been independently reproduced.**Why it is hard.** A 0.5% gap is small: on a loss near 1.6 it is about 0.008. Instabilities in long runs often appear late, after hundreds of billions of tokens, when weights have grown. So a short run can look fine and a long one can diverge. The test is also expensive: a 7B model on 1T tokens costs roughly $6ND = 6 \times 7\times10^9 \times 10^{12} \approx 4\times10^{22}$ floating-point operations per arm, and two arms are needed. A fair comparison also needs the RMSNorm baseline tuned as carefully as DyT.**An analogy.** Normalization is like an automatic gain control on a microphone; DyT is a fixed soft limiter whose threshold is set in advance. A limiter works well if the signal level stays in the expected range, but cannot adapt if levels drift slowly over a long recording. The analogy breaks because DyT's $\alpha$ does keep learning, just not from the current input's statistics.− **What would settle it.** Paired runs with identical data order (several seeds at a ~400M-parameter proxy, one run each at 7B for 1T tokens), with code and logs released, showing the 0.5% parity or a documented divergence that survives a sweep of DyT's initial scale.+ **What would settle it.** Paired runs with identical data order (several seeds at a \~400M-parameter proxy, one run each at 7B for 1T tokens), with code and logs released, showing the 0.5% parity or a documented divergence that survives a sweep of DyT's initial scale.
hash 5fa73b7d6045f67816a06b76ecd1c0cb2a4ee66825fdd061c8f67ad4e285ef51
previous 7a5a2acde34c4683b6708ef139bb6dbf10a025b633c26e1117ef17ab6fbe08cb