On the Mathematical Relationship Between Layer Normalization and Dynamic Activation Functions
Felix Stollenwerk
TL;DR
The paper establishes a theoretical link between Layer Normalization and dynamic activations by deriving Dynamic Tanh (DyT) from RMSNorm via a derivative-space decoupling, and then obtaining an exact element-wise counterpart, Dynamic Inverse Square Root Unit (DyISRU), through a function-space decoupling. DyISRU yields the exact RMSNorm-like transformation $y_i = \sqrt{C}\cdot\frac{x_i}{\sqrt{\beta + x_i^2}}$, while DyT remains an approximation using a global inverse-variance cue; both share the same output bounds $\pm\sqrt{C}$. Outlier simulations show DyISRU more accurately reproduces normalization behavior on outliers than DyT, supporting its closer alignment with normalization. The work offers a theoretical basis for dynamic activation functions as normalization surrogates and provides public code for reproduction, though it does not include empirical experiments on model performance. Overall, the findings clarify when and how dynamic activations can emulate normalization, with DyISRU representing a principled exact alternative.
Abstract
Layer normalization (LN) is an essential component of modern neural networks. While many alternative techniques have been proposed, none of them have succeeded in replacing LN so far. The latest suggestion in this line of research is a dynamic activation function called Dynamic Tanh (DyT). Although it is empirically well-motivated and appealing from a practical point of view, it lacks a theoretical foundation. In this work, we shed light on the mathematical relationship between LN and dynamic activation functions. In particular, we derive DyT from the LN variant RMSNorm, and show that a well-defined decoupling in derivative space as well as an approximation are needed to do so. By applying the same decoupling procedure directly in function space, we are able to omit the approximation and obtain the exact element-wise counterpart of RMSNorm, which we call Dynamic Inverse Square Root Unit (DyISRU). We demonstrate numerically that DyISRU reproduces the normalization effect on outliers more accurately than DyT does.
