LayerNorm and RMSNorm divide by \( \sqrt{v} \), which has a branch-point singularity at \( v = 0 \). The Weierstrass transform (Gaussian convolution) replaces it with an entire function, eliminating the finite ghost barrier. An interactive companion to Ghosts of Softmax, Appendix 3.
LayerNorm and RMSNorm both rely on a scale factor of the form \( f(v) = 1/\sqrt{v} \), where \( v \) is a variance or mean-square quantity computed from activations. On the positive reals this is perfectly well-behaved. But in the complex plane, \( 1/\sqrt{v} \) has a branch-point singularity at \( v = 0 \).
During the forward pass, \( v \) is always positive. But from the convergence-radius perspective, the singularity at \( v = 0 \) is still relevant: it limits the Taylor convergence radius of any function that depends on \( 1/\sqrt{v} \). If a neuron's variance evolves as \( v(t) = v_0 + t\dot v \) along the update direction, the singularity lies at distance \( |v_0|/|\dot v| \) from the current point. For neurons with small variance (common in normalized networks), this can be very close.
The Weierstrass transform convolves \( f \) with a Gaussian of width \( \sigma \), smearing out the singularity:
Because the Gaussian is entire and the integrand is absolutely integrable, this integral defines an entire function of \( v \). The singularity at \( v = 0 \) is gone. In closed form:
where \( D_{-1/2} \) is a parabolic cylinder function, a solution of Weber's equation. Parabolic cylinder functions are entire: no poles, no branch cuts. As \( \sigma \to 0 \), \( \tilde f_\sigma \) recovers \( 1/\sqrt{v} \) for \( v > 0 \).
See how the smoothed normalization compares to standard \( 1/\sqrt{v} \). The smoothing width \( \sigma \) controls the tradeoff: small \( \sigma \) is closer to the original but retains near-singular behavior; large \( \sigma \) is fully smooth but deviates more.
| Method | Scale factor | Singularity | Entire? | Notes |
|---|---|---|---|---|
| LayerNorm Ba et al. 2016 |
\( 1/\sqrt{\mathrm{Var}(x)+\varepsilon} \) | Branch point at \( \mathrm{Var}(x) = -\varepsilon \) | No | \( \varepsilon \) shifts the singularity off zero but does not remove it. |
| RMSNorm Zhang & Sennrich 2019 |
\( 1/\sqrt{\mathrm{mean}(x^2)+\varepsilon} \) | Branch point at \( \mathrm{mean}(x^2) = -\varepsilon \) | No | Same structure as LayerNorm without centering. Same singularity class. |
| BatchNorm Ioffe & Szegedy 2015 |
\( 1/\sqrt{\mathrm{Var}_{\mathrm{batch}}+\varepsilon} \) | Branch point + running stats | No | Running statistics add extra fragility — can become corrupted during spikes (see paper Fig. 10). |
| ε-clamped Common implementation |
\( 1/\sqrt{\max(\varepsilon, v)} \) | Kink at \( v = \varepsilon \) (not analytic) | No | Replaces branch point with a ReLU-like kink. Piecewise, not analytic — strictly worse from radius lens. |
| Weierstrass-smoothed This paper (proposed) |
\( C e^{-v^2/(4\sigma^2)} D_{-1/2}(-v/\sigma) \) | None (entire) | Yes | Gaussian convolution of \( 1/\sqrt{\max(0,v)} \). No finite ghost barrier. |
| Goldschmidt approx This paper (route 3) |
N-step polynomial iteration | None (polynomial) | Yes | Fixed iteration count = polynomial = entire. Hardware-friendly. Accuracy depends on N. |
| Randomized smoothing This paper (route 2) |
\( E_{\xi \sim \mathcal{N}(0,\sigma^2)}[(\max(0,v+\xi)+\varepsilon)^{-1/2}] \) | Stochastic — entire in expectation | Stoch. | Recovers the analytic function in expectation. Adds noise to forward pass — natural regularizer. |
Deep-learning frameworks lack a native differentiable parabolic cylinder function. The paper proposes three practical paths to computing the smoothed normalization:
Since \( \tilde f_\sigma \) is entire, its Maclaurin series converges everywhere. Precompute coefficients offline, evaluate a truncated polynomial at runtime. Accuracy controlled by truncation order.
Exact (to truncation order)Use \( \tilde f_\sigma(v) = E_\xi[(\max(0, v+\xi) + \varepsilon)^{-1/2}] \) with \( \xi \sim \mathcal{N}(0, \sigma^2) \). Sample ξ in the forward pass. Recovers the entire function in expectation. Acts as a natural regularizer.
Stochastic · regularizingApproximate \( 1/\sqrt{v} \) by a fixed number of Newton-style polynomial iterations. The N-step sequence is a polynomial (hence entire). Hardware-friendly — maps to fused multiply-add.
Fast · hardware-friendlyThe function \( 1/\sqrt{z} \) has a branch cut along the negative real axis, emanating from the branch point at \( z = 0 \). Any path in parameter space that causes the variance \( v \) to approach zero from any direction hits this singularity and caps the Taylor convergence radius.