[flagged]
Transformers Without Normalization
11–20 of 36 posts
Re: Transformers Without Normalization
#12Is it just me or have they provided graphs of LNinput againt LNoutput when the tanh(a*x) is also followed by a weight and bias. Surely you would want to compare the output of the LayerNorm without the weight and bias to get an impression on their similarity. I guess it doesn't matter if the final result works, but I feel like looking at the bit that they are changing in isolation might provide a better insight as to…
From their implementation it looks like they’re calculating tanh and then applying a weight and bias
Re: Transformers Without Normalization
#13Re: Transformers Without Normalization
#14If true this is very nice incremental improvement. It looks like it doesn't meaningfully improve the capabilities of the model, but is cheaper to compute than RMSNorm (which essentially all current state of art LLMs use) which means faster/cheaper training.
RMSNorm is pretty insigificant in terms of the overall compute in a transformer though -- usually the reduction work can be fused with earlier or later operations.
Splitting networks across multiple GPU's, this means you must wait for the slowest node and the longest latency.
As soon as you can remove most of these barriers, compute over non-latency-guaranteed networks becomes more practical, as does non-homogeneous compute (ie. Mixing different GPU models).
Re: Transformers Without Normalization
#15Re: Transformers Without Normalization
#16Earlier quoted context omitted.
RMSNorm is pretty insigificant in terms of the overall compute in a transformer though -- usually the reduction work can be fused with earlier or later operations.
Rmsnorm acts like a barrier. No compute on the next network layer can start before all compute in the previous layer is done. Splitting networks across multiple GPU's, this means you must wait for the slowest node and the longest latency. As soon as you can remove most of these barriers, compute over non-latency-guaranteed networks becomes more practical, as does non-homogeneous compute (ie. Mixing different GPU mode…
Re: Transformers Without Normalization
#17Earlier quoted context omitted.
Rmsnorm acts like a barrier. No compute on the next network layer can start before all compute in the previous layer is done. Splitting networks across multiple GPU's, this means you must wait for the slowest node and the longest latency. As soon as you can remove most of these barriers, compute over non-latency-guaranteed networks becomes more practical, as does non-homogeneous compute (ie. Mixing different GPU mode…
What are other barriers in transformers? Or is the normalization layer the primary one?
Re: Transformers Without Normalization
#18If true this is very nice incremental improvement. It looks like it doesn't meaningfully improve the capabilities of the model, but is cheaper to compute than RMSNorm (which essentially all current state of art LLMs use) which means faster/cheaper training.
RMSNorm is pretty insigificant in terms of the overall compute in a transformer though -- usually the reduction work can be fused with earlier or later operations.
Re: Transformers Without Normalization
#19And so vanishing gradients are not a thing anymore?
Re: Transformers Without Normalization
#20And so vanishing gradients are not a thing anymore?
I recommend e.g. the og resnet paper and its follow-up from Kaiming He et al.
For a modern take on RNNs, read https://arxiv.org/abs/2303.06349 by DeepMind.
There essentially the point is that largest eigenvalue (spectral radius) needs to be around 1, meaning repeated applications of a linear transformation doesn’t cause increase or decrease of the activations.