Simple Algorithm
Deep Learning · Emergence · 28 min

Training Without Normalization

Fixup, NFNets and Dynamic Tanh: what normalization layers really provide.

If normalization layers mostly keep signals well scaled, careful initialization should be able to replace them. That bet has paid off three times: Fixup trained 10,000-layer residual networks with no normalization at all, normalizer-free ResNets matched the best batch-normalized image classifiers, and Dynamic Tanh replaces every LayerNorm in a transformer by an elementwise squashing function. Each success also revealed what normalization had been quietly providing, and what any replacement must supply instead.

What you’ll learn

  • List what normalization layers provide (signal propagation at initialization, scale invariance, stability at large learning rates, regularization) and match each to a normalizer-free substitute.
  • Prove that normalization downscales each residual branch by about the square root of its depth at initialization, and reproduce the effect with a zero-initialized scalar (SkipInit).
  • Derive Fixup's rescaling L−1/(2m−2)L^{-1/(2m-2)} from the requirement that one SGD step changes the network's output by Θ(η)\Theta(\eta), independently of depth.
  • Build a normalizer-free ResNet with analytic variance tracking and Scaled Weight Standardization, and compute its gain for ReLU.
  • Explain Dynamic Tanh, the observation behind it, its settings for language models and its limits.

What normalization really provides

BatchNorm, LayerNorm & RMSNorm listed six explanations of why normalization helps. To remove it, you have to supply each benefit some other way:

What normalization providesHowNormalizer-free substitute
Signal propagation at initializationRescales activations at every layer; on residual branches it shrinks each branch relative to the skip pathZero-initialized or rescaled branches (Fixup, SkipInit, ReZero); analytic variance tracking (normalizer-free ResNets)
Scale invariance and an automatic effective learning rateThe loss ignores the scale of the preceding weights, so the effective rate is η/∥w∥2\eta/\norm{\mathbf w}^2 (What Weight Decay Really Does)Weight standardization keeps a form of it; scalar multipliers per branch; otherwise, retune the learning rate
Stability at large learning rates and batch sizesSmoother landscape; updates bounded relative to the weightsAdaptive gradient clipping (Exploding Gradients & Clipping)
RegularizationBatch noiseDropout, stochastic depth, mixup, stronger augmentation
The first row matters most for depth, and it has a clean theory.
DerivationNormalization biases residual blocks toward the identity (De & Smith, 2020)
  1. Var⁡(xi(ℓ+1))=Var⁡(xi(ℓ))+Var⁡(fℓ(x(ℓ))i)\Var\big(x^{(\ell+1)}_i\big) = \Var\big(x^{(\ell)}_i\big) + \Var\big(f_\ell(\mathbf x^{(\ell)})_i\big)

    A residual network computes x(ℓ+1)=x(ℓ)+fℓ(x(ℓ))\mathbf x^{(\ell+1)} = \mathbf x^{(\ell)} + f_\ell(\mathbf x^{(\ell)}), starting from an input x(1)\mathbf x^{(1)} of unit variance, as De and Smith index it (Residual Connections does the same bookkeeping from x0\mathbf x_0, with and without normalization and for scaled branches). With zero-mean weights, the branch output has zero mean given its input, so it is uncorrelated with the skip path and variances add:

  2. Var⁡(x(ℓ+1))=2 Var⁡(x(ℓ))=2ℓ\Var\big(x^{(\ell+1)}\big) = 2\,\Var\big(x^{(\ell)}\big) = 2^{\ell}

    Without normalization, take a branch fℓ(x)=WReLU⁡(x)f_\ell(\mathbf x) = W\operatorname{ReLU}(\mathbf x) with He initialization. It preserves variance, Var⁡(fℓ)=2 E[ReLU⁡(x)2]=Var⁡(x(ℓ))\Var(f_\ell) = 2\,\E[\operatorname{ReLU}(x)^2] = \Var(x^{(\ell)}), so every block doubles the variance and the branch weighs as much as the skip path: no block is close to the identity.

  3. Var⁡(x(ℓ))≈ℓ,Var⁡(fℓ)Var⁡(x(ℓ+1))≈1ℓ+1\Var\big(x^{(\ell)}\big)\approx\ell,\qquad\frac{\Var(f_\ell)}{\Var\big(x^{(\ell+1)}\big)}\approx\frac{1}{\ell + 1}

    With normalization on the branch, fℓ(x)=WReLU⁡(BN⁡(x))f_\ell(\mathbf x) = W\operatorname{ReLU}(\operatorname{BN}(\mathbf x)), the branch sees unit-variance inputs whatever the stream's size, so Var⁡(fℓ)≈1\Var(f_\ell)\approx1 and the variance grows only linearly. Block ℓ\ell's branch then contributes a fraction 1/(ℓ+1)1/(\ell + 1) of its output variance: its activations are downscaled by about ℓ\sqrt\ell relative to the skip path.

  4. x(ℓ+1)=x(ℓ)+αℓ fℓ(x(ℓ)),αℓ=0 at initialization\mathbf x^{(\ell+1)} = \mathbf x^{(\ell)} + \alpha_\ell\,f_\ell(\mathbf x^{(\ell)}),\qquad\alpha_\ell = 0\ \text{at initialization}

    Most blocks of a deep normalized ResNet therefore start close to the identity, and a branch downscaled in the forward pass is downscaled in the backward pass too, so gradients stay well behaved. To test the explanation, De and Smith removed normalization and multiplied each branch by a learnable scalar α\alpha initialized at zero, SkipInit, so that every block starts as exactly the identity. It trained residual networks a thousand layers deep.

Predict before you look

In a normalized ResNet at initialization, the input to block 99 has variance about 99 and its normalized branch adds about 1. What percentage of the block's output variance comes from the branch?

Show the answer

1 %

1/(99+1)=1%1/(99 + 1) = 1\%: block 99 is 99% identity at initialization, its branch activations downscaled by 99≈10\sqrt{99}\approx10 relative to the skip path. Deep blocks start as small corrections; that is what makes depth trainable.

SkipInit's fine print says something about the other rows of the table. On ImageNet with ResNet-50 (V2), SkipInit with biases matched BatchNorm at a batch size of 256 (74.9% against 75.0% top-1) but fell to 70.8% against 74.9% at 4,096, where batch normalization's ability to take larger learning rates pays off. With dropout added to replace batch normalization's regularization, it beat BatchNorm at small batch sizes (75.6% at 256).

Fixup: initialize so that every step is the right size

Zhang, Dauphin and Ma (2019) started from a different requirement. They first showed that in a ResNet without normalization and with standard initialization, the gradient of some layers is bounded below by a quantity that grows with depth, because the output logits blow up. Instead of merely taming the forward pass, they asked that each SGD step change the network's output by Θ(η)\Theta(\eta) as η→0\eta\to0, independently of depth. Since the updates of different residual branches move the output in strongly correlated directions, each of LL branches should then contribute Θ(η/L)\Theta(\eta/L). The scaling follows from a one-dimensional model of a branch.

DerivationDeriving the rescaling
  1. ΔF≈∑j=1m∂F∂aj Δaj=−η ∂ℓ∂F∑j=1m(x∏i≠jai)2\Delta F\approx\sum_{j=1}^m\frac{\partial F}{\partial a_j}\,\Delta a_j = -\eta\,\frac{\partial\ell}{\partial F}\sum_{j=1}^m\Big(x\prod_{i\ne j}a_i\Big)^2

    Model a branch of mm layers as a product of scalars, F(x)=(∏i=1mai)xF(x) = \big(\prod_{i=1}^ma_i\big)x, where ai=1a_i = 1 stands for a standard, variance-preserving initialization and ai≠1a_i\ne1 for rescaling layer ii. One SGD step moves each aja_j by −η ∂ℓ∂F∂F∂aj-\eta\,\frac{\partial\ell}{\partial F}\frac{\partial F}{\partial a_j}, so to first order:

  2. x∏i≠jai=Θ(1L),j∈arg min⁡kakx\prod_{i\ne j}a_i = \Theta\Big(\frac{1}{\sqrt L}\Big),\qquad j\in\argmin_ka_k

    The sum is dominated by the term that omits the smallest aja_j. Requiring ΔF=Θ(η/L)\Delta F = \Theta(\eta/L) gives Fixup's constraint:

  3. a1=⋯=am−1=L−12m−2,am=0a_1 = \dots = a_{m-1} = L^{-\frac{1}{2m-2}},\qquad a_m = 0

    Setting all aia_i equal gives am−1=L−1/2a^{m-1} = L^{-1/2}. Fixup instead sets the last layer to zero, am=0a_m = 0, so that the branch starts as the zero function and need not unlearn a random initial map; then ΔF\Delta F comes only from ama_m, and the other m−1m - 1 layers carry the same scale:

Predict before you look

ResNet-50 has L=16L = 16 residual branches, each a bottleneck of m=3m = 3 layers. By what factor does Fixup multiply the He-initialized weights of the first two layers of each branch?

Show the answer

0.5

L−1/(2m−2)=16−1/4=0.5L^{-1/(2m-2)} = 16^{-1/4} = 0.5, and the third layer starts at zero. For basic blocks of two layers the exponent is −1/2-1/2: 16−1/2=0.2516^{-1/2} = 0.25. Deeper networks shrink their branches more, but only as a small power of LL.

Trained with the same learning rate as BatchNorm, Fixup matched its first-epoch accuracy on CIFAR-10 even at 10,000 layers, where other rescalings failed beyond 100. On ImageNet, ResNet-50 with Fixup alone reached 27.6% top-1 error against 23.6% for BatchNorm, but with a lower training error: the gap was overfitting, not optimization. With strong mixup (coefficient 0.7, against 0.2 for BatchNorm) it reached 24.0%, against 23.3% for BatchNorm with mixup. In machine translation, Fixup replaced every LayerNorm of a transformer and matched it (29.3 BLEU on WMT English–German for both). A transformer-specific variant, T-Fixup (Huang et al., 2020), followed.

Normalizer-free ResNets and NFNets

Brock, De and Smith (2021) copied what batch normalization does at initialization instead of only zeroing branches. Their blocks compute x(ℓ+1)=x(ℓ)+α fℓ(x(ℓ)/βℓ)\mathbf x^{(\ell+1)} = \mathbf x^{(\ell)} + \alpha\,f_\ell(\mathbf x^{(\ell)}/\beta_\ell), where the branch fℓf_\ell is built to preserve variance, βℓ=Var⁡(x(ℓ))\beta_\ell = \sqrt{\Var(x^{(\ell)})} is a fixed number computed analytically from Var⁡(x(ℓ+1))=Var⁡(x(ℓ))+α2\Var(x^{(\ell+1)}) = \Var(x^{(\ell)}) + \alpha^2 (with α=0.2\alpha = 0.2), and the count restarts at each stage transition. Dividing by βℓ\beta_\ell is what normalization did to the branch input; the slow variance growth is what it did to the stream.

One obstacle remained, invisible in variance calculations: mean shift. ReLU outputs are positive, with mean μg=1/2π\mu_g = 1/\sqrt{2\pi}, so output channel ii of z=WReLU⁡(x)\mathbf z = W\operatorname{ReLU}(\mathbf x) has mean μg∑jWij\mu_g\sum_jW_{ij}, which is not zero for any particular weight matrix. With He weights the row sum is Gaussian with variance 22, so channel means of typical size 2 μg≈0.56\sqrt2\,\mu_g\approx0.56 appear, as large as half the signal, and they compound with depth until different inputs produce strongly correlated activations. The fix standardizes the weights rather than the activations.

DerivationScaled Weight Standardization
  1. W^ij=γ Wij−μiσiN⟹∑jW^ij=0,∑jW^ij2=γ2\hat W_{ij} = \gamma\,\frac{W_{ij} - \mu_i}{\sigma_i\sqrt N}\qquad\Longrightarrow\qquad\sum_j\hat W_{ij} = 0,\quad\sum_j\hat W_{ij}^2 = \gamma^2

    Reparameterize each row ii (one output channel, with fan-in NN) by its own mean μi\mu_i and standard deviation σi\sigma_i, recomputed in every forward pass, with a fixed gain γ\gamma:

  2. E[zi]=μg∑jW^ij=0,Var⁡(zi)=σg2∑jW^ij2=γ2σg2\E[z_i] = \mu_g\sum_j\hat W_{ij} = 0,\qquad\Var(z_i) = \sigma_g^2\sum_j\hat W_{ij}^2 = \gamma^2\sigma_g^2

    Feed it i.i.d. inputs gj=g(xj)g_j = g(x_j) with mean μg\mu_g and variance σg2\sigma_g^2. Zero row sums kill the mean shift, and the squared row norm fixes the variance:

  3. σg2=12−12π=12(1−1π),γ=21−1/π\sigma_g^2 = \tfrac12 - \tfrac1{2\pi} = \tfrac12\Big(1 - \frac1\pi\Big),\qquad\gamma = \sqrt{\frac{2}{1 - 1/\pi}}

    So γ=1/σg\gamma = 1/\sigma_g makes the layer variance-preserving. For ReLU and x∼N(0,1)x\sim\mathcal N(0, 1), E[g]=1/2π\E[g] = 1/\sqrt{2\pi} and E[g2]=12\E[g^2] = \tfrac12, so:

Predict before you look

Compute the Scaled Weight Standardization gain γ=2/(1−1/π)\gamma = \sqrt{2/(1 - 1/\pi)} for ReLU.

Show the answer

1.71

1−1/π≈0.6821 - 1/\pi\approx0.682, so γ=2/0.682≈2.93≈1.71\gamma = \sqrt{2/0.682}\approx\sqrt{2.93}\approx1.71. It is larger than He's 2≈1.41\sqrt2\approx1.41 because the mean has been removed: He's factor restores the second moment E[g2]=12\E[g^2] = \tfrac12, Scaled WS must restore the smaller variance 0.340.34.

python
import math
import torch
import torch.nn as nn
import torch.nn.functional as F

RELU_GAIN = math.sqrt(2 / (1 - 1 / math.pi))   # 1 / std of ReLU(z), z ~ N(0, 1): about 1.713

class ScaledStdConv2d(nn.Conv2d):
    """Convolution with Scaled Weight Standardization (Brock, De & Smith, 2021)."""
    def __init__(self, *args, gain=RELU_GAIN, eps=1e-4, **kwargs):
        super().__init__(*args, **kwargs)
        self.gain, self.eps = gain, eps

    def forward(self, x):
        w = self.weight                           # (out, in, k, k): one row per output channel
        fan_in = w[0].numel()
        mean = w.mean(dim=(1, 2, 3), keepdim=True)
        var = w.var(dim=(1, 2, 3), keepdim=True, unbiased=False)
        w_hat = self.gain * (w - mean) / torch.sqrt(var * fan_in + self.eps)
        return F.conv2d(x, w_hat, self.bias, self.stride, self.padding, self.dilation, self.groups)

Fed F.relu of standard Gaussian inputs, its outputs have mean about 00 and variance about 11 away from the zero-padded border, while a plain He-initialized convolution gives each channel a mean shift. Standardization costs little in training, since it acts on the weights rather than the activations, and nothing at inference, where W^\hat W is computed once.

Every other operation must be audited the same way: a squeeze-and-excitation gate multiplies by values in (0,1)(0, 1) and attenuates the signal, so Brock et al. simply multiply its output by 2. With these pieces, normalizer-free ResNet-50 reached 76.8% top-1 accuracy on ImageNet against 76.4% for the batch-normalized version, but only once stochastic depth and dropout replaced batch normalization's regularization; without them the order reversed (75.8% against 76.8%). The models still lagged at batch sizes of 4,096 and above, and could not train with very strong augmentation.

NFNets (Brock, De, Smith & Simonyan, 2021) removed that last limit with adaptive gradient clipping, which caps each unit's gradient relative to the norm of its weights (Exploding Gradients & Clipping), plus a redesigned architecture. Their NFNet-F1 matched EfficientNet-B7's ImageNet accuracy while training up to 8.7 times faster, the largest model reached 86.5% top-1 (with sharpness-aware minimization), and after pretraining on 300 million labeled images normalizer-free models fine-tuned better than their batch-normalized counterparts, reaching 89.2%.

Transformers without normalization: Dynamic Tanh

Transformers lean on LayerNorm even harder than ResNets on BatchNorm, and the normalizer-free ResNet recipes transfer poorly: in vision transformers, Fixup and SkipInit needed much lower learning rates to avoid divergence. Zhu, Chen, He, LeCun and Liu (2025) looked at what trained LayerNorms actually compute. Plotting each LayerNorm's input against its output, before the learned affine map, in a ViT, a wav2vec 2.0 speech model and a diffusion transformer, they found nearly straight lines in early layers and S-shaped, tanh-like curves in deeper ones.

The S comes from mixing tokens. For one token, LayerNorm is linear: it subtracts a mean and divides by that token's standard deviation. But tokens have very different spreads, and the large values sit in a few channels of high-spread tokens, which get the smallest slopes. About 99% of the points lie in the linear middle; the rest, such as inputs beyond ±50\pm50 in the ViT, are squashed. Zhu et al. hypothesized that this nonlinear squashing of extreme values is what makes normalization indispensable, and replaced it with the squashing alone.

DyT⁡(x)=γ⊙tanh⁡(α x)+β\operatorname{DyT}(\mathbf x) = \boldsymbol\gamma\odot\tanh(\alpha\,\mathbf x) + \boldsymbol\beta
Dynamic Tanh: an elementwise operation with one learnable scalar α\alpha per layer (initialized at α0=0.5\alpha_0 = 0.5 by default) and the usual per-channel γ=1\boldsymbol\gamma = \mathbf 1, β=0\boldsymbol\beta = \mathbf 0 at initialization. It computes no statistics at all; it replaces every LayerNorm or RMSNorm, including the final one.
python
import torch
import torch.nn as nn

class DyT(nn.Module):
    """Dynamic Tanh (Zhu et al., 2025): a drop-in replacement for nn.LayerNorm(d)."""
    def __init__(self, d, alpha0=0.5):
        super().__init__()
        self.alpha = nn.Parameter(torch.tensor(alpha0))   # one learnable scalar
        self.gamma = nn.Parameter(torch.ones(d))          # per-channel gain and shift
        self.beta = nn.Parameter(torch.zeros(d))

    def forward(self, x):
        return self.gamma * torch.tanh(self.alpha * x) + self.beta

The whole method. For large language models, Zhu et al. also added a learnable scalar after the embedding layer and tuned α0\alpha_0 separately for the attention blocks and for the rest.

Without tuning, DyT matched or beat LayerNorm across their benchmarks: supervised ImageNet accuracy went from 82.3% to 82.5% for ViT-B and from 83.1% to 83.6% for ViT-L, and ConvNeXt-B stayed at 83.7%. LLaMA models from 7 to 70 billion parameters, trained on 200 billion tokens, ended within 0.010.01 of RMSNorm's final loss. Language models were the one place where tuning the initial α0\alpha_0 paid off: larger models needed smaller values, with higher values in attention blocks than elsewhere, from 0.80.8 and 0.20.2 at 7 billion parameters down to 0.20.2 and 0.050.05 at 70 billion.

The limits are as informative. Replacing BatchNorm by DyT in classic ConvNets cost accuracy (ResNet-50 fell from 76.2% to 68.9%, VGG19 from 72.7% to 71.0%), so squashing does not substitute for batch statistics in networks with a normalization after every convolution. And although an elementwise operation needs no reduction, DyT gave no speedup over RMSNorm once both were compiled.

Check your understanding

For any single token, LayerNorm's output is a linear function of its input. Why, then, does a plot of input against output over all tokens of a trained ViT look like a tanh curve?

  1. Because LayerNorm applies a tanh internally before its affine map
  2. Because the learned gain γ\boldsymbol\gamma saturates for large inputs
  3. Because each token is divided by its own standard deviation: high-spread tokens, which hold the extreme values, get the smallest slopes, so together the lines bend into an S
  4. Because the plot is on a logarithmic scale
Show the answer

C. Because each token is divided by its own standard deviation: high-spread tokens, which hold the extreme values, get the smallest slopes, so together the lines bend into an S

Each token contributes a straight line through its own mean, with slope 1/σtoken1/\sigma_{\text{token}}. The extreme inputs belong to tokens with large σ\sigma, whose lines are flattest, so the cloud of all points bends over at the ends: a nonlinear squashing of outliers that no single token sees.

The price of going normalizer-free

MethodReplaces normalization withKnown costs
Fixup (2019)Zero-initialized branch ends, L−1/(2m−2)L^{-1/(2m-2)} rescaling, scalar multipliers and biasesNeeds stronger regularization; behind BatchNorm at very large batches (73.0% against 74.9% top-1 for ResNet-50 V2 at a batch of 4,096; De & Smith, 2020)
SkipInit (2020), ReZero (2021)One learnable scalar per branch, initialized at 00The same; their role in deep transformers is covered in Scaling Residual Branches with Depth
Normalizer-free ResNets, NFNets (2021)Analytic variance scaling, Scaled Weight Standardization, adaptive gradient clippingEvery operation's variance must be checked; extra regularization; a clipping threshold to tune
Dynamic Tanh (2025)An elementwise γtanh⁡(αx)+β\boldsymbol\gamma\tanh(\alpha\mathbf x) + \boldsymbol\betaα0\alpha_0 must be tuned for language models; does not replace BatchNorm in classic ConvNets; no speedup once compiled
With the learning rate tuned for each method, supervised ViT-B reached 82.3% with LayerNorm, 77.2% with Fixup, 74.1% with SkipInit, 82.5% with σ\sigmaReparam (a spectral reparameterization of the weights, met in Normalization & Stability in Transformers) and 82.8% with DyT (Zhu et al., 2025).

The pattern across the table: removing normalization is possible whenever its first job, signal propagation at initialization, is done some other way, but every method then pays elsewhere. Fixup and SkipInit lose the large-batch stability and the regularization; NFNets buy them back with clipping and explicit regularizers; DyT keeps transformers stable but needs its scale tuned in large language models and fails where batch statistics did real work. Normalization layers bundle several services into one cheap operation, which is why they remain the default as of the mid-2020s.

Key takeaways

  • Normalization supplies signal propagation at initialization, scale invariance, stability at large learning rates and regularization; a normalizer-free network must replace each one.
  • On residual branches, normalization keeps each branch at unit variance while the stream grows like ℓ\ell, so block ℓ\ell starts with its branch downscaled by ℓ\sqrt\ell; a zero-initialized scalar (SkipInit) reproduces this.
  • Fixup asks every SGD step to change the output by Θ(η)\Theta(\eta): zero-initialize the last layer of each branch and scale the others by L−1/(2m−2)L^{-1/(2m-2)}.
  • Normalizer-free ResNets track the variance analytically and remove ReLU's mean shift with Scaled Weight Standardization (gain 2/(1−1/π)≈1.71\sqrt{2/(1 - 1/\pi)}\approx1.71); with adaptive gradient clipping, NFNets matched the best image classifiers of their time.
  • Dynamic Tanh, γtanh⁡(αx)+β\boldsymbol\gamma\tanh(\alpha\mathbf x) + \boldsymbol\beta, replaces LayerNorm and RMSNorm in transformers by squashing extreme values, but needs a tuned α0\alpha_0 in large language models and does not replace BatchNorm in classic ConvNets.

Check yourself

In the interactive lesson these are scored with your confidence, and what you miss comes back for review.

Question 1

Why do deep ResNets with BatchNorm on their branches train easily, according to De and Smith (2020)?

  1. At initialization, normalization holds each branch at unit variance while the variance carried by the skip path rises linearly with depth; block ℓ\ell's branch is thus about ℓ\sqrt\ell times smaller than the stream, and the block starts near the identity
  2. BatchNorm removes internal covariate shift on the skip path
  3. BatchNorm makes every residual branch an orthogonal map
  4. Normalization doubles the variance at every block, which prevents vanishing gradients
Show the answer

A. At initialization, normalization holds each branch at unit variance while the variance carried by the skip path rises linearly with depth; block ℓ\ell's branch is thus about ℓ\sqrt\ell times smaller than the stream, and the block starts near the identity

Var⁡(x(ℓ))≈ℓ\Var(x^{(\ell)})\approx\ell while Var⁡(fℓ)≈1\Var(f_\ell)\approx1, so the branch contributes 1/(ℓ+1)1/(\ell + 1) of the output variance. A learnable scalar initialized at zero (SkipInit) reproduces the effect without any normalization.

Question 2

What requirement does Fixup's rescaling L−1/(2m−2)L^{-1/(2m-2)} come from?

  1. Each layer's activations should have unit variance at initialization
  2. The weights of every branch should be orthogonal
  3. One SGD step should change the network's output by Θ(η)\Theta(\eta) independently of depth, so each of the LL branches contributes Θ(η/L)\Theta(\eta/L)
  4. The gradient of every layer should have unit norm
Show the answer

C. One SGD step should change the network's output by Θ(η)\Theta(\eta) independently of depth, so each of the LL branches contributes Θ(η/L)\Theta(\eta/L)

For a branch (∏iai)x(\prod_ia_i)x, the first-order change after one step is dominated by η(x∏i≠jai)2\eta(x\prod_{i\ne j}a_i)^2; making it Θ(η/L)\Theta(\eta/L) gives am−1=L−1/2a^{m-1} = L^{-1/2}.

Question 3

Why does Scaled Weight Standardization subtract each row's mean from the weights?

  1. To make the weight matrix orthogonal
  2. Because ReLU outputs have a positive mean, a row with a nonzero sum gives its output channel a mean shift; zero-sum rows remove it
  3. To make the layer independent of the batch size
  4. To reduce the number of parameters
Show the answer

B. Because ReLU outputs have a positive mean, a row with a nonzero sum gives its output channel a mean shift; zero-sum rows remove it

E[zi]=μg∑jW^ij\E[z_i] = \mu_g\sum_j\hat W_{ij} with μg=1/2π>0\mu_g = 1/\sqrt{2\pi} > 0 for ReLU, so only zero row sums guarantee zero-mean outputs. Dividing by σiN\sigma_i\sqrt N and multiplying by γ=1/σg\gamma = 1/\sigma_g then fixes the variance at one.

Question 4

What does Dynamic Tanh compute, and where did it fail to match normalization?

  1. A per-token standardization followed by a tanh; it failed in language models
  2. tanh⁡\tanh of the batch-normalized input; it failed in vision transformers
  3. x/RMS⁡(x)\mathbf x/\operatorname{RMS}(\mathbf x) followed by a tanh; it failed in diffusion transformers
  4. γ⊙tanh⁡(αx)+β\boldsymbol\gamma\odot\tanh(\alpha\mathbf x) + \boldsymbol\beta elementwise, with a learnable scalar α\alpha; it matched LayerNorm and RMSNorm in transformers but lost accuracy when replacing BatchNorm in ResNet-50
Show the answer

D. γ⊙tanh⁡(αx)+β\boldsymbol\gamma\odot\tanh(\alpha\mathbf x) + \boldsymbol\beta elementwise, with a learnable scalar α\alpha; it matched LayerNorm and RMSNorm in transformers but lost accuracy when replacing BatchNorm in ResNet-50

DyT computes no statistics: it rescales by α\alpha and squashes. It matched LayerNorm in ViTs and RMSNorm in LLaMA models up to 70 billion parameters, but ResNet-50 fell from 76.2% to 68.9% when its BatchNorms were replaced.

Further reading

  • H. Zhang, Y. N. Dauphin & T. Ma, "Fixup initialization: Residual learning without normalization," ICLR (2019).
  • S. De & S. L. Smith, "Batch normalization biases residual blocks towards the identity function in deep networks," NeurIPS (2020).
  • A. Brock, S. De & S. L. Smith, "Characterizing signal propagation to close the performance gap in unnormalized ResNets," ICLR (2021).
  • A. Brock, S. De, S. L. Smith & K. Simonyan, "High-performance large-scale image recognition without normalization," ICML (2021).
  • J. Zhu, X. Chen, K. He, Y. LeCun & Z. Liu, "Transformers without normalization," CVPR (2025).